enable/disable switch

This commit is contained in:
Valeriano Manassero 2021-09-14 15:50:07 +02:00
parent 7ff2f94d1a
commit 4206f75a9f
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
{{- range $key, $value := .Values.agentGroups }}
{{- with $value }}
{{- if .enabled }}
---
apiVersion: apps/v1
kind: Deployment
@ -114,3 +115,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -188,6 +188,7 @@ agentservices:
agentGroups:
agent-group-cpu:
enabled: true
name: agent-group-cpu
replicaCount: 1
updateStrategy: Recreate
@ -221,6 +222,7 @@ agentGroups:
affinity: {}
agent-group-gpu:
enabled: true
name: agent-group-gpu
replicaCount: 0
updateStrategy: Recreate