Skip to content

Commit

Permalink
feat(expand CRDs): Troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoMori8 committed Feb 7, 2025
1 parent 9cc2500 commit 3731b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func addVault(pod *corev1.Pod, namespace string, databases []database) (patch []
}

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

0 comments on commit 3731b38

Please sign in to comment.