Skip to content

Commit 3731b38

Browse files
committed
feat(expand CRDs): Troubleshooting
1 parent 9cc2500 commit 3731b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vault.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func addVault(pod *corev1.Pod, namespace string, databases []database) (patch []
121121
}
122122

123123
// Conditionally set Lifecycle if it exists in InitContainerSpec
124-
if initVaultContainerSpec.Lifecycle.PreStop.Exec.Command != nil {
124+
if len(initVaultContainerSpec.Lifecycle.PreStop.Exec.Command) > 0 {
125125
log.Info("I AM NOT EMPTY")
126126
log.Infof("ContainerSpec Lifecycle Command content: %+v", initVaultContainerSpec.Lifecycle.PreStop.Exec.Command)
127127
log.Infof("ContainerSpec Lifecycle Command type: %T", initVaultContainerSpec.Lifecycle.PreStop.Exec.Command)

0 commit comments

Comments
 (0)