From 1256b3e917f482174ec59cf196683d5b23a9c0a1 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 5 Aug 2024 20:11:34 +0200 Subject: [PATCH] Add: COSI BucketClass and BucketAccessClass (#5863) Signed-off-by: Andrei Kvapil --- .../seaweedfs/templates/cosi-bucket-class.yaml | 16 ++++++++++++++++ k8s/charts/seaweedfs/values.yaml | 1 + 2 files changed, 17 insertions(+) create mode 100644 k8s/charts/seaweedfs/templates/cosi-bucket-class.yaml diff --git a/k8s/charts/seaweedfs/templates/cosi-bucket-class.yaml b/k8s/charts/seaweedfs/templates/cosi-bucket-class.yaml new file mode 100644 index 000000000..e5503abd8 --- /dev/null +++ b/k8s/charts/seaweedfs/templates/cosi-bucket-class.yaml @@ -0,0 +1,16 @@ +{{- if and .Values.cosi.enabled .Values.cosi.bucketClassName }} +--- +kind: BucketClass +apiVersion: objectstorage.k8s.io/v1alpha1 +metadata: + name: {{ .Values.cosi.bucketClassName }} +driverName: {{ .Values.cosi.driverName }} +deletionPolicy: Delete +--- +kind: BucketAccessClass +apiVersion: objectstorage.k8s.io/v1alpha1 +metadata: + name: {{ .Values.cosi.bucketClassName }} +driverName: {{ .Values.cosi.driverName }} +authenticationType: KEY +{{- end }} diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index 13df63472..e42ad069a 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -874,6 +874,7 @@ cosi: enabled: false image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.1.1" driverName: "seaweedfs.objectstorage.k8s.io" + bucketClassName: "seaweedfs" endpoint: "" region: ""