Skip to content

Commit 8ce1f3f

Browse files
author
eliranb
committed
Fix pr comments
1 parent ac194a9 commit 8ce1f3f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

charts/lightrun-agents/templates/_checkConfig.tpl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ Compile all warnings into a single message, and call fail.
3333
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Configuration Checker:\n Error: No workload configuration specified. Please provide either 'deploymentName' (legacy) OR 'workloadName' with 'workloadType' (recommended)." -}}
3434
{{- end }}
3535

36-
{{- /* Validate workloadType if workloadName is provided */}}
37-
{{- if .workloadName }}
38-
{{- if not .workloadType }}
39-
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Type Checker:\n Error: 'workloadName' is specified but 'workloadType' is missing. Please provide 'workloadType' (either 'Deployment' or 'StatefulSet')." -}}
40-
{{- else if not (or (eq .workloadType "Deployment") (eq .workloadType "StatefulSet")) }}
41-
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Type Checker:\n Error: Invalid 'workloadType' value. Must be either 'Deployment' or 'StatefulSet'." -}}
42-
{{- end }}
43-
{{- end }}
44-
4536
{{- if not .containerSelector }}
4637
{{- $objectErrorMsgs = append $objectErrorMsgs "Container Selector Checker:\n Error: The 'containerSelector' field is missing. Please provide the 'containerSelector' parameter." -}}
4738
{{- end }}

0 commit comments

Comments
 (0)