Skip to content

Commit

Permalink
Used /shared which is exposed outside Github action containers
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Oct 15, 2024
1 parent 58769a8 commit 4024a40
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
fetch-depth: 0
- name: Configuration file that can be consumed by the Pod Security Admission Controller
run: |
mkdir -p /tmp/pss
cat <<EOF > /tmp/pss/cluster-level-pss.yaml
mkdir -p /shared/pss
cat <<EOF > /shared/pss/cluster-level-pss.yaml
apiVersion: apiserver.config.k8s.io/v1
kind: AdmissionConfiguration
plugins:
Expand Down Expand Up @@ -107,16 +107,16 @@ jobs:
kind: ClusterConfiguration
apiServer:
extraArgs:
admission-control-config-file: /tmp/pss/cluster-level-pss.yaml
admission-control-config-file: /shared/pss/cluster-level-pss.yaml
extraVolumes:
- name: accf
hostPath: /tmp/pss
mountPath: /tmp/pss
hostPath: /shared/pss
mountPath: /shared/pss
readOnly: false
pathType: "DirectoryOrCreate"
extraMounts:
- hostPath: /tmp/pss
containerPath: /tmp/pss
- hostPath: /shared/pss
containerPath: /shared/pss
readOnly: false
selinuxRelabel: false
propagation: None
Expand Down Expand Up @@ -147,16 +147,16 @@ jobs:
kind: ClusterConfiguration
apiServer:
extraArgs:
admission-control-config-file: /tmp/pss/cluster-level-pss.yaml
admission-control-config-file: /shared/pss/cluster-level-pss.yaml
extraVolumes:
- name: accf
hostPath: /tmp/pss
mountPath: /tmp/pss
hostPath: /shared/pss
mountPath: /shared/pss
readOnly: false
pathType: "DirectoryOrCreate"
extraMounts:
- hostPath: /tmp/pss
containerPath: /tmp/pss
- hostPath: /shared/pss
containerPath: /shared/pss
readOnly: false
selinuxRelabel: false
propagation: None
Expand All @@ -174,16 +174,16 @@ jobs:
kind: ClusterConfiguration
apiServer:
extraArgs:
admission-control-config-file: /tmp/pss/cluster-level-pss.yaml
admission-control-config-file: /shared/pss/cluster-level-pss.yaml
extraVolumes:
- name: accf
hostPath: /tmp/pss
mountPath: /tmp/pss
hostPath: /shared/pss
mountPath: /shared/pss
readOnly: false
pathType: "DirectoryOrCreate"
extraMounts:
- hostPath: /tmp/pss
containerPath: /tmp/pss
- hostPath: /shared/pss
containerPath: /shared/pss
readOnly: false
selinuxRelabel: false
propagation: None
Expand All @@ -208,7 +208,7 @@ jobs:
- name: Create Kind Cluster
run: |
cat -A /tmp/cluster.yml
cat -A /tmp/pss/cluster-level-pss.yaml
cat -A /shared/pss/cluster-level-pss.yaml
export CLUSTER=$(uuidgen)
echo "export CLUSTER=$CLUSTER" > cluster.env
echo kind create cluster --name $CLUSTER --config=/tmp/cluster.yml --kubeconfig ./$CLUSTER.conf
Expand Down

0 comments on commit 4024a40

Please sign in to comment.