File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,8 @@ func mutateHandler(w http.ResponseWriter, r *http.Request) {
96
96
97
97
// Explicitly and silently exclude the kube-system namespace
98
98
if pod .ObjectMeta .Namespace != metav1 .NamespaceSystem {
99
- var v corev1.Volume
100
- var mount corev1.VolumeMount
101
99
// Define the volume to mount in
102
- v = corev1.Volume {
100
+ v : = corev1.Volume {
103
101
Name : "gcp-creds" ,
104
102
VolumeSource : corev1.VolumeSource {
105
103
HostPath : func () * corev1.HostPathVolumeSource {
@@ -116,7 +114,7 @@ func mutateHandler(w http.ResponseWriter, r *http.Request) {
116
114
}
117
115
118
116
// Mount the volume in
119
- mount = corev1.VolumeMount {
117
+ mount : = corev1.VolumeMount {
120
118
Name : "gcp-creds" ,
121
119
MountPath : "/google-app-creds.json" ,
122
120
ReadOnly : true ,
You can’t perform that action at this time.
0 commit comments