Skip to content

Commit

Permalink
feat: allow set controller replicas count.
Browse files Browse the repository at this point in the history
Adds a new value to allow user to define the number of replicas used to
run the Kubewarden controller.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Aug 1, 2023
1 parent 4f4b9f9 commit c756415
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/kubewarden-controller/chart-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ resources:
cpu: 250m
memory: 50Mi

# Controller replicas
replicas: 1

auditScanner:
enable: true
# The default audit-scanner ServiceAccount is bound to the ClusterRoles:
Expand Down
2 changes: 1 addition & 1 deletion charts/kubewarden-controller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
annotations:
{{- include "kubewarden-controller.annotations" . | nindent 4 }}
spec:
replicas: 1
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "kubewarden-controller.selectorLabels" . | nindent 6 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/kubewarden-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ resources:
cpu: 250m
memory: 50Mi

# Controller replicas
replicas: 1

auditScanner:
enable: true
# The default audit-scanner ServiceAccount is bound to the ClusterRoles:
Expand Down

0 comments on commit c756415

Please sign in to comment.