Skip to content
Open
6 changes: 3 additions & 3 deletions charts/prometheus-federator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
- --debug
- --debug-level={{ .Values.helmProjectOperator.debugLevel }}
{{- end }}
{{- if and (not .Values.helmProjectOperator.helmController.enabled) (.Values.helmController.deployment.enabled) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that for a full fix we want this line, but with or instead of and.

Since the PromFed helm-controller should be disabled if the .Values.helmController.deployment.enabled is set true. Since it will not need the PromFed compiled version of helm-controller.

{{- if not .Values.helmProjectOperator.helmController.enabled }}
- --disable-embedded-helm-controller
{{- else }}
- --helm-job-image={{ template "system_default_registry" . }}{{ .Values.helmProjectOperator.helmController.job.image.repository }}:{{ .Values.helmProjectOperator.helmController.job.image.tag }}
Expand Down Expand Up @@ -132,11 +132,11 @@ spec:
{{- if .Values.helmProjectOperator.securityContext }}
securityContext: {{ toYaml .Values.helmProjectOperator.securityContext | nindent 8 }}
{{- end }}
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
{{- if .Values.helmProjectOperator.nodeSelector }}
{{- toYaml .Values.helmProjectOperator.nodeSelector | nindent 8 }}
{{- end }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
{{- if .Values.helmProjectOperator.tolerations }}
{{- toYaml .Values.helmProjectOperator.tolerations | nindent 8 }}
{{- end }}
Expand Down
6 changes: 4 additions & 2 deletions charts/prometheus-federator/templates/helmcontroller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
# this sets the `managedBy` annotations, must match the ones in prometheus-federator
- name: JOB_CLUSTER_ROLE
value: prometheus-federator-helm-controller
# this sets the `managedBy` annotations, must match the ones in prometheus-federator
- name: CONTROLLER_NAME
value: {{ template "prometheus-federator.name" . }}
# this sets the `systemNamespace` for the helm-controller to watch, should match the one in prometheus-federator
- name: SYSTEM_NAMESPACE
- name: NAMESPACE
value: {{ template "prometheus-federator.namespace" . }}
{{ end }}
Loading