Skip to content

Commit

Permalink
Merge pull request #170 from liouk/required-scc
Browse files Browse the repository at this point in the history
AUTH-482: set required-scc for openshift workloads
  • Loading branch information
openshift-merge-bot[bot] committed Apr 17, 2024
2 parents 41f6ab2 + 40c3a9b commit d7e1d3c
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/base/node.yaml
Expand Up @@ -23,6 +23,8 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
# This annotation prevents eviction from the cluster-autoscaler
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
# This annotation prevents potential custom SCCs of taking over
openshift.io/required-scc: privileged
labels:
app: ${ASSET_PREFIX}-node
spec:
Expand Down
Expand Up @@ -48,6 +48,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes: bound-sa-token,socket-dir
openshift.io/required-scc: restricted-v2
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: aws-ebs-csi-driver-controller
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/aws-ebs/generated/hypershift/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: aws-ebs-csi-driver-node
Expand Down
Expand Up @@ -43,6 +43,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes: bound-sa-token,socket-dir
openshift.io/required-scc: restricted-v2
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: aws-ebs-csi-driver-controller
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/aws-ebs/generated/standalone/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: aws-ebs-csi-driver-node
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/aws-ebs/patches/controller_add_driver.yaml
Expand Up @@ -9,6 +9,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes: bound-sa-token,socket-dir
openshift.io/required-scc: restricted-v2
spec:
containers:
- name: csi-driver
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/azure-disk/generated/hypershift/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: azure-disk-csi-driver-node
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/azure-disk/generated/standalone/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: azure-disk-csi-driver-node
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/azure-file/generated/hypershift/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: azure-file-csi-driver-node
Expand Down
1 change: 1 addition & 0 deletions assets/overlays/azure-file/generated/standalone/node.yaml
Expand Up @@ -26,6 +26,7 @@ spec:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: azure-file-csi-driver-node
Expand Down
Expand Up @@ -22,6 +22,7 @@ spec:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes: bound-sa-token,socket-dir
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
openshift.io/required-scc: restricted-v2
labels:
app: aws-ebs-csi-driver-controller
hypershift.openshift.io/hosted-control-plane: clusters-test
Expand Down

0 comments on commit d7e1d3c

Please sign in to comment.