Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/eck-operator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
{{- include "eck-operator.selectorLabels" . | nindent 6 }}
serviceName: {{ include "eck-operator.fullname" . }}
replicas: {{ .Values.replicaCount }}
persistentVolumeClaimRetentionPolicy:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The operator has no volumeClaimTemplates, so I'm a bit unsure about the purpose of this.

whenDeleted: {{ .Values.persistentVolumeClaimRetentionPolicy.whenDeleted }}
whenScaled: {{ .Values.persistentVolumeClaimRetentionPolicy.whenScaled }}
template:
metadata:
annotations:
Expand Down
5 changes: 5 additions & 0 deletions deploy/eck-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ installCRDs: true
# replicaCount is the number of operator pods to run.
replicaCount: 1

# the strategy what happens with pvc on the statefulset
persistentVolumeClaimRetentionPolicy:
whenDeleted: Delete
whenScaled: Delete

image:
# repository is the container image prefixed by the registry name.
repository: docker.elastic.co/eck/eck-operator
Expand Down