Refactor main.go and introduce make run-scaleset to be able to run manager locally (#2337)

This commit is contained in:
Nikola Jokic
2023-03-10 18:05:51 +01:00
committed by GitHub
parent 1d24d3b00d
commit a5f98dea75
7 changed files with 106 additions and 119 deletions

View File

@@ -54,10 +54,8 @@ spec:
command:
- "/manager"
env:
- name: CONTROLLER_MANAGER_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: CONTROLLER_MANAGER_CONTAINER_IMAGE
value: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
- name: CONTROLLER_MANAGER_POD_NAMESPACE
valueFrom:
fieldRef:
@@ -98,4 +96,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}