|
13 | 13 | {{- $consoleDot := (index $dot.Subcharts "console") -}} |
14 | 14 | {{- $loadedValues := $consoleDot.Values -}} |
15 | 15 | {{- $consoleValue := $consoleDot.Values -}} |
16 | | -{{- $license_1 := (get (fromJson (include "redpanda.GetLicenseLiteral" (dict "a" (list $dot) ))) "r") -}} |
| 16 | +{{- $license_1 := $values.enterprise.license -}} |
17 | 17 | {{- if (and (ne $license_1 "") (not (get (fromJson (include "_shims.ptr_Deref" (dict "a" (list $values.console.secret.create false) ))) "r"))) -}} |
18 | 18 | {{- $_ := (set $consoleValue.secret "create" true) -}} |
19 | 19 | {{- $_ := (set $consoleValue.secret "license" $license_1) -}} |
|
28 | 28 | {{- $command := (list "sh" "-c" (printf "%s%s" (printf "%s%s" (printf "%s%s" (printf "%s%s" (printf "%s%s" (printf "%s%s" (printf "%s%s" "set -e; IFS=':' read -r KAFKA_SASL_USERNAME KAFKA_SASL_PASSWORD KAFKA_SASL_MECHANISM < <(grep \"\" $(find /mnt/users/* -print));" (printf " KAFKA_SASL_MECHANISM=${KAFKA_SASL_MECHANISM:-%s};" (get (fromJson (include "redpanda.GetSASLMechanism" (dict "a" (list $dot) ))) "r"))) " export KAFKA_SASL_USERNAME KAFKA_SASL_PASSWORD KAFKA_SASL_MECHANISM;") " export KAFKA_SCHEMAREGISTRY_USERNAME=$KAFKA_SASL_USERNAME;") " export KAFKA_SCHEMAREGISTRY_PASSWORD=$KAFKA_SASL_PASSWORD;") " export REDPANDA_ADMINAPI_USERNAME=$KAFKA_SASL_USERNAME;") " export REDPANDA_ADMINAPI_PASSWORD=$KAFKA_SASL_PASSWORD;") " /app/console $@") " --") -}} |
29 | 29 | {{- $_ := (set $consoleValue.deployment "command" $command) -}} |
30 | 30 | {{- end -}} |
31 | | -{{- $secret_2 := (get (fromJson (include "redpanda.GetLicenseSecretReference" (dict "a" (list $dot) ))) "r") -}} |
| 31 | +{{- $secret_2 := $values.enterprise.licenseSecretRef -}} |
32 | 32 | {{- if (ne (toJson $secret_2) "null") -}} |
33 | | -{{- $_ := (set $consoleValue "licenseSecretRef" (mustMergeOverwrite (dict "key" "" ) (mustMergeOverwrite (dict ) (dict "name" $secret_2.name )) (dict "key" $secret_2.key ))) -}} |
| 33 | +{{- $_ := (set $consoleValue "licenseSecretRef" $secret_2) -}} |
34 | 34 | {{- end -}} |
35 | 35 | {{- $_ := (set $consoleValue "extraVolumes" (get (fromJson (include "redpanda.consoleTLSVolumes" (dict "a" (list $dot) ))) "r")) -}} |
36 | 36 | {{- $_ := (set $consoleValue "extraVolumeMounts" (get (fromJson (include "redpanda.consoleTLSVolumesMounts" (dict "a" (list $dot) ))) "r")) -}} |
|
65 | 65 | {{- end -}} |
66 | 66 | {{- $visitedCert := (dict ) -}} |
67 | 67 | {{- range $_, $tlsCfg := (list $values.listeners.kafka.tls $values.listeners.schemaRegistry.tls $values.listeners.admin.tls) -}} |
68 | | -{{- $_136___visited := (get (fromJson (include "_shims.dicttest" (dict "a" (list $visitedCert $tlsCfg.cert false) ))) "r") -}} |
69 | | -{{- $_ := (index $_136___visited 0) -}} |
70 | | -{{- $visited := (index $_136___visited 1) -}} |
| 68 | +{{- $_131___visited := (get (fromJson (include "_shims.dicttest" (dict "a" (list $visitedCert $tlsCfg.cert false) ))) "r") -}} |
| 69 | +{{- $_ := (index $_131___visited 0) -}} |
| 70 | +{{- $visited := (index $_131___visited 1) -}} |
71 | 71 | {{- if (or (not (get (fromJson (include "redpanda.InternalTLS.IsEnabled" (dict "a" (list $tlsCfg $values.tls) ))) "r")) $visited) -}} |
72 | 72 | {{- continue -}} |
73 | 73 | {{- end -}} |
|
99 | 99 | {{- end -}} |
100 | 100 | {{- $visitedCert := (dict ) -}} |
101 | 101 | {{- range $_, $tlsCfg := (list $values.listeners.kafka.tls $values.listeners.schemaRegistry.tls $values.listeners.admin.tls) -}} |
102 | | -{{- $_177___visited := (get (fromJson (include "_shims.dicttest" (dict "a" (list $visitedCert $tlsCfg.cert false) ))) "r") -}} |
103 | | -{{- $_ := (index $_177___visited 0) -}} |
104 | | -{{- $visited := (index $_177___visited 1) -}} |
| 102 | +{{- $_172___visited := (get (fromJson (include "_shims.dicttest" (dict "a" (list $visitedCert $tlsCfg.cert false) ))) "r") -}} |
| 103 | +{{- $_ := (index $_172___visited 0) -}} |
| 104 | +{{- $visited := (index $_172___visited 1) -}} |
105 | 105 | {{- if (or (not (get (fromJson (include "redpanda.InternalTLS.IsEnabled" (dict "a" (list $tlsCfg $values.tls) ))) "r")) $visited) -}} |
106 | 106 | {{- continue -}} |
107 | 107 | {{- end -}} |
|
0 commit comments