Fix Fleet upgrade failing with Rancher 2.7
@@ -44,6 +44,9 @@ spec:
imagePullPolicy: "{{ .Values.image.imagePullPolicy }}"
command:
- fleetcontroller
+ {{- if not .Values.gitops.enabled }}
+ - --disable-gitops
+ {{- end }}
{{- if .Values.debug }}
- --debug
- --debug-level
@@ -53,9 +56,6 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
{{- end }}
- {{- if not .Values.gitops.enabled }}
- - --disable-gitops
- {{- end }}
{{- if .Values.cpuPprof }}
volumeMounts:
- mountPath: /tmp/pprof
