Skip to content

Commit c1b51af

Browse files
authored
Merge pull request #388 from wallrj/untyped-replicas
Allow replicaCount to be set to int or string
2 parents 6e20fee + 79f6408 commit c1b51af

File tree

3 files changed

+42
-9
lines changed

3 files changed

+42
-9
lines changed

deploy/charts/approver-policy/README.md

Lines changed: 26 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/charts/approver-policy/values.schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
},
323323
"helm-values.crds.keep": {
324324
"default": true,
325-
"description": "This option makes it so that the \"helm.sh/resource-policy\": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled. WARNING: when the CRDs are removed, all cert-manager custom resources\n(Certificates, Issuers, ...) will be removed too by the garbage collector.",
325+
"description": "This option makes it so that the \"helm.sh/resource-policy\": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled. WARNING: when the CRDs are removed, all cert-manager-approver-policy custom resources\n(CertificateRequestPolicy) will be removed too by the garbage collector.",
326326
"type": "boolean"
327327
},
328328
"helm-values.dnsPolicy": {
@@ -424,8 +424,7 @@
424424
},
425425
"helm-values.replicaCount": {
426426
"default": 1,
427-
"description": "Number of replicas of approver-policy to run.",
428-
"type": "number"
427+
"description": "Number of replicas of approver-policy to run.\n\nFor example:\n Use integer to set a fixed number of replicas\nreplicaCount: 2\nUse null, if you want to omit the replicas field and use the Kubernetes default value.\nreplicaCount: null\nUse a string if you want to insert a variable for post-processing of the rendered template.\nreplicaCount: ${REPLICAS_OVERRIDE:=3}"
429428
},
430429
"helm-values.resources": {
431430
"default": {},

deploy/charts/approver-policy/values.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ crds:
66
# This option makes it so that the "helm.sh/resource-policy": keep
77
# annotation is added to the CRD. This will prevent Helm from uninstalling
88
# the CRD when the Helm release is uninstalled.
9-
# WARNING: when the CRDs are removed, all cert-manager custom resources
10-
# (Certificates, Issuers, ...) will be removed too by the garbage collector.
9+
# WARNING: when the CRDs are removed, all cert-manager-approver-policy custom resources
10+
# (CertificateRequestPolicy) will be removed too by the garbage collector.
1111
keep: true
1212

1313
# Number of replicas of approver-policy to run.
14+
#
15+
# For example:
16+
# Use integer to set a fixed number of replicas
17+
# replicaCount: 2
18+
#
19+
# Use null, if you want to omit the replicas field and use the Kubernetes default value.
20+
# replicaCount: null
21+
#
22+
# Use a string if you want to insert a variable for post-processing of the rendered template.
23+
# replicaCount: ${REPLICAS_OVERRIDE:=3}
24+
#
25+
# +docs:type=number,string,null
1426
replicaCount: 1
1527

1628
image:

0 commit comments

Comments
 (0)