Skip to content

Commit

Permalink
feat: add annotations value to datastore (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: killianmuldoon <[email protected]>
  • Loading branch information
killianmuldoon authored Oct 29, 2024
1 parent 6e33566 commit 020a536
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kamaji-etcd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Here the values you can override:
| autoCompactionRetention | string | `"5m"` | Auto compaction retention length. 0 means disable auto compaction. |
| clientPort | int | `2379` | The client request port. |
| clusterDomain | string | `"cluster.local"` | Domain of the Kubernetes cluster. |
| datastore.annotations | object | `{}` | Assign additional Annotations to the datastore |
| datastore.enabled | bool | `false` | Create a datastore custom resource for Kamaji |
| datastore.name | string | `""` | Name of Kamaji datastore, set to fully qualified etcd name when null or not provided |
| extraArgs | list | `[]` | A list of extra arguments to add to the etcd default ones |
Expand Down
4 changes: 4 additions & 0 deletions charts/kamaji-etcd/templates/etcd_datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: kamaji.clastix.io/v1alpha1
kind: DataStore
metadata:
name: {{ .Values.datastore.name | default (include "etcd.fullname" .) }}
{{- if .Values.datastore.annotations }}
annotations:
{{- toYaml .Values.datastore.annotations | nindent 4 }}
{{- end }}
labels:
{{- include "etcd.labels" . | nindent 4 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/kamaji-etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ datastore:
enabled: false
# -- Name of Kamaji datastore, set to fully qualified etcd name when null or not provided
name: ""
# -- Assign additional Annotations to the datastore
annotations: {}
# helm.sh/resource-policy: keep

serviceMonitor:
# -- Enable ServiceMonitor for Prometheus
Expand Down

0 comments on commit 020a536

Please sign in to comment.