Skip to content

Commit

Permalink
feat: config datastore name (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsctl authored Aug 10, 2024
1 parent 1dccee3 commit cae25a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/kamaji-etcd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Here the values you can override:
| clientPort | int | `2379` | The client request port. |
| clusterDomain | string | `"cluster.local"` | Domain of the Kubernetes cluster. |
| 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 |
| defragmentation | object | `{"schedule":"*/15 * * * *"}` | Enable storage defragmentation |
| defragmentation.schedule | string | `"*/15 * * * *"` | The job scheduled maintenance time for defrag (empty to disable) |
| extraArgs | list | `[]` | A list of extra arguments to add to the etcd default ones |
Expand Down
2 changes: 1 addition & 1 deletion charts/kamaji-etcd/templates/etcd_datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: kamaji.clastix.io/v1alpha1
kind: DataStore
metadata:
name: {{ include "etcd.fullname" . }}
name: {{ .Values.datastore.name | default (include "etcd.fullname" .) }}
labels:
{{- include "etcd.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 2 additions & 0 deletions charts/kamaji-etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ topologySpreadConstraints: []
datastore:
# -- Create a datastore custom resource for Kamaji
enabled: false
# -- Name of Kamaji datastore, set to fully qualified etcd name when null or not provided
name: ""

serviceMonitor:
# -- Enable ServiceMonitor for Prometheus
Expand Down

0 comments on commit cae25a4

Please sign in to comment.