Commit e5d704dd authored by Enrico Bocchi's avatar Enrico Bocchi
Browse files

Rename sssKeytab.name to sssKeytab.secret (as it uses an existing k8s secret)

parent c6de1f46
Pipeline #2759641 canceled with stage
......@@ -9,7 +9,7 @@ image:
# SSS keytab (needed to authenticate against other EOS components).
#
# The name of the kubernetes secret containing the eos keytab to use.
# Can be helpful when when deploying qdb in standalone mode using a custom keytab.
# Can be helpful when when deploying fst in standalone mode using a custom keytab.
#
# Warning: This chart does not automatically create any secret.
# The secret storing they key should be pre-created and its name passed here.
......@@ -25,10 +25,10 @@ image:
# eos.keytab: 138 bytes
#
# Default: eos-sss-keytab
# Can be overriden by .Values.global.sssKeytab.name
# Can be overriden by .Values.global.sssKeytab.secret
#
sssKeytab:
name:
secret:
#
# Assign fst pods to a node with a specific label
......
......@@ -7,7 +7,7 @@ image:
# SSS keytab (needed to authenticate against other EOS components).
#
# The name of the kubernetes secret containing the eos keytab to use.
# Can be helpful when when deploying qdb in standalone mode using a custom keytab.
# Can be helpful when when deploying mgm in standalone mode using a custom keytab.
#
# Warning: This chart does not automatically create any secret.
# The secret storing they key should be pre-created and its name passed here.
......@@ -23,10 +23,10 @@ image:
# eos.keytab: 138 bytes
#
# Default: eos-sss-keytab
# Can be overriden by .Values.global.sssKeytab.name
# Can be overriden by .Values.global.sssKeytab.secret
#
sssKeytab:
name:
secret:
#
# Assign mgm pod to a node with a specific label.
......
......@@ -7,7 +7,7 @@ image:
# SSS keytab (needed to authenticate against other EOS components).
#
# The name of the kubernetes secret containing the eos keytab to use.
# Can be helpful when when deploying qdb in standalone mode using a custom keytab.
# Can be helpful when when deploying mq in standalone mode using a custom keytab.
#
# Warning: This chart does not automatically create any secret.
# The secret storing they key should be pre-created and its name passed here.
......@@ -23,10 +23,10 @@ image:
# eos.keytab: 138 bytes
#
# Default: eos-sss-keytab
# Can be overriden by .Values.global.sssKeytab.name
# Can be overriden by .Values.global.sssKeytab.secret
#
sssKeytab:
name:
secret:
#
# Assign mq pod to a node with a specific label or express an affinity with the mgm.
......
......@@ -36,10 +36,10 @@ clusterID: 24964842-7852-48fd-bbb9-43beb5bfeea9
# eos.keytab: 138 bytes
#
# Default: eos-sss-keytab
# Can be overriden by .Values.global.sssKeytab.name
# Can be overriden by .Values.global.sssKeytab.secret
#
sssKeytab:
name:
secret:
#
# Assign qdb pod to a node with a specific label
......
{{/*
Create a secret to store the eos keytab
unless a secret name is specified via .Values.global.sssKeytab.name
unless a secret name is specified via .Values.global.sssKeytab.secret
*/}}
{{- if not (dig "sssKeytab" "name" false .Values.global) -}}
{{- if not (dig "sssKeytab" "secret" false .Values.global) -}}
{{- include "utils.sssKeytab" . -}}
{{- end }}
......@@ -9,10 +9,10 @@ global:
# SSS keytab for the eos cluster
# All the components (qdb, mq, fst, mgm) will use the keytab specified here.
# Options:
# - name: Name of an existing kubernetes secret storing the eos keytab to use.
# - secret: Use an existing secret (containing the eos keytab) by providing its name
# Takes priority over 'file' option (see below).
# - file: Path to a file storing the keytab. The secret 'eos-sss-keytab' will be generated from it.
# Defaults to 'files/eos.keytab'
sssKeytab:
name:
secret:
file:
{{/*
Name of the secret storing the SSS keytab
- Global value '.Values.global.sssKeytab.name' has highest priority
- Local value '.Values.sssKeytab.name' has lower priority
- Global value '.Values.global.sssKeytab.secret' has highest priority
- Local value '.Values.sssKeytab.secret' has lower priority
- Default is 'eos-sss-keytab'
*/}}
{{- define "utils.sssKeytabName" -}}
......@@ -9,10 +9,10 @@ Name of the secret storing the SSS keytab
{{- $sssNameLocal := "" -}}
{{- $sssNameGlobal := "" -}}
{{- if .Values.global }}
{{- $sssNameGlobal = dig "sssKeytab" "name" "" .Values.global -}}
{{- $sssNameGlobal = dig "sssKeytab" "secret" "" .Values.global -}}
{{- end }}
{{- if .Values.sssKeytab -}}
{{- $sssNameLocal = dig "name" "" .Values.sssKeytab -}}
{{- $sssNameLocal = dig "secret" "" .Values.sssKeytab -}}
{{- end }}
{{- coalesce $sssNameGlobal $sssNameLocal $sssNameDefault }}
{{- end }}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment