Skip to content

Commit 5593399

Browse files
committed
fix: k8s 1.34 baseline PSA compliance
1 parent dab2607 commit 5593399

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

internal/workload/podspec_updates.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,6 @@ func (s *updateState) addHealthCheck(p *cloudsqlapi.AuthProxyWorkload, c *corev1
899899
HTTPGet: &corev1.HTTPGetAction{
900900
Port: intstr.IntOrString{IntVal: adminPort},
901901
Path: "/quitquitquit",
902-
Host: "localhost",
903902
},
904903
},
905904
}

internal/workload/podspec_updates_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ func TestPreStopHook(t *testing.T) {
11371137
if get.Path != "/quitquitquit" {
11381138
t.Error("got", get.Path, "want", "/quitquitquit")
11391139
}
1140-
if get.Host != "localhost" {
1141-
t.Error("got", get.Host, "want", "localhost")
1140+
if get.Host != "" {
1141+
t.Error("got", get.Host, "want empty string (k8s 1.34 baseline PSA compliance)")
11421142
}
11431143
}
11441144

0 commit comments

Comments
 (0)