Skip to content

Commit

Permalink
Add HA secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Josipmrden committed Dec 9, 2024
1 parent 3c77fe6 commit b9ef787
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
20 changes: 16 additions & 4 deletions charts/memgraph-high-availability/templates/coordinators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,22 @@ spec:
- "{{ $arg }}"
{{- end }}
env:
- name: MEMGRAPH_ENTERPRISE_LICENSE
value: "{{ $.Values.memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE }}"
- name: MEMGRAPH_ORGANIZATION_NAME
value: "{{ $.Values.memgraph.env.MEMGRAPH_ORGANIZATION_NAME }}"
{{- if .Values.secrets.enabled }}
- name: MEMGRAPH_USER
valueFrom:
secretKeyRef:
name: {{ .Values.secrets.name }}
key: {{ .Values.secrets.userKey }}
- name: MEMGRAPH_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.secrets.name }}
key: {{ .Values.secrets.passwordKey }}
{{- end }}
- name: MEMGRAPH_ENTERPRISE_LICENSE
value: "{{ $.Values.memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE }}"
- name: MEMGRAPH_ORGANIZATION_NAME
value: "{{ $.Values.memgraph.env.MEMGRAPH_ORGANIZATION_NAME }}"
volumeMounts:
{{- if $.Values.memgraph.coordinators.volumeClaim.storagePVC }}
- name: memgraph-coordinator-{{ $coordinator.id }}-lib-storage
Expand Down
20 changes: 16 additions & 4 deletions charts/memgraph-high-availability/templates/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,22 @@ spec:
- "{{ $arg }}"
{{- end }}
env:
- name: MEMGRAPH_ENTERPRISE_LICENSE
value: "{{ $.Values.memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE }}"
- name: MEMGRAPH_ORGANIZATION_NAME
value: "{{ $.Values.memgraph.env.MEMGRAPH_ORGANIZATION_NAME }}"
{{- if .Values.secrets.enabled }}
- name: MEMGRAPH_USER
valueFrom:
secretKeyRef:
name: {{ .Values.secrets.name }}
key: {{ .Values.secrets.userKey }}
- name: MEMGRAPH_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.secrets.name }}
key: {{ .Values.secrets.passwordKey }}
{{- end }}
- name: MEMGRAPH_ENTERPRISE_LICENSE
value: "{{ $.Values.memgraph.env.MEMGRAPH_ENTERPRISE_LICENSE }}"
- name: MEMGRAPH_ORGANIZATION_NAME
value: "{{ $.Values.memgraph.env.MEMGRAPH_ORGANIZATION_NAME }}"
volumeMounts:
{{- if $.Values.memgraph.data.volumeClaim.storagePVC }}
- name: memgraph-data-{{ $data.id }}-lib-storage
Expand Down
6 changes: 6 additions & 0 deletions charts/memgraph-high-availability/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ sysctlInitContainer:
enabled: true
maxMapCount: 262144

secrets:
enabled: false
name: memgraph-secrets
userKey: USER
passwordKey: PASSWORD

data:
- id: "0"
args:
Expand Down

0 comments on commit b9ef787

Please sign in to comment.