Remove manual installation of csi drivers (#600)

* Remove manual installation of csi drivers

* Remove explicit storage class

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-11-22 14:02:31 +01:00 committed by GitHub
parent 048ab94123
commit e7ee4d6e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 68 deletions

View File

@ -35,12 +35,6 @@ runs:
run: ./install.sh run: ./install.sh
shell: bash shell: bash
- name: Install Constellation CSI drivers and create storage class
uses: ./.github/actions/install_csi_drivers
with:
kubeconfig: ${{ inputs.kubeconfig }}
cloudProvider: ${{ inputs.cloudProvider }}
- name: Run K-Bench - name: Run K-Bench
shell: bash shell: bash
working-directory: k-bench working-directory: k-bench

View File

@ -7,7 +7,6 @@ metadata:
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: encrypted-storage
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
@ -20,7 +19,6 @@ metadata:
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: encrypted-storage
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi
@ -33,7 +31,6 @@ metadata:
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: encrypted-storage
resources: resources:
requests: requests:
storage: 10Gi storage: 10Gi

View File

@ -1,35 +0,0 @@
name: Install CSI drivers
description: Installs the Constellation CSI drivers depending on the cloud provider.
inputs:
cloudProvider:
description: |
Cloud provider for the Constellation cluster.
Either 'gcp' or 'azure'.
required: true
kubeconfig:
description: "The kubeconfig of the cluster to test."
required: true
runs:
using: composite
steps:
- name: Install Constellation GCP CSI driver and create storage class
if: inputs.cloudProvider == 'gcp'
shell: bash
run: |
kubectl apply -k github.com/edgelesssys/constellation-gcp-compute-persistent-disk-csi-driver/deploy/kubernetes/overlays/edgeless/latest
kubectl wait -n kube-system deployments csi-gce-pd-controller --for condition=available
kubectl apply -f .github/actions/install_csi_drivers/gcp_sc.yml
env:
KUBECONFIG: ${{ inputs.kubeconfig }}
- name: Install Constellation Azure CSI driver and create storage class
if: inputs.cloudProvider == 'azure'
shell: bash
run: |
helm install azuredisk-csi-driver https://raw.githubusercontent.com/edgelesssys/constellation-azuredisk-csi-driver/main/charts/edgeless/latest/azuredisk-csi-driver.tgz --namespace kube-system --set linux.distro=fedora --set controller.replicas=1
kubectl wait -n kube-system deployments csi-azuredisk-controller --for condition=available --timeout=300s
kubectl apply -f .github/actions/install_csi_drivers/azure_sc.yml
env:
KUBECONFIG: ${{ inputs.kubeconfig }}

View File

@ -1,12 +0,0 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: encrypted-storage
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: azuredisk.csi.confidential.cloud
parameters:
skuName: StandardSSD_LRS
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer

View File

@ -1,12 +0,0 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: encrypted-storage
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: gcp.csi.confidential.cloud
parameters:
type: pd-standard
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer