Skip to content

Commit 04c2497

Browse files
committed
fix: use BoundServceAccountTokenVolume de default
1 parent cf85180 commit 04c2497

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

pkg/operator/staticpod/controller/installer/manifests/installer-pod.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ metadata:
66
labels:
77
app: installer
88
spec:
9-
automountServiceAccountToken: false
109
serviceAccountName: installer-sa
1110
nodeName: # Value set by operator
1211
containers:
@@ -31,9 +30,6 @@ spec:
3130
volumeMounts:
3231
- mountPath: /etc/kubernetes/
3332
name: kubelet-dir
34-
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
35-
name: kube-api-access
36-
readOnly: true
3733
- mountPath: /var/lock
3834
name: var-lock
3935
resources:
@@ -56,21 +52,3 @@ spec:
5652
- hostPath:
5753
path: /var/lock
5854
name: var-lock
59-
- name: kube-api-access
60-
projected:
61-
defaultMode: 420
62-
sources:
63-
- serviceAccountToken:
64-
expirationSeconds: 3600
65-
path: token
66-
- configMap:
67-
items:
68-
- key: ca.crt
69-
path: ca.crt
70-
name: kube-root-ca.crt
71-
- downwardAPI:
72-
items:
73-
- fieldRef:
74-
apiVersion: v1
75-
fieldPath: metadata.namespace
76-
path: namespace

pkg/operator/staticpod/controller/prune/manifests/pruner-pod.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ metadata:
66
labels:
77
app: pruner
88
spec:
9-
automountServiceAccountToken: false
109
serviceAccountName: installer-sa
1110
nodeName: # Value set by operator
1211
containers:
@@ -29,9 +28,6 @@ spec:
2928
volumeMounts:
3029
- mountPath: /etc/kubernetes/
3130
name: kubelet-dir
32-
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33-
name: kube-api-access
34-
readOnly: true
3531
restartPolicy: Never
3632
priorityClassName: system-node-critical
3733
tolerations:
@@ -42,21 +38,3 @@ spec:
4238
- hostPath:
4339
path: /etc/kubernetes/
4440
name: kubelet-dir
45-
- name: kube-api-access
46-
projected:
47-
defaultMode: 420
48-
sources:
49-
- serviceAccountToken:
50-
expirationSeconds: 3600
51-
path: token
52-
- configMap:
53-
items:
54-
- key: ca.crt
55-
path: ca.crt
56-
name: kube-root-ca.crt
57-
- downwardAPI:
58-
items:
59-
- fieldRef:
60-
apiVersion: v1
61-
fieldPath: metadata.namespace
62-
path: namespace

0 commit comments

Comments
 (0)