Skip to content

Commit 7274a6f

Browse files
Merge pull request openshift#226 from mrbarge/osd-16717-sa
OSD-16717 Do not mount API token into MCVW pod
2 parents 4c7a8ed + 44db864 commit 7274a6f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build/resources.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func createPackagedDeployment(replicas int32, phase string) *appsv1.Deployment {
144144
},
145145
},
146146
Spec: corev1.PodSpec{
147+
AutomountServiceAccountToken: &[]bool{false}[0],
147148
Affinity: &corev1.Affinity{
148149
NodeAffinity: &corev1.NodeAffinity{
149150
PreferredDuringSchedulingIgnoredDuringExecution: []corev1.PreferredSchedulingTerm{

config/package/resources.yaml.gotmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ spec:
8585
matchLabels:
8686
app: validation-webhook
8787
topologyKey: topology.kubernetes.io/zone
88+
automountServiceAccountToken: false
8889
containers:
8990
- command:
9091
- webhooks

0 commit comments

Comments
 (0)