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: ""