Skip to content

Commit

Permalink
Add required values
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Jul 29, 2024
1 parent 23c65c6 commit d7b1e35
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/chart/tbot/templates/required.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit d7b1e35

Please sign in to comment.