Skip to content

Commit

Permalink
fixup: oops, fix potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bojidar-bg committed Oct 7, 2024
1 parent cd739e5 commit 2c719ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubernetes/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func ApplyPodRequest(

if podManifest.VerificationSettings.GetPublicVerifiability() == true {
verificationHost := podManifest.VerificationSettings.GetVerificationHost()
if verificationHost == "" {
if verificationHost == "" && len(httpSO.Spec.Hosts) > 0 {
httpHost := httpSO.Spec.Hosts[0]
lastDotIndex := strings.LastIndex(httpHost, ".")
if lastDotIndex == -1 {
Expand Down

0 comments on commit 2c719ea

Please sign in to comment.