Skip to content

Commit e80b841

Browse files
authored
fix: k8s 1.34 baseline PSA compliance (#745)
Fixes critical issue #739 Tested on GKE Standard with the following namespace settings: ``` pod-security.kubernetes.io/audit=baseline pod-security.kubernetes.io/enforce=baseline pod-security.kubernetes.io/warn=baseline ```
1 parent dab2607 commit e80b841

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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)