Skip to content

Commit

Permalink
Merge pull request #246 from mikemcd3912/csiDriverGitOps
Browse files Browse the repository at this point in the history
CSI driver GitOps Blog Edits
  • Loading branch information
elamaran11 authored Apr 9, 2024
2 parents d8bd3a7 + b27e81b commit ee7ec16
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ In order to sucessfully install the VMware CSI Driver, the following items must
1. Creation of the `ClusterSecretStore` Kubernetes resource detailed in the eks-anywhere-addons/README.md file

2. Creation of config secrets in AWS Secrets Manager that External secrets will reference in the
vsphere-csi-externalsecrets.yaml file.
vsphere-external-secrets.yaml file.

# Creation of the Config Secrets

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: vmware-csi-kustomization
namespace: flux-system
labels:
app: vmware-csi-driver
spec:
interval: 1m0s
path: ./eks-anywhere-vsphere/Addons/Core/storage-driver/vmware-csi
prune: true
sourceRef:
kind: GitRepository
name: addons

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ metadata:
labels:
component: cloud-controller-manager
tier: control-plane
kustomize.toolkit.fluxcd.io/force: enabled
namespace: kube-system
spec:
selector:
Expand Down Expand Up @@ -204,4 +205,4 @@ spec:
operator: Exists
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
operator: Exists
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ spec:
volumeMounts:
- mountPath: /csi
name: socket-dir
volumes:
volumes:
- name: vsphere-config-volume
secret:
secretName: vsphere-config-secret
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: test-app
Expand All @@ -9,10 +9,10 @@ spec:
kind: GitRepository
name: addons
namespace: flux-system
interval: 5m0s
interval: 1m0s
prune: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: snapshot
Expand All @@ -25,22 +25,5 @@ spec:
kind: GitRepository
name: addons
namespace: flux-system
interval: 5m0s
interval: 1m0s
prune: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: snapshot-restore
namespace: flux-system
spec:
dependsOn:
- name: snapshot
path: "./eks-anywhere-vsphere/Testers/Core/snapshot-tester/snapshot-restore"
sourceRef:
kind: GitRepository
name: addons
namespace: flux-system
interval: 5m0s
prune: true
---

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: vmware-csi-snapshotclass
driver: csi.vsphere.vmware.com
deletionPolicy: Delete
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: openebs-volume-snapshot
name: vmware-csi-volume-snapshot
namespace: default
spec:
volumeSnapshotClassName: csi-cstor-snapshotclass
volumeSnapshotClassName: vmware-csi-snapshotclass
source:
persistentVolumeClaimName: openebs-claim
persistentVolumeClaimName: vmware-csi-claim
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: openebs-claim
name: vmware-csi-claim
namespace: default
spec:
accessModes:
- ReadWriteOnce
storageClassName: openebs-csi-cstor-sparse
storageClassName: vmware-sc
resources:
requests:
storage: 4Gi

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
volumes:
- name: persistent-storage
persistentVolumeClaim:
claimName: openebs-claim
claimName: vmware-csi-claim

0 comments on commit ee7ec16

Please sign in to comment.