Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: Namespace
metadata:
labels:
control-plane: controller-manager
openshift.io/scc: "anyuid"
Copy link
Contributor

@tylerslaton tylerslaton Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a comment describing why we're setting this label to this value with a link to the documentation. Do you think that would be too invasive?

pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/enforce-version: v1.24
Comment on lines +7 to +8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same from above applied to these lines.

name: system
---
apiVersion: apps/v1
Expand All @@ -26,6 +29,8 @@ spec:
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- command:
- /manager
Expand All @@ -36,6 +41,8 @@ spec:
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
livenessProbe:
httpGet:
path: /healthz
Expand Down
8 changes: 8 additions & 0 deletions config/rukpak/apis/webhooks/resources/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ spec:
strategy:
rollingUpdate:
maxUnavailable: 25%
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
selector:
matchLabels:
app: webhooks
Expand All @@ -27,6 +31,10 @@ spec:
serviceAccountName: webhooks-admin
containers:
- name: webhooks
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
command: ["/webhooks"]
image: quay.io/operator-framework/rukpak:v0.8.0
imagePullPolicy: IfNotPresent
Expand Down
12 changes: 12 additions & 0 deletions config/rukpak/core/resources/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ metadata:
labels:
app: core
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
replicas: 1
selector:
matchLabels:
Expand All @@ -19,6 +23,10 @@ spec:
serviceAccountName: core-admin
containers:
- name: kube-rbac-proxy
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
image: quay.io/brancz/kube-rbac-proxy:v0.12.0
args:
- "--secure-listen-address=0.0.0.0:8443"
Expand All @@ -36,6 +44,10 @@ spec:
- name: certs
mountPath: /etc/pki/tls
- name: manager
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
image: quay.io/operator-framework/rukpak:v0.8.0
imagePullPolicy: IfNotPresent
command: ["/core"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ metadata:
release.openshift.io/feature-gate: TechPreviewNoUpgrade
labels:
control-plane: controller-manager
openshift.io/scc: anyuid
pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/enforce-version: v1.24
name: openshift-platform-operators
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
namespace: openshift-platform-operators
spec:
replicas: 1
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
selector:
matchLabels:
app: core
Expand All @@ -35,6 +39,11 @@ spec:
- containerPort: 8443
name: https
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /etc/pki/tls
name: certs
Expand All @@ -53,6 +62,11 @@ spec:
name: manager
ports:
- containerPort: 8080
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /var/cache/bundles
name: bundle-cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ metadata:
namespace: openshift-platform-operators
spec:
replicas: 2
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
selector:
matchLabels:
app: webhooks
Expand Down Expand Up @@ -40,6 +44,11 @@ spec:
- containerPort: 9443
name: webhook-server
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- mountPath: /tmp/k8s-webhook-server/serving-certs
name: cert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ spec:
memory: 64Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: platform-operators-controller-manager
terminationGracePeriodSeconds: 10