File tree Expand file tree Collapse file tree 7 files changed +28
-8
lines changed
charts/openstack-hypervisor-operator Expand file tree Collapse file tree 7 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ linters:
145145 enable-all : true
146146 nolintlint :
147147 require-specific : true
148+ modernize :
149+ disable :
150+ # omitzero requires removing omitempty tags in kubernetes api struct types which are nested, which is intepreted by controller-gen and breaks the CRDs.
151+ - omitzero
148152 perfsprint :
149153 # modernize generates nicer fix code
150154 concat-loop : false
Original file line number Diff line number Diff line change 6060 }}
6161 securityContext : {{- toYaml .Values.controllerManager.manager.containerSecurityContext
6262 | nindent 10 }}
63+ nodeSelector : {{- toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
6364 securityContext : {{- toYaml .Values.controllerManager.podSecurityContext | nindent
6465 8 }}
65- serviceAccountName : {{ include "openstack-hypervisor-operator.fullname" . }}-controller-manager
66+ serviceAccountName : {{ include "openstack-hypervisor-operator.serviceAccountName"
67+ . }}
6668 terminationGracePeriodSeconds : 10
69+ tolerations : {{- toYaml .Values.controllerManager.tolerations | nindent 8 }}
70+ topologySpreadConstraints : {{- toYaml .Values.controllerManager.topologySpreadConstraints
71+ | nindent 8 }}
Original file line number Diff line number Diff line change @@ -49,5 +49,5 @@ roleRef:
4949 name : ' {{ include "openstack-hypervisor-operator.fullname" . }}-leader-election-role'
5050subjects :
5151- kind : ServiceAccount
52- name : ' {{ include "openstack-hypervisor-operator.fullname " . }}-controller-manager '
52+ name : ' {{ include "openstack-hypervisor-operator.serviceAccountName " . }}'
5353 namespace : ' {{ .Release.Namespace }}'
Original file line number Diff line number Diff line change @@ -97,5 +97,5 @@ roleRef:
9797 name : ' {{ include "openstack-hypervisor-operator.fullname" . }}-manager-role'
9898subjects :
9999- kind : ServiceAccount
100- name : ' {{ include "openstack-hypervisor-operator.fullname " . }}-controller-manager '
100+ name : ' {{ include "openstack-hypervisor-operator.serviceAccountName " . }}'
101101 namespace : ' {{ .Release.Namespace }}'
Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ roleRef:
3030 name : ' {{ include "openstack-hypervisor-operator.fullname" . }}-metrics-auth-role'
3131subjects :
3232- kind : ServiceAccount
33- name : ' {{ include "openstack-hypervisor-operator.fullname " . }}-controller-manager '
33+ name : ' {{ include "openstack-hypervisor-operator.serviceAccountName " . }}'
3434 namespace : ' {{ .Release.Namespace }}'
Original file line number Diff line number Diff line change 1+ {{ if .Values.serviceAccount.create }}
12apiVersion : v1
23kind : ServiceAccount
34metadata :
4- name : {{ include "openstack-hypervisor-operator.fullname " . }}-controller-manager
5+ name : {{ include "openstack-hypervisor-operator.serviceAccountName " . }}
56 labels :
67 {{- include "openstack-hypervisor-operator.labels" . | nindent 4 }}
8+ {{- with .Values.serviceAccount.annotations }}
79 annotations :
8- {{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }}
10+ {{- toYaml . | nindent 4 }}
11+ {{- end }}
12+ automountServiceAccountToken : {{ .Values.serviceAccount.automount }}
13+ {{- end }}
Original file line number Diff line number Diff line change @@ -26,11 +26,12 @@ controllerManager:
2626 requests :
2727 cpu : 10m
2828 memory : 64Mi
29+ nodeSelector : {}
2930 podSecurityContext :
3031 runAsNonRoot : true
3132 replicas : 1
32- serviceAccount :
33- annotations : {}
33+ tolerations : []
34+ topologySpreadConstraints : []
3435kubernetesClusterDomain : cluster.local
3536metricsService :
3637 ports :
@@ -41,3 +42,8 @@ metricsService:
4142 type : ClusterIP
4243secret :
4344 servicePassword : " "
45+ serviceAccount :
46+ annotations : {}
47+ automount : true
48+ create : true
49+ name : " "
You can’t perform that action at this time.
0 commit comments