diff --git a/charts/kubedbcom-redis-editor-options/templates/secret.yaml b/charts/kubedbcom-redis-editor-options/templates/secret.yaml index 3ef2ade15..aa2c7f5c0 100644 --- a/charts/kubedbcom-redis-editor-options/templates/secret.yaml +++ b/charts/kubedbcom-redis-editor-options/templates/secret.yaml @@ -8,6 +8,6 @@ metadata: {{- include "kubedbcom-redis-editor-options.labels" . | nindent 4 }} type: kubernetes.io/basic-auth data: - username: {{ "root" | b64enc | quote }} + username: {{ "default" | b64enc | quote }} password: {{ .Values.spec.authSecret.password | trim | b64enc | quote }} {{- end }} diff --git a/charts/kubedbcom-redis-editor-options/templates/sentinel.yaml b/charts/kubedbcom-redis-editor-options/templates/sentinel.yaml index 946aa6759..f192e93cf 100644 --- a/charts/kubedbcom-redis-editor-options/templates/sentinel.yaml +++ b/charts/kubedbcom-redis-editor-options/templates/sentinel.yaml @@ -36,4 +36,11 @@ spec: storageClassName: {{ .Values.spec.admin.storageClasses.default }} storageType: Durable deletionPolicy: {{ .Values.spec.deletionPolicy }} +{{- if .Values.spec.admin.tls.default }} + tls: + issuerRef: + apiGroup: "cert-manager.io" + kind: ClusterIssuer + name: {{ .Values.spec.admin.clusterIssuers.default }} +{{- end }} {{ end }}