diff --git a/cmd/webhook.go b/cmd/webhook.go index 3973b93..15cca64 100644 --- a/cmd/webhook.go +++ b/cmd/webhook.go @@ -297,6 +297,7 @@ func createPatch(pod *corev1.Pod, sidecarConfigTemplate *Config, clientset *kube sidecarConfig.Containers[0].Env[0].Value = "fusermount3-proxy-" + filerBucketName + "-" + shortenedNs + "/fuse-csi-ephemeral.sock" sidecarConfig.Containers[0].Env[1].Value = s3Access sidecarConfig.Containers[0].Env[2].Value = s3Secret + sidecarConfig.Containers[0].Env[3].Value = s3Url[8:] // want everything after https:// sidecarConfig.Containers[0].Resources.Limits = resourceLimit sidecarConfig.Containers[0].Resources.Requests = resourceRequest diff --git a/deploy/configmap.yaml b/deploy/configmap.yaml index b8b9be7..1c340fa 100644 --- a/deploy/configmap.yaml +++ b/deploy/configmap.yaml @@ -42,6 +42,10 @@ data: { "name": "AWS_SECRET_ACCESS_KEY", "value": "INSERT-SECRET" + }, + { + "name": "BUCKET_HOST", + "value": "INSERT-BUCKET-HOST" } ] }