From 15a13a127fedc41eec0dcd0bb4eb04956b72c319 Mon Sep 17 00:00:00 2001 From: ER Hapal Date: Tue, 16 Dec 2025 10:52:27 +1300 Subject: [PATCH] feat(helm): add scheduling support to agent helm charts Signed-off-by: ER Hapal --- helm/agents/argo-rollouts/templates/agent.yaml | 13 ++++++++++++- helm/agents/argo-rollouts/values.yaml | 6 +++++- helm/agents/cilium-debug/templates/agent.yaml | 12 ++++++++++++ helm/agents/cilium-debug/values.yaml | 4 ++++ helm/agents/cilium-manager/templates/agent.yaml | 12 ++++++++++++ helm/agents/cilium-manager/values.yaml | 4 ++++ helm/agents/cilium-policy/templates/agent.yaml | 12 ++++++++++++ helm/agents/cilium-policy/values.yaml | 6 +++++- helm/agents/helm/templates/agent.yaml | 12 ++++++++++++ helm/agents/helm/values.yaml | 6 +++++- helm/agents/istio/templates/agent.yaml | 12 ++++++++++++ helm/agents/istio/values.yaml | 6 +++++- helm/agents/k8s/templates/agent.yaml | 14 +++++++++++++- helm/agents/k8s/values.yaml | 6 +++++- helm/agents/kgateway/templates/agent.yaml | 12 ++++++++++++ helm/agents/kgateway/values.yaml | 6 +++++- helm/agents/observability/templates/agent.yaml | 12 ++++++++++++ helm/agents/observability/values.yaml | 4 ++++ helm/agents/promql/templates/agent.yaml | 13 ++++++++++++- helm/agents/promql/values.yaml | 6 +++++- 20 files changed, 168 insertions(+), 10 deletions(-) diff --git a/helm/agents/argo-rollouts/templates/agent.yaml b/helm/agents/argo-rollouts/templates/agent.yaml index c77086f42..a28d3c9f3 100644 --- a/helm/agents/argo-rollouts/templates/agent.yaml +++ b/helm/agents/argo-rollouts/templates/agent.yaml @@ -177,4 +177,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} - + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/argo-rollouts/values.yaml b/helm/agents/argo-rollouts/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/argo-rollouts/values.yaml +++ b/helm/agents/argo-rollouts/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/cilium-debug/templates/agent.yaml b/helm/agents/cilium-debug/templates/agent.yaml index b52f668f7..6e7ee7d1c 100644 --- a/helm/agents/cilium-debug/templates/agent.yaml +++ b/helm/agents/cilium-debug/templates/agent.yaml @@ -195,3 +195,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/cilium-debug/values.yaml b/helm/agents/cilium-debug/values.yaml index 4bb3d3cad..e6f6d9754 100644 --- a/helm/agents/cilium-debug/values.yaml +++ b/helm/agents/cilium-debug/values.yaml @@ -7,3 +7,7 @@ resources: limits: cpu: 1000m memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/cilium-manager/templates/agent.yaml b/helm/agents/cilium-manager/templates/agent.yaml index 5471737ef..38763655d 100644 --- a/helm/agents/cilium-manager/templates/agent.yaml +++ b/helm/agents/cilium-manager/templates/agent.yaml @@ -459,3 +459,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/cilium-manager/values.yaml b/helm/agents/cilium-manager/values.yaml index 4bb3d3cad..e6f6d9754 100644 --- a/helm/agents/cilium-manager/values.yaml +++ b/helm/agents/cilium-manager/values.yaml @@ -7,3 +7,7 @@ resources: limits: cpu: 1000m memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/cilium-policy/templates/agent.yaml b/helm/agents/cilium-policy/templates/agent.yaml index 2da8c853f..50af82790 100644 --- a/helm/agents/cilium-policy/templates/agent.yaml +++ b/helm/agents/cilium-policy/templates/agent.yaml @@ -514,3 +514,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/cilium-policy/values.yaml b/helm/agents/cilium-policy/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/cilium-policy/values.yaml +++ b/helm/agents/cilium-policy/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/helm/templates/agent.yaml b/helm/agents/helm/templates/agent.yaml index e24e8700e..9e3c73fc3 100644 --- a/helm/agents/helm/templates/agent.yaml +++ b/helm/agents/helm/templates/agent.yaml @@ -221,3 +221,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/helm/values.yaml b/helm/agents/helm/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/helm/values.yaml +++ b/helm/agents/helm/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/istio/templates/agent.yaml b/helm/agents/istio/templates/agent.yaml index 805d989a7..930fa2a21 100644 --- a/helm/agents/istio/templates/agent.yaml +++ b/helm/agents/istio/templates/agent.yaml @@ -259,3 +259,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/istio/values.yaml b/helm/agents/istio/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/istio/values.yaml +++ b/helm/agents/istio/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/k8s/templates/agent.yaml b/helm/agents/k8s/templates/agent.yaml index b5de7614c..efa413730 100644 --- a/helm/agents/k8s/templates/agent.yaml +++ b/helm/agents/k8s/templates/agent.yaml @@ -178,4 +178,16 @@ spec: - "Identify potential security vulnerabilities in my cluster." deployment: resources: - {{- toYaml .Values.resources | nindent 8 }} \ No newline at end of file + {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/k8s/values.yaml b/helm/agents/k8s/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/k8s/values.yaml +++ b/helm/agents/k8s/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/kgateway/templates/agent.yaml b/helm/agents/kgateway/templates/agent.yaml index 3a0acb80b..2d6945acb 100644 --- a/helm/agents/kgateway/templates/agent.yaml +++ b/helm/agents/kgateway/templates/agent.yaml @@ -305,3 +305,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/kgateway/values.yaml b/helm/agents/kgateway/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/kgateway/values.yaml +++ b/helm/agents/kgateway/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/observability/templates/agent.yaml b/helm/agents/observability/templates/agent.yaml index 2b077f3d1..8e0740180 100644 --- a/helm/agents/observability/templates/agent.yaml +++ b/helm/agents/observability/templates/agent.yaml @@ -186,3 +186,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/observability/values.yaml b/helm/agents/observability/values.yaml index 4bb3d3cad..e6f6d9754 100644 --- a/helm/agents/observability/values.yaml +++ b/helm/agents/observability/values.yaml @@ -7,3 +7,7 @@ resources: limits: cpu: 1000m memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file diff --git a/helm/agents/promql/templates/agent.yaml b/helm/agents/promql/templates/agent.yaml index 4543c83d5..2aa21226c 100644 --- a/helm/agents/promql/templates/agent.yaml +++ b/helm/agents/promql/templates/agent.yaml @@ -203,4 +203,15 @@ spec: deployment: resources: {{- toYaml .Values.resources | nindent 8 }} - \ No newline at end of file + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/helm/agents/promql/values.yaml b/helm/agents/promql/values.yaml index 47cde6ba9..046c29ff0 100644 --- a/helm/agents/promql/values.yaml +++ b/helm/agents/promql/values.yaml @@ -6,4 +6,8 @@ resources: memory: 256Mi limits: cpu: 1000m - memory: 1Gi \ No newline at end of file + memory: 1Gi + +nodeSelector: {} +tolerations: [] +affinity: {} \ No newline at end of file