diff --git a/charts/kubezero-logging/templates/secrets.yaml b/charts/kubezero-logging/templates/secrets.yaml index 7dd79204..7ba0fbb5 100644 --- a/charts/kubezero-logging/templates/secrets.yaml +++ b/charts/kubezero-logging/templates/secrets.yaml @@ -11,4 +11,4 @@ metadata: {{ include "kubezero-lib.labels" . | indent 4 }} data: username: {{ "elastic" | b64enc | quote }} - elastic: {{ .Values.es.elastic_password | b64enc | quote }} + elastic: {{ .Values.elastic_password | b64enc | quote }} diff --git a/charts/kubezero-logging/values-test.yaml b/charts/kubezero-logging/values-test.yaml index 077be874..f4327e03 100644 --- a/charts/kubezero-logging/values-test.yaml +++ b/charts/kubezero-logging/values-test.yaml @@ -8,6 +8,8 @@ fullnameOverride: logging # Version for ElasticSearch and Kibana have to match so we define it at top-level version: 7.6.0 +elastic_password: "dsfsfs" # super_secret_elastic_password + es: nodeSets: - name: default-zone-0 @@ -19,7 +21,6 @@ es: s3Snapshot: enabled: true iamrole: "dfsf" # INSERT_CLOUDFORMATION_OUTPUT_ElasticSearchSnapshots - elastic_password: "dsfsfs" # super_secret_elastic_password prometheus: true diff --git a/charts/kubezero-logging/values.yaml b/charts/kubezero-logging/values.yaml index 6d6ae9a5..b0f16454 100644 --- a/charts/kubezero-logging/values.yaml +++ b/charts/kubezero-logging/values.yaml @@ -4,6 +4,8 @@ # Version for ElasticSearch and Kibana have to match so we define it at top-level version: 7.8.1 +elastic_password: "" # super_secret_elastic_password + es: nodeSets: [] #- count: 2 @@ -14,7 +16,6 @@ es: s3Snapshot: enabled: false iamrole: "" # INSERT_CLOUDFORMATION_OUTPUT_ElasticSearchSnapshots - elastic_password: "" # super_secret_elastic_password prometheus: false diff --git a/deploy/templates/values.yaml b/deploy/templates/values.yaml index 600df345..fdc4d0b4 100644 --- a/deploy/templates/values.yaml +++ b/deploy/templates/values.yaml @@ -129,8 +129,28 @@ kubezero: logging: enabled: {{ .Values.logging.enabled }} values: - {{- with .Values.logging }} - {{- toYaml . | nindent 6 }} + elastic_password: {{ .Values.logging.elastic_password }} + + {{- if .Values.logging.version }} + version: {{ .Values.logging.version }} + + {{- if .Values.logging.fullnameOverride }} + {{- end }} + fullnameOverride: {{ .Values.logging.fullnameOverride }} + {{- end }} + es: + {{- if .Values.logging.es.nodeSets }} + nodeSets: + {{- with .Values.logging.es.nodeSets }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} + prometheus: {{ .Values.metrics.enabled }} + {{- if .Values.logging.kibana }} + kibana: + {{- with .Values.logging.kibana }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} argo-cd: