-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Avi Moondra
authored and
Avi Moondra
committed
Oct 23, 2023
1 parent
1ba2002
commit e4d1452
Showing
3 changed files
with
8 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -302,3 +302,6 @@ extraManifests: [] | |
securityGroupPolicy: | ||
enabled: false | ||
groupIds: [] | ||
|
||
internalWorker: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{{/* Compile all validation warnings into a single message and call fail. */}} | ||
{{- define "retool.validationRules" -}} | ||
{{- $messages := list -}} | ||
{{- $messages = append $messages (include "retool.validationRules.workers" .) -}} | ||
{{- $messages = append $messages (include "retool.validationRules.internalWorker" .) -}} | ||
{{- $messages = without $messages "" -}} | ||
{{- $message := join "\n" $messages -}} | ||
{{- if $message -}} | ||
{{- printf "\nVALUES VALIDATION:\n%s" $message | fail -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- define "retool.validationRules.workers" -}} | ||
{{- if not (or (not (include "retool.worker.enabled" .)) (and (include "retool.worker.enabled" .) (include "retool.temporal.enabled" .))) -}} | ||
workers: | ||
Workers are enabled (via internalWorker.enabled, workflows.enabled explicitly, or workflows.enabled implicitly based on image.tag > 3.6.11), but Temporal is not enabled via retool-temporal-services-helm.enabled or workflows.temporal.enabled | ||
{{- define "retool.validationRules.internalWorker" -}} | ||
{{- if not (or (not (.Values.internalWorker.enabled)) (and (.Values.internalWorker.enabled) (or (include "retool.temporal.enabled" .) (include "retool.workflows.enabled" .)))) -}} | ||
internalWorker: | ||
Internal worker is enabled (via internalWorker.enabled), but Temporal is not enabled via retool-temporal-services-helm.enabled or workflows.temporal.enabled or via Retool's Managed Temporal for Retool Workflows (via workflows.enabled explicitly, or workflows.enabled implicitly based on image.tag > 3.6.11) | ||
{{- end -}} | ||
{{- end -}} |