File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
pkg/controller/vitessbackupstorage Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ func (r *ReconcileVitessBackupStorage) newSubcontrollerPodSpec(ctx context.Conte
136
136
if strings .HasPrefix (volume .Name , tokenNamePrefix ) {
137
137
continue
138
138
}
139
+ // also skip volumes mounted by k8s v1.21+ BoundedServiceAccountToken
140
+ // https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-bound-service-account-tokens
141
+ if strings .HasPrefix (volume .Name , "kube-api-access-" ) {
142
+ continue
143
+ }
139
144
newVolumes = append (newVolumes , volume )
140
145
}
141
146
spec .Volumes = newVolumes
@@ -149,6 +154,11 @@ func (r *ReconcileVitessBackupStorage) newSubcontrollerPodSpec(ctx context.Conte
149
154
if strings .HasPrefix (mount .Name , tokenNamePrefix ) {
150
155
continue
151
156
}
157
+ // also skip volumes mounted by k8s v1.21+ BoundedServiceAccountToken
158
+ // https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-bound-service-account-tokens
159
+ if strings .HasPrefix (mount .Name , "kube-api-access-" ) {
160
+ continue
161
+ }
152
162
newMounts = append (newMounts , mount )
153
163
}
154
164
You can’t perform that action at this time.
0 commit comments