Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use secret from values file #63

Closed
Closed
Show file tree
Hide file tree
Changes from 5 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
2 changes: 1 addition & 1 deletion charts/quickwit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: quickwit
description: Sub-second search & analytics engine on cloud storage.
type: application
version: 0.5.7
version: 0.5.8
appVersion: "v0.7.1"
keywords:
- quickwit
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.control_plane.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.indexer.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
args: ["run", "--service", "indexer"]
ports:
{{- include "quickwit.ports" . | nindent 12 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.janitor.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/job-create-indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.bootstrap.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: /quickwit/node.yaml
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/job-create-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.bootstrap.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: /quickwit/node.yaml
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.metastore.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
{{- include "quickwit.ports" . | nindent 12 }}
startupProbe:
Expand Down
4 changes: 4 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- with .Values.searcher.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
args: ["run", "--service", "searcher"]
ports:
{{- include "quickwit.ports" . | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/quickwit/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.existingSecretForConfig -}}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -15,3 +16,4 @@ data:
{{- if ((.Values.config.storage).azure).access_key }}
storage.azure.access_key: {{ .Values.config.storage.azure.access_key | b64enc | quote }}
{{- end }}
{{- end }}
33 changes: 33 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ securityContext:
environment: {}
# KEY: VALUE

# -- Specify an existing secret containing Quickwit configuration.
existingSecretForConfig: false

searcher:
replicaCount: 3

# Extra env for searcher
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the searcher
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down Expand Up @@ -96,6 +104,11 @@ indexer:
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the indexer
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down Expand Up @@ -147,6 +160,11 @@ metastore:
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the metastore
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down Expand Up @@ -186,6 +204,11 @@ control_plane:
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the control plane
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down Expand Up @@ -225,6 +248,11 @@ janitor:
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the janitor
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down Expand Up @@ -265,6 +293,11 @@ bootstrap:
extraEnv: {}
# KEY: VALUE

# -- Environment variables from secrets or configmaps to add to the bootstrap
extraEnvFrom: []
# - secretRef:
# name: quickwit-credentials

resources: {}
# limits:
# cpu: 100m
Expand Down
Loading