diff --git a/examples/chart/tbot/templates/required.yaml b/examples/chart/tbot/templates/required.yaml new file mode 100644 index 0000000000000..04feb44c337c5 --- /dev/null +++ b/examples/chart/tbot/templates/required.yaml @@ -0,0 +1,17 @@ +{{ if not .Values.customConfig }} + {{ if not (or .Values.teleportAuthAddress .Values.teleportProxyAddress) }} + {{- required "When `customConfig` has not been set, `teleportAuthAddress` or `teleportProxyAddress` must be provided" "" }} + {{ end }} + {{ if not .Values.clusterName }} + {{- required "When `customConfig` has not been set, `clusterName` must be provided" "" }} + {{ end }} + {{ if not .Values.token }} + {{- required "When `customConfig` has not been set, `token` must be provided" "" }} + {{ end }} + {{ if not .Values.defaultOutput.secretName }} + {{- required "When `customConfig` has not been set, `defaultOutput.secretName` must be provided" "" }} + {{ end }} +{{ end }} +{{ if (and .Values.teleportAuthAddress .Values.teleportProxyAddress) }} + {{- required "`teleportAuthAddress` and `teleportProxyAddress` are mutually exclusive" "" }} +{{ end }} \ No newline at end of file