Skip to content

Commit 7329cac

Browse files
authored
(chore): bump Kubebuilder to commit 57aed3f94a441973deff4121a0538e20dda422a8 (#181)
* bump KB to latest commit Signed-off-by: Bryce Palmer <[email protected]> * update testdata Signed-off-by: Bryce Palmer <[email protected]> * fix go.sum Signed-off-by: Bryce Palmer <[email protected]>
1 parent d3967d2 commit 7329cac

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ require (
2828
k8s.io/kubectl v0.24.0
2929
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
3030
sigs.k8s.io/controller-runtime v0.12.1
31-
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220608134342-eea565cb3f50
31+
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220613172611-57aed3f94a44
3232
sigs.k8s.io/yaml v1.3.0
3333
)
3434

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,8 +1560,8 @@ sigs.k8s.io/controller-tools v0.9.0 h1:b/vSEPpA8hiMiyzDfLbZdCn3hoAcy3/868OHhYtHY
15601560
sigs.k8s.io/controller-tools v0.9.0/go.mod h1:NUkn8FTV3Sad3wWpSK7dt/145qfuQ8CKJV6j4jHC5rM=
15611561
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 h1:kDi4JBNAsJWfz1aEXhO8Jg87JJaPNLh5tIzYHgStQ9Y=
15621562
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2/go.mod h1:B+TnT182UBxE84DiCz4CVE26eOSDAeYCpfDnC2kdKMY=
1563-
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220608134342-eea565cb3f50 h1:yPiqoNv2s1zA0BV/+ztL24M4PrnMl9BA8jksK9Ju344=
1564-
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220608134342-eea565cb3f50/go.mod h1:2o0wAP/Qi4vLA5tlmKOCTZdWUlkdewvkNi3o5Ko6eSw=
1563+
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220613172611-57aed3f94a44 h1:CiPMwc2kXKdu3PZalDa28e7S4ClLsgEDmlHWQWYC1OE=
1564+
sigs.k8s.io/kubebuilder/v3 v3.0.0-alpha.0.0.20220613172611-57aed3f94a44/go.mod h1:2o0wAP/Qi4vLA5tlmKOCTZdWUlkdewvkNi3o5Ko6eSw=
15651565
sigs.k8s.io/kustomize/api v0.11.4 h1:/0Mr3kfBBNcNPOW5Qwk/3eb8zkswCwnqQxxKtmrTkRo=
15661566
sigs.k8s.io/kustomize/api v0.11.4/go.mod h1:k+8RsqYbgpkIrJ4p9jcdPqe8DprLxFUUO0yNOq8C+xI=
15671567
sigs.k8s.io/kustomize/cmd/config v0.10.6/go.mod h1:/S4A4nUANUa4bZJ/Edt7ZQTyKOY9WCER0uBS1SW2Rco=

testdata/hybrid/memcached-operator/config/default/manager_auth_proxy_patch.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ spec:
1212
- name: kube-rbac-proxy
1313
securityContext:
1414
allowPrivilegeEscalation: false
15-
capabilities:
16-
drop:
17-
- ALL
15+
# TODO(user): uncomment for common cases that do not require escalating privileges
16+
# capabilities:
17+
# drop:
18+
# - "ALL"
1819
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0
1920
args:
2021
- "--secure-listen-address=0.0.0.0:8443"

testdata/hybrid/memcached-operator/config/manager/manager.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ spec:
2626
spec:
2727
securityContext:
2828
runAsNonRoot: true
29-
seccompProfile:
30-
type: RuntimeDefault
29+
# TODO(user): For common cases that do not require escalating privileges
30+
# it is recommended to ensure that all your Pods/Containers are restrictive.
31+
# More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
32+
# Please uncomment the following code if your project does NOT have to work on old Kubernetes
33+
# versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
34+
# seccompProfile:
35+
# type: RuntimeDefault
3136
containers:
3237
- args:
3338
- --leader-elect
@@ -36,9 +41,10 @@ spec:
3641
name: manager
3742
securityContext:
3843
allowPrivilegeEscalation: false
39-
capabilities:
40-
drop:
41-
- ALL
44+
# TODO(user): uncomment for common cases that do not require escalating privileges
45+
# capabilities:
46+
# drop:
47+
# - "ALL"
4248
livenessProbe:
4349
httpGet:
4450
path: /healthz

0 commit comments

Comments
 (0)