From a7e00d9074ebad7e55a5c8fda9dca27c36fec26c Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Thu, 1 Aug 2024 18:47:41 +0200 Subject: [PATCH] Update COSI driver v0.1.1 (#5845) Signed-off-by: Andrei Kvapil --- k8s/charts/seaweedfs/templates/cosi-cluster-role.yaml | 5 ++++- k8s/charts/seaweedfs/templates/cosi-deployment.yaml | 5 +++++ k8s/charts/seaweedfs/values.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/k8s/charts/seaweedfs/templates/cosi-cluster-role.yaml b/k8s/charts/seaweedfs/templates/cosi-cluster-role.yaml index d6c72d9f7..d3d839e36 100644 --- a/k8s/charts/seaweedfs/templates/cosi-cluster-role.yaml +++ b/k8s/charts/seaweedfs/templates/cosi-cluster-role.yaml @@ -42,9 +42,12 @@ rules: - "events" verbs: - "get" - - "delete" + - "list" + - "watch" - "update" - "create" + - "delete" + - "patch" --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 diff --git a/k8s/charts/seaweedfs/templates/cosi-deployment.yaml b/k8s/charts/seaweedfs/templates/cosi-deployment.yaml index 6499e4c6f..9d1320458 100644 --- a/k8s/charts/seaweedfs/templates/cosi-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/cosi-deployment.yaml @@ -145,6 +145,11 @@ spec: imagePullPolicy: {{ default "IfNotPresent" .Values.global.imagePullPolicy }} args: - {{ printf "--v=%s" (default "5" .Values.cosi.sidecar.logLevel) }} + env: + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace volumeMounts: - mountPath: /var/lib/cosi name: socket diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index de0707cb3..13df63472 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -872,7 +872,7 @@ s3: # For more information, visit: https://container-object-storage-interface.github.io/docs/deployment-guide cosi: enabled: false - image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.1.0" + image: "ghcr.io/seaweedfs/seaweedfs-cosi-driver:v0.1.1" driverName: "seaweedfs.objectstorage.k8s.io" endpoint: "" region: ""