I was going through the documentation for the 'Getting Started with Typescript' example and noticed that it appears the replicas property of WebServiceOptions is not being used.
We see several other nullable properties being assigned default values in the constructor, such as in the case of
const port = options.containerPort || 80;
However, there is not an equivalent line to this for replicas. Instead, in the deployment spec, replicas is always set to 1, regardless of any user-supplied value for replicas.
Description of the bug:
I was going through the documentation for the 'Getting Started with Typescript' example and noticed that it appears the
replicas
property ofWebServiceOptions
is not being used.We see several other nullable properties being assigned default values in the constructor, such as in the case of
However, there is not an equivalent line to this for
replicas
. Instead, in the deployment spec,replicas
is always set to 1, regardless of any user-supplied value forreplicas
.Reproduction Steps:
Define a
WebService
in the constructor ofMyChart
as such:This produces the following k8s manifest:
Note that
replicas
is set to 1, despite requesting 10 in our typescript.Error Log:
Environment:
Other:
I would expect a line such as
to appear with the other assignments in the constructor, and for the deployment's spec to use
or possibly even the shorthand, like below, depending on your style preference
This is :bug: Bug Report