diff --git a/service/webhook/pkg/tlscreds/tlscreds.go b/service/webhook/pkg/tlscreds/tlscreds.go index 6c6cf70..2aad228 100644 --- a/service/webhook/pkg/tlscreds/tlscreds.go +++ b/service/webhook/pkg/tlscreds/tlscreds.go @@ -14,12 +14,12 @@ import ( ) const ( - CertsDirPath = "/etc/webhook/certs" - CertPath = "/etc/webhook/certs/tls.crt" - KeyPath = "/etc/webhook/certs/tls.key" - certsFileMode = os.FileMode(0o644) - keyFileMode = os.FileMode(0o600) - certsDirMode = os.FileMode(0o755) + CertsDirPath = "/etc/webhook/certs" + CertPath = "/etc/webhook/certs/tls.crt" + KeyPath = "/etc/webhook/certs/tls.key" + certsFileMode = os.FileMode(0o644) + keyFileMode = os.FileMode(0o600) + certsDirMode = os.FileMode(0o755) SpiffeWorkloadNewClientTimeout = 15 * time.Second ) diff --git a/service/webhook/pkg/util/util.go b/service/webhook/pkg/util/util.go index 78bef8d..c6fd93d 100644 --- a/service/webhook/pkg/util/util.go +++ b/service/webhook/pkg/util/util.go @@ -36,6 +36,7 @@ func CreatePodPatch(pod *corev1.Pod, injectInitContainer bool, agentHttpsApiPort if vol.HostPath != nil && vol.HostPath.Path == spireAgentHostDir { volumeName = vol.Name foundVolume = true + break } }