Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix pr comments
  • Loading branch information
eliranb committed Jun 3, 2025
commit 8ce1f3ff99c65f999a360f32b4daa4cd4b6bad28
9 changes: 0 additions & 9 deletions charts/lightrun-agents/templates/_checkConfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ Compile all warnings into a single message, and call fail.
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Configuration Checker:\n Error: No workload configuration specified. Please provide either 'deploymentName' (legacy) OR 'workloadName' with 'workloadType' (recommended)." -}}
{{- end }}

{{- /* Validate workloadType if workloadName is provided */}}
{{- if .workloadName }}
{{- if not .workloadType }}
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Type Checker:\n Error: 'workloadName' is specified but 'workloadType' is missing. Please provide 'workloadType' (either 'Deployment' or 'StatefulSet')." -}}
{{- else if not (or (eq .workloadType "Deployment") (eq .workloadType "StatefulSet")) }}
{{- $objectErrorMsgs = append $objectErrorMsgs "Workload Type Checker:\n Error: Invalid 'workloadType' value. Must be either 'Deployment' or 'StatefulSet'." -}}
{{- end }}
{{- end }}

{{- if not .containerSelector }}
{{- $objectErrorMsgs = append $objectErrorMsgs "Container Selector Checker:\n Error: The 'containerSelector' field is missing. Please provide the 'containerSelector' parameter." -}}
{{- end }}
Expand Down
Loading