Skip to content

Commit bf986f3

Browse files
committed
Get webhook replicas from values file
1 parent 0159004 commit bf986f3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

deploy/helm/templates/static-resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3545,7 +3545,7 @@ metadata:
35453545
name: '{{ include "security-profiles-operator.name" . }}'
35463546
namespace: '{{ .Release.Namespace }}'
35473547
spec:
3548-
replicas: 3
3548+
replicas: '{{ .Values.replicaCount }}'
35493549
selector:
35503550
matchLabels:
35513551
app: '{{.Release.Name}}'

deploy/overlays/helm/kustomization.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ patches:
3030
target:
3131
kind: (ClusterRoleBinding|RoleBinding)
3232

33-
# TODO: get webhook deployment replicas from values file
3433
- patch: |
3534
- op: replace
3635
path: /spec/replicas
3736
value: "{{ .Values.replicaCount }}"
38-
target:
39-
kind: Deployment
40-
name: security-profiles-operator-webhook
37+
target: { kind: Deployment }
4138

4239
# Respect fullnameOverride
4340
- target: { name: security-profiles-operator }

0 commit comments

Comments
 (0)