File tree Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ func DaemonSet(
147147 },
148148 TerminationGracePeriodSeconds : & terminationGracePeriodSeconds ,
149149 ServiceAccountName : instance .Spec .ServiceAccount ,
150+ AutomountServiceAccountToken : ptr .To (false ),
150151 Containers : []corev1.Container {
151152 {
152153 Name : serviceName ,
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ func DbSyncJob(
6868 SecurityContext : & corev1.PodSecurityContext {
6969 FSGroup : ptr .To (OctaviaUID ),
7070 },
71- RestartPolicy : corev1 .RestartPolicyOnFailure ,
72- ServiceAccountName : instance .RbacResourceName (),
71+ RestartPolicy : corev1 .RestartPolicyOnFailure ,
72+ ServiceAccountName : instance .RbacResourceName (),
73+ AutomountServiceAccountToken : ptr .To (false ),
7374 Containers : []corev1.Container {
7475 {
7576 Name : ServiceName + "-db-sync" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import (
2323 appsv1 "k8s.io/api/apps/v1"
2424 corev1 "k8s.io/api/core/v1"
2525 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26+ "k8s.io/utils/ptr"
2627)
2728
2829type ImageUploadDetails struct {
@@ -107,7 +108,8 @@ func ImageUploadDeployment(
107108 Labels : labels ,
108109 },
109110 Spec : corev1.PodSpec {
110- ServiceAccountName : instance .RbacResourceName (),
111+ ServiceAccountName : instance .RbacResourceName (),
112+ AutomountServiceAccountToken : ptr .To (false ),
111113 Containers : []corev1.Container {
112114 {
113115 Name : "octavia-amphora-httpd" ,
Original file line number Diff line number Diff line change @@ -158,7 +158,8 @@ func Deployment(
158158 SecurityContext : & corev1.PodSecurityContext {
159159 FSGroup : ptr .To (octavia .OctaviaUID ),
160160 },
161- ServiceAccountName : instance .Spec .ServiceAccount ,
161+ ServiceAccountName : instance .Spec .ServiceAccount ,
162+ AutomountServiceAccountToken : ptr .To (false ),
162163 Containers : []corev1.Container {
163164 {
164165 Name : serviceName ,
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ func DaemonSet(
103103 Labels : labels ,
104104 },
105105 Spec : corev1.PodSpec {
106- ServiceAccountName : instance .Spec .ServiceAccount ,
106+ ServiceAccountName : instance .Spec .ServiceAccount ,
107+ AutomountServiceAccountToken : ptr .To (false ),
107108 Containers : []corev1.Container {
108109 {
109110 Name : serviceName ,
Original file line number Diff line number Diff line change 9898 - octavia-api
9999 topologyKey : kubernetes.io/hostname
100100 weight : 100
101+ automountServiceAccountToken : false
101102 containers :
102103 - args :
103104 - -c
You can’t perform that action at this time.
0 commit comments