GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy-operator

k8s 1.34 baseline PodSecurity cannot use host field in lifecycle handlers

Đang mở
#739 2 bình luận 1 reaction 1 người được giao Được @hessjcg nhận Xem trên GitHub
Ngôn ngữ chính
Go
Star
120
Fork
18
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Running on k8s 1.34, if you set a PodSecurity level of restricted or baseline, the `host` field is not allowed to be set in lifecycle handlers. The operator injects the following:

```yaml
lifecycle:
preStop:
httpGet:
host: localhost # Violates baseline AND restricted PSA
path: /quitquitquit
port: 9091
```

There is no way to override this without overriding the entire container object, so this ends up leading to the operator not being able to start the pods up.

https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.34.md#bug-or-regression-6

> The baseline and restricted pod security admission levels now block setting the host field on probe and lifecycle handlers (https://github.com/kubernetes/kubernetes/pull/125271, [@tssurya](https://github.com/tssurya)) [SIG Auth, Node and Testing]

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.