mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
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:
parent
048ab94123
commit
e7ee4d6e59
6
.github/actions/e2e_kbench/action.yml
vendored
6
.github/actions/e2e_kbench/action.yml
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
35
.github/actions/install_csi_drivers/action.yml
vendored
35
.github/actions/install_csi_drivers/action.yml
vendored
@ -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 }}
|
|
12
.github/actions/install_csi_drivers/azure_sc.yml
vendored
12
.github/actions/install_csi_drivers/azure_sc.yml
vendored
@ -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
|
|
12
.github/actions/install_csi_drivers/gcp_sc.yml
vendored
12
.github/actions/install_csi_drivers/gcp_sc.yml
vendored
@ -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
|
|
Loading…
Reference in New Issue
Block a user