Skip to content

Commit 64ba945

Browse files
authored
chore: Add revisionHistoryLimit to helm chart (#1615)
1 parent 4a5223a commit 64ba945

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

manifest_staging/charts/workload-identity-webhook/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ helm upgrade -n azure-workload-identity-system [RELEASE_NAME] azure-workload-ide
5656
| mutatingWebhookNamespaceSelector | The namespace selector to further refine which namespaces will be selected by the webhook. | `{}` |
5757
| podDisruptionBudget.minAvailable | The minimum number of pods that must be available for the webhook to be considered available | `1` |
5858
| podDisruptionBudget.maxUnavailable | The maximum number of pods that may be unavailable for the webhook to be considered available | `nil` |
59+
| revisionHistoryLimit | The number of old ReplicaSets to retain for the webhook deployment | `10` |
5960

6061
## Contributing Changes
6162

manifest_staging/charts/workload-identity-webhook/templates/azure-wi-webhook-controller-manager-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ metadata:
99
name: azure-wi-webhook-controller-manager
1010
namespace: '{{ .Release.Namespace }}'
1111
spec:
12+
{{- if .Values.revisionHistoryLimit }}
13+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
14+
{{- end }}
1215
replicas: {{ .Values.replicaCount }}
1316
selector:
1417
matchLabels:

third_party/open-policy-agent/gatekeeper/helmify/kustomize-for-helm.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ metadata:
2929
namespace: azure-workload-identity-system
3030
spec:
3131
replicas: HELMSUBST_DEPLOYMENT_REPLICAS
32+
HELMSUBST_DEPLOYMENT_REVISION_HISTORY_LIMIT: ""
3233
selector:
3334
matchLabels:
3435
azure-workload-identity.io/system: "true"

third_party/open-policy-agent/gatekeeper/helmify/replacements.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ var replacements = map[string]string{
55

66
`HELMSUBST_DEPLOYMENT_NODE_SELECTOR: ""`: `{{- toYaml .Values.nodeSelector | nindent 8 }}`,
77

8+
`HELMSUBST_DEPLOYMENT_REVISION_HISTORY_LIMIT: ""`: `{{- if .Values.revisionHistoryLimit }}
9+
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
10+
{{- end }}`,
11+
812
"HELMSUBST_DEPLOYMENT_REPLICAS": `{{ .Values.replicaCount }}`,
913

1014
`HELMSUBST_DEPLOYMENT_AFFINITY: ""`: `{{- toYaml .Values.affinity | nindent 8 }}`,

third_party/open-policy-agent/gatekeeper/helmify/static/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ helm upgrade -n azure-workload-identity-system [RELEASE_NAME] azure-workload-ide
5656
| mutatingWebhookNamespaceSelector | The namespace selector to further refine which namespaces will be selected by the webhook. | `{}` |
5757
| podDisruptionBudget.minAvailable | The minimum number of pods that must be available for the webhook to be considered available | `1` |
5858
| podDisruptionBudget.maxUnavailable | The maximum number of pods that may be unavailable for the webhook to be considered available | `nil` |
59+
| revisionHistoryLimit | The number of old ReplicaSets to retain for the webhook deployment | `10` |
5960

6061
## Contributing Changes
6162

0 commit comments

Comments
 (0)