Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions kagenti-operator/internal/webhook/injector/container_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,21 @@ func (b *ContainerBuilder) BuildEnvoyProxyContainerWithSpireOption(spireEnabled
},
}
if spireEnabled {
volumeMounts = append(volumeMounts, corev1.VolumeMount{
Name: "svid-output",
MountPath: "/opt",
ReadOnly: true,
})
}

if spireEnabled {
// authbridge-envoy bundles spiffe-helper; the entrypoint reads
// helper.conf from this mount. Without it, the bundled
// spiffe-helper would fail to start on SPIRE_ENABLED=true.
volumeMounts = append(volumeMounts, corev1.VolumeMount{
Name: "spiffe-helper-config",
MountPath: "/etc/spiffe-helper",
ReadOnly: true,
})
volumeMounts = append(volumeMounts,
corev1.VolumeMount{
Name: "svid-output",
MountPath: "/opt",
ReadOnly: true,
},
// authbridge-envoy bundles spiffe-helper; the entrypoint reads
// helper.conf from this mount. Without it, the bundled
// spiffe-helper would fail to start on SPIRE_ENABLED=true.
corev1.VolumeMount{
Name: "spiffe-helper-config",
MountPath: "/etc/spiffe-helper",
ReadOnly: true,
},
)
}

var env []corev1.EnvVar
Expand Down
Loading