File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ BUILD_DATE := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
44
44
endif
45
45
LDFLAGS = -X ${PKG}/pkg/smb.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/smb.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/smb.buildDate=${BUILD_DATE}
46
46
EXT_LDFLAGS = -s -w -extldflags "-static"
47
- E2E_HELM_OPTIONS ?= --set image.smb.repository=$(REGISTRY ) /$(IMAGENAME ) --set image.smb.tag=$(IMAGE_VERSION )
47
+ E2E_HELM_OPTIONS ?= --set image.smb.repository=$(REGISTRY ) /$(IMAGENAME ) --set image.smb.tag=$(IMAGE_VERSION ) --set controller.runOnControlPlane=true
48
48
E2E_HELM_OPTIONS += ${EXTRA_HELM_OPTIONS}
49
49
# Generate all combination of all OS, ARCH, and OSVERSIONS for iteration
50
50
ALL_OS = linux windows
Original file line number Diff line number Diff line change @@ -24,10 +24,20 @@ spec:
24
24
{{ toYaml .Values.podAnnotations | indent 8 }}
25
25
{{- end }}
26
26
spec :
27
- {{- with .Values.controller.affinity }}
27
+ {{- if contains (tpl "{{ .Values.controller.affinity }}" .) "nodeSelectorTerms" }}
28
+ {{- with .Values.controller.affinity }}
28
29
affinity :
29
- {{ toYaml . | indent 8 }}
30
- {{- end }}
30
+ {{ toYaml . | indent 8 }}
31
+ {{- end }}
32
+ {{- else if .Values.controller.runOnControlPlane}}
33
+ affinity :
34
+ nodeAffinity :
35
+ requiredDuringSchedulingIgnoredDuringExecution :
36
+ nodeSelectorTerms :
37
+ - matchExpressions :
38
+ - key : node-role.kubernetes.io/control-plane
39
+ operator : Exists
40
+ {{- end }}
31
41
hostNetwork : true
32
42
dnsPolicy : {{ .Values.controller.dnsPolicy }}
33
43
serviceAccountName : {{ .Values.serviceAccount.controller }}
39
49
{{- if .Values.controller.runOnMaster}}
40
50
node-role.kubernetes.io/master : " "
41
51
{{- end}}
42
- {{- if .Values.controller.runOnControlPlane}}
43
- node-role.kubernetes.io/control-plane : " "
44
- {{- end}}
45
52
priorityClassName : {{ .Values.priorityClassName | quote }}
46
53
{{- if .Values.securityContext }}
47
54
securityContext : {{- toYaml .Values.securityContext | nindent 8 }}
You can’t perform that action at this time.
0 commit comments