File tree Expand file tree Collapse file tree 7 files changed +28
-4
lines changed
Expand file tree Collapse file tree 7 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 11# Default values for {{ .Config.GetVariableValue "APPNAME"}}.
22# This is a YAML-formatted file.
33# Declare variables to be passed into your templates.
4- replicaCount : 2
4+ replicaCount : {{ .Config.GetVariableValue "REPLICACOUNT" }}
55
66namespace : {{ .Config.GetVariableValue "NAMESPACE" }}
77
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ variables:
3030 value : default
3131 description : " the namespace to place new resources in"
3232 versions : " >=0.0.1"
33+ - name : " REPLICACOUNT"
34+ type : " int"
35+ kind : " replicaCount"
36+ default :
37+ disablePrompt : true
38+ value : 2
39+ description : " the number of replicas for the deployment"
40+ versions : " >=0.0.1"
3341 - name : " IMAGENAME"
3442 type : " string"
3543 kind : " containerImageName"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77 kubernetes.azure.com/generator : {{ .Config.GetVariableValue "GENERATORLABEL" }}
88 namespace : {{ .Config.GetVariableValue "NAMESPACE" }}
99spec :
10- replicas : 2
10+ replicas : {{ .Config.GetVariableValue "REPLICACOUNT" }}
1111 selector :
1212 matchLabels :
1313 app.kubernetes.io/name : {{ .Config.GetVariableValue "APPNAME" }}
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ variables:
3030 value : default
3131 description : " the namespace to place new resources in"
3232 versions : " >=0.0.1"
33+ - name : " REPLICACOUNT"
34+ type : " int"
35+ kind : " replicaCount"
36+ default :
37+ disablePrompt : true
38+ value : 2
39+ description : " the number of replicas for the deployment"
40+ versions : " >=0.0.1"
3341 - name : " IMAGENAME"
3442 type : " string"
3543 kind : " containerImageName"
Original file line number Diff line number Diff line change @@ -30,6 +30,14 @@ variables:
3030 value : default
3131 description : " the namespace to place new resources in"
3232 versions : " >=0.0.1"
33+ - name : " REPLICACOUNT"
34+ type : " int"
35+ kind : " replicaCount"
36+ default :
37+ disablePrompt : true
38+ value : 2
39+ description : " the number of replicas for the deployment"
40+ versions : " >=0.0.1"
3341 - name : " IMAGENAME"
3442 type : " string"
3543 kind : " containerImageName"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77 kubernetes.azure.com/generator : {{ .Config.GetVariableValue "GENERATORLABEL" }}
88 namespace : {{ .Config.GetVariableValue "NAMESPACE" }}
99spec :
10- replicas : 2
10+ replicas : {{ .Config.GetVariableValue "REPLICACOUNT" }}
1111 selector :
1212 matchLabels :
1313 app.kubernetes.io/name : {{ .Config.GetVariableValue "APPNAME" }}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
66 app : my-app
77 kubernetes.azure.com/generator : draft
88spec :
9- replicas : 2
9+ replicas : 1
1010 selector :
1111 matchLabels :
1212 app : my-app
You can’t perform that action at this time.
0 commit comments