You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog/fragments/kb-800fdeec6e5c.yaml
-49Lines changed: 0 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -1,55 +1,6 @@
1
1
# entries is a list of entries to include in
2
2
# release notes and/or the migration guide
3
3
entries:
4
-
- description: >
5
-
For Golang/Ansible/Helm/HybridHelm language-based operators (go/v3, ansible/v1, helm/v1, hybrid.helm/v1-alpha): applying restrictive SCC for all containers scaffolded by the tool (will not work with k8s versions < 1.19).
6
-
([More info](https://github.com/kubernetes-sigs/kubebuilder/pull/2700)). Important: You might be affected while updating Kubernetes to 1.25, Hence, ensure that the containers
7
-
used in your project are restrictive or defined with the property labels `pod-security.kubernetes.io` on clusters ([More info](https://kubernetes.io/docs/concepts/security/pod-security-admission/#pod-security-admission-labels-for-namespaces)). Therefore, we suggest
8
-
that you begin to configure the projects according to the best practices. ([More info](https://kubernetes.io/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/))
9
-
kind: "change"
10
-
11
-
# Is this a breaking change?
12
-
breaking: false
13
-
migration:
14
-
header: For Golang/Ansible/Helm/HybridHelm language-based operators (go/v3, ansible/v1, helm/v1, hybrid.helm/v1-alpha)
15
-
body: |
16
-
Following the steps
17
-
1) In `config/kdefault/manager_auth_proxy_patch.go` ensure the following security context:
18
-
19
-
```yaml
20
-
...
21
-
spec:
22
-
containers:
23
-
- name: kube-rbac-proxy
24
-
securityContext:
25
-
allowPrivilegeEscalation: false
26
-
capabilities:
27
-
drop:
28
-
- ALL
29
-
...
30
-
```
31
-
32
-
2) In the `config/manager/manager.yaml` ensure the following security context:
33
-
34
-
```yaml
35
-
spec:
36
-
securityContext:
37
-
runAsNonRoot: true
38
-
seccompProfile:
39
-
type: RuntimeDefault
40
-
containers:
41
-
- command:
42
-
- /manager
43
-
image: controller:latest
44
-
name: manager
45
-
securityContext:
46
-
allowPrivilegeEscalation: false
47
-
capabilities:
48
-
drop:
49
-
- ALL
50
-
```
51
-
3) Run make bundle tagert to ensure that the above changes are also applied to
52
-
your bundles.
53
4
- description: >
54
5
For Golang-based language (go/v2), fix issue introduced by removing the GO111MODULE=on from Dockerfile. ([More info](https://github.com/kubernetes-sigs/kubebuilder/pull/2678))
0 commit comments