Skip to content

Commit

Permalink
fix: use a more restrictive condition to filter certs volume
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilock authored Feb 19, 2025
1 parent ef3cfd5 commit 4eefc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/rpaas/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (m *k8sRpaasManager) debugPodWithContainerStatus(ctx context.Context, args
func removeCertVolumeMounts(volumeMounts []corev1.VolumeMount) []corev1.VolumeMount {
var result []corev1.VolumeMount
for _, vm := range volumeMounts {
if !strings.Contains(vm.MountPath, "certs") {
if !strings.HasPrefix(vm.MountPath, "/etc/nginx/certs") {
result = append(result, vm)
}
}
Expand Down

0 comments on commit 4eefc9e

Please sign in to comment.