From 255a5506ceb58d3528ff5110a869bd8aaa3f31f7 Mon Sep 17 00:00:00 2001 From: nicholasSUSE Date: Mon, 24 Feb 2025 21:32:28 -0300 Subject: [PATCH] release chart: harvester-csi-driver - version: 105.0.2+up0.1.23 --- .../harvester-csi-driver-105.0.2+up0.1.23.tgz | Bin 0 -> 4029 bytes .../105.0.2+up0.1.23/.helmignore | 23 +++ .../105.0.2+up0.1.23/Chart.yaml | 22 +++ .../105.0.2+up0.1.23/questions.yml | 11 ++ .../105.0.2+up0.1.23/templates/NOTES.txt | 1 + .../105.0.2+up0.1.23/templates/_helpers.tpl | 62 +++++++ .../105.0.2+up0.1.23/templates/csidriver.yaml | 10 ++ .../105.0.2+up0.1.23/templates/daemonset.yaml | 152 ++++++++++++++++++ .../templates/deployment.yaml | 120 ++++++++++++++ .../105.0.2+up0.1.23/templates/rbac.yaml | 75 +++++++++ .../templates/storageclass.yaml | 10 ++ .../105.0.2+up0.1.23/values.yaml | 56 +++++++ index.yaml | 26 +++ release.yaml | 2 + 14 files changed, 570 insertions(+) create mode 100644 assets/harvester-csi-driver/harvester-csi-driver-105.0.2+up0.1.23.tgz create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/.helmignore create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/Chart.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/questions.yml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/NOTES.txt create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/_helpers.tpl create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/csidriver.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/daemonset.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/deployment.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/rbac.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/templates/storageclass.yaml create mode 100644 charts/harvester-csi-driver/105.0.2+up0.1.23/values.yaml diff --git a/assets/harvester-csi-driver/harvester-csi-driver-105.0.2+up0.1.23.tgz b/assets/harvester-csi-driver/harvester-csi-driver-105.0.2+up0.1.23.tgz new file mode 100644 index 0000000000000000000000000000000000000000..280a4487bc4805986cf8df2d0101b75e81eb7e8a GIT binary patch literal 4029 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 1.23.0-0 < 1.32.0-0' + catalog.cattle.io/namespace: kube-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux + catalog.cattle.io/rancher-version: '>= 2.10.0-0 < 2.11.0-0' + catalog.cattle.io/release-name: harvester-csi-driver + catalog.cattle.io/ui-component: harvester-csi-driver + catalog.cattle.io/upstream-version: 0.1.23 +apiVersion: v2 +appVersion: v0.2.2 +description: A Helm chart for Harvester CSI driver +keywords: +- infrastructure +- harvester +maintainers: +- name: harvester +name: harvester-csi-driver +type: application +version: 105.0.2+up0.1.23 diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/questions.yml b/charts/harvester-csi-driver/105.0.2+up0.1.23/questions.yml new file mode 100644 index 0000000000..0c703a0f29 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/questions.yml @@ -0,0 +1,11 @@ +categories: +- infrastructure +- harvester +namespace: kube-system +questions: +- variable: cloudConfig.hostPath + label: Cloud config file path + description: "Specify the path of the cloud config." + group: "Default" + type: string + default: "/etc/kubernetes/cloud-config" diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/NOTES.txt b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/NOTES.txt new file mode 100644 index 0000000000..ba09c6d518 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/NOTES.txt @@ -0,0 +1 @@ +Successfully deployed Harvester CSI driver to the {{ .Release.Namespace }} namespace. diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/_helpers.tpl b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/_helpers.tpl new file mode 100644 index 0000000000..def471b21d --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "harvester-csi-driver.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "harvester-csi-driver.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "harvester-csi-driver.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "harvester-csi-driver.labels" -}} +helm.sh/chart: {{ include "harvester-csi-driver.chart" . }} +{{ include "harvester-csi-driver.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "harvester-csi-driver.selectorLabels" -}} +app.kubernetes.io/name: {{ include "harvester-csi-driver.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Global system default registry +*/}} +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/csidriver.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/csidriver.yaml new file mode 100644 index 0000000000..5fc6ec84a2 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/csidriver.yaml @@ -0,0 +1,10 @@ +apiVersion: storage.k8s.io/v1 +kind: CSIDriver +metadata: + name: driver.harvesterhci.io +spec: + attachRequired: true + fsGroupPolicy: ReadWriteOnceWithFSType + podInfoOnMount: true + volumeLifecycleModes: + - Persistent diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/daemonset.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/daemonset.yaml new file mode 100644 index 0000000000..6ccb3203a0 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/daemonset.yaml @@ -0,0 +1,152 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: {{ include "harvester-csi-driver.name" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "harvester-csi-driver.labels" . | nindent 4 }} +spec: + selector: + matchLabels: + component: csi-driver + {{- include "harvester-csi-driver.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + component: csi-driver + {{- include "harvester-csi-driver.selectorLabels" . | nindent 8 }} + spec: + containers: + - args: + - --v=5 + - --csi-address=$(ADDRESS) + - --kubelet-registration-path={{ .Values.kubeletRootDir }}/harvester-plugins/driver.harvesterhci.io/csi.sock + env: + - name: ADDRESS + value: /csi/csi.sock + image: {{ template "system_default_registry" . }}{{ .Values.image.csi.nodeDriverRegistrar.repository }}:{{ .Values.image.csi.nodeDriverRegistrar.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + lifecycle: + preStop: + exec: + command: + - /bin/sh + - -c + - rm -rf /registration/driver.harvesterhci.io-reg.sock + /csi//* + name: node-driver-registrar + securityContext: + privileged: true + volumeMounts: + - mountPath: /csi/ + name: socket-dir + - mountPath: /registration + name: registration-dir + - args: + - --nodeid=$(NODE_ID) + - --endpoint=$(CSI_ENDPOINT) + - --kubeconfig=/var/lib/harvester/cloud-provider-config + {{- if .Values.hostStorageClass }} + - --host-storage-class={{ .Values.hostStorageClass }} + {{- end }} + env: + - name: NODE_ID + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: spec.nodeName + - name: CSI_ENDPOINT + value: unix:///csi/csi.sock + image: {{ template "system_default_registry" . }}{{ .Values.image.harvester.csiDriver.repository }}:{{ .Values.image.harvester.csiDriver.tag | default .Chart.AppVersion }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + lifecycle: + preStop: + exec: + command: + - /bin/sh + - -c + - rm -f /csi//* + name: harvester-csi-driver + securityContext: + allowPrivilegeEscalation: true + capabilities: + add: + - SYS_ADMIN + privileged: true + volumeMounts: + - name: cloud-config + readOnly: true + mountPath: /var/lib/harvester + - name: kubernetes + readOnly: true + mountPath: /etc/kubernetes + - mountPath: {{ .Values.kubeletRootDir }}/plugins/kubernetes.io/csi + mountPropagation: Bidirectional + name: kubernetes-csi-dir + - mountPath: /csi/ + name: socket-dir + - mountPath: {{ .Values.kubeletRootDir }}/pods + mountPropagation: Bidirectional + name: pods-mount-dir + - mountPath: /dev + name: host-dev + - mountPath: /sys + name: host-sys + - mountPath: /rootfs + mountPropagation: Bidirectional + name: host + - mountPath: /lib/modules + name: lib-modules + readOnly: true + hostPID: true + serviceAccountName: {{ include "harvester-csi-driver.name" . }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: cloud-config + {{- if .Values.cloudConfig.secretName }} + secret: + secretName: {{ .Values.cloudConfig.secretName }} + {{- else }} + hostPath: + path: {{ .Values.cloudConfig.hostPath }} + type: DirectoryOrCreate + {{- end }} + - hostPath: + path: /etc/kubernetes + type: DirectoryOrCreate + name: kubernetes + - hostPath: + path: {{ .Values.kubeletRootDir }}/plugins/kubernetes.io/csi + type: DirectoryOrCreate + name: kubernetes-csi-dir + - hostPath: + path: {{ .Values.kubeletRootDir }}/plugins_registry + type: Directory + name: registration-dir + - hostPath: + path: {{ .Values.kubeletRootDir }}/harvester-plugins/driver.harvesterhci.io + type: DirectoryOrCreate + name: socket-dir + - hostPath: + path: {{ .Values.kubeletRootDir }}/pods + type: DirectoryOrCreate + name: pods-mount-dir + - hostPath: + path: /dev + name: host-dev + - hostPath: + path: /sys + name: host-sys + - hostPath: + path: / + name: host + - hostPath: + path: /lib/modules + name: lib-modules diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/deployment.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/deployment.yaml new file mode 100644 index 0000000000..0b592251ce --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/deployment.yaml @@ -0,0 +1,120 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "harvester-csi-driver.name" . }}-controllers + namespace: {{ .Release.Namespace }} + labels: + {{- include "harvester-csi-driver.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicasCount }} + selector: + matchLabels: + component: csi-controllers + {{- include "harvester-csi-driver.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + component: csi-controllers + {{- include "harvester-csi-driver.selectorLabels" . | nindent 8 }} + spec: + containers: + - args: + - --v=5 + - --csi-address=$(ADDRESS) + - --timeout=1m50s + - --leader-election + - --leader-election-namespace=$(POD_NAMESPACE) + env: + - name: ADDRESS + value: /csi/csi.sock + - name: POD_NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: {{ template "system_default_registry" . }}{{ .Values.image.csi.resizer.repository }}:{{ .Values.image.csi.resizer.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + name: csi-resizer + volumeMounts: + - mountPath: /csi/ + name: socket-dir + - args: + - --v=5 + - --csi-address=$(ADDRESS) + - --timeout=1m50s + - --leader-election + - --leader-election-namespace=$(POD_NAMESPACE) + - --default-fstype=ext4 + env: + - name: ADDRESS + value: /csi/csi.sock + - name: POD_NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: {{ template "system_default_registry" . }}{{ .Values.image.csi.provisioner.repository }}:{{ .Values.image.csi.provisioner.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + name: csi-provisioner + volumeMounts: + - mountPath: /csi/ + name: socket-dir + - args: + - --v=5 + - --csi-address=$(ADDRESS) + - --timeout=1m50s + - --leader-election + - --leader-election-namespace=$(POD_NAMESPACE) + env: + - name: ADDRESS + value: /csi/csi.sock + - name: POD_NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: {{ template "system_default_registry" . }}{{ .Values.image.csi.attacher.repository }}:{{ .Values.image.csi.attacher.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + name: csi-attacher + volumeMounts: + - mountPath: /csi/ + name: socket-dir + serviceAccountName: {{ include "harvester-csi-driver.name" . }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + # For RKE1 + - matchExpressions: + - key: node-role.kubernetes.io/controlplane + operator: Exists + # For RKE2 + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: Exists + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: [harvester-csi-driver] + - key: component + operator: In + values: [csi-controllers] + topologyKey: kubernetes.io/hostname + volumes: + - hostPath: + path: {{ .Values.kubeletRootDir }}/harvester-plugins/driver.harvesterhci.io + type: DirectoryOrCreate + name: socket-dir diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/rbac.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/rbac.yaml new file mode 100644 index 0000000000..2ba042a26b --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/rbac.yaml @@ -0,0 +1,75 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "harvester-csi-driver.name" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "harvester-csi-driver.labels" . | nindent 4 }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "harvester-csi-driver.name" . }} + labels: + {{- include "harvester-csi-driver.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "harvester-csi-driver.name" . }} +subjects: + - kind: ServiceAccount + name: {{ include "harvester-csi-driver.name" . }} + namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "harvester-csi-driver.name" . }} + labels: + {{- include "harvester-csi-driver.labels" . | nindent 4 }} +rules: + - apiGroups: [ "coordination.k8s.io" ] + resources: [ "leases" ] + verbs: [ "get", "watch", "list", "delete", "update", "create" ] + - apiGroups: [ "storage.k8s.io" ] + resources: [ "csistoragecapacities" ] + verbs: [ "get", "list", "watch", "create", "update", "patch", "delete" ] + - apiGroups: [""] + resources: ["persistentvolumes"] + verbs: [ "get", "list", "watch", "create","update", "patch", "delete" ] + - apiGroups: [""] + resources: ["persistentvolumeclaims"] + verbs: ["get", "list", "watch", "create","update", "patch", "delete" ] + - apiGroups: [""] + resources: ["persistentvolumeclaims/status"] + verbs: ["patch"] + - apiGroups: ["storage.k8s.io"] + resources: ["storageclasses"] + verbs: ["get", "list", "watch"] + - apiGroups: ["snapshot.storage.k8s.io"] + resources: ["volumesnapshots"] + verbs: ["get", "list"] + - apiGroups: ["snapshot.storage.k8s.io"] + resources: ["volumesnapshotcontents"] + verbs: ["get", "list"] + - apiGroups: [ "storage.k8s.io" ] + resources: [ "csinodes" ] + verbs: [ "get", "list", "watch" ] + - apiGroups: [ "" ] + resources: [ "events" ] + verbs: [ "list", "watch", "create", "update", "patch" ] + - apiGroups: [ "" ] + resources: [ "pods" ] + verbs: [ "get", "list", "watch" ] + - apiGroups: [ "apps" ] + resources: [ "replicasets" ] + verbs: [ "get" ] + - apiGroups: [""] + resources: ["nodes"] + verbs: ["get", "list", "watch"] + - apiGroups: ["storage.k8s.io"] + resources: ["volumeattachments"] + verbs: ["get", "list", "watch", "patch"] + - apiGroups: [ "storage.k8s.io" ] + resources: [ "volumeattachments/status" ] + verbs: [ "patch" ] diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/storageclass.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/storageclass.yaml new file mode 100644 index 0000000000..a29c9c7da0 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/templates/storageclass.yaml @@ -0,0 +1,10 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: harvester + annotations: + storageclass.kubernetes.io/is-default-class: "true" +allowVolumeExpansion: true +provisioner: driver.harvesterhci.io +reclaimPolicy: Delete +volumeBindingMode: Immediate diff --git a/charts/harvester-csi-driver/105.0.2+up0.1.23/values.yaml b/charts/harvester-csi-driver/105.0.2+up0.1.23/values.yaml new file mode 100644 index 0000000000..fe6b120cbd --- /dev/null +++ b/charts/harvester-csi-driver/105.0.2+up0.1.23/values.yaml @@ -0,0 +1,56 @@ +# Default values for harvester-csi-driver. + +replicasCount: 3 + +image: + harvester: + csiDriver: + repository: rancher/harvester-csi-driver + # Overrides the image tag whose default is the chart appVersion. + tag: "v0.2.2" + csi: + nodeDriverRegistrar: + repository: rancher/mirrored-longhornio-csi-node-driver-registrar + tag: v2.3.0 + resizer: + repository: rancher/mirrored-longhornio-csi-resizer + tag: v1.2.0 + provisioner: + repository: rancher/mirrored-longhornio-csi-provisioner + tag: v2.1.2 + attacher: + repository: rancher/mirrored-longhornio-csi-attacher + tag: v3.2.1 + pullPolicy: IfNotPresent + +nameOverride: "" +fullnameOverride: "" + +# This field can be used to specify the corresponding StorageClass on the host cluster. +hostStorageClass: "" +kubeletRootDir: /var/lib/kubelet +cloudConfig: + secretName: "" + hostPath: "/var/lib/rancher/rke2/etc/config-files/" + +nodeSelector: + kubernetes.io/os: linux + +tolerations: + - effect: NoSchedule + key: kubevirt.io/drain + operator: Exists + - effect: NoSchedule + key: node-role.kubernetes.io/control-plane + operator: Equal + - effect: NoExecute + key: node-role.kubernetes.io/etcd + operator: Equal + - key: cattle.io/os + operator: Equal + value: "linux" + effect: NoSchedule + +global: + cattle: + systemDefaultRegistry: "" diff --git a/index.yaml b/index.yaml index 12d114f810..996739d4b9 100755 --- a/index.yaml +++ b/index.yaml @@ -3913,6 +3913,32 @@ entries: - assets/harvester-cloud-provider/harvester-cloud-provider-101.0.0+up0.1.13.tgz version: 101.0.0+up0.1.13 harvester-csi-driver: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Harvester CSI Driver + catalog.cattle.io/kube-version: '>= 1.23.0-0 < 1.32.0-0' + catalog.cattle.io/namespace: kube-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux + catalog.cattle.io/rancher-version: '>= 2.10.0-0 < 2.11.0-0' + catalog.cattle.io/release-name: harvester-csi-driver + catalog.cattle.io/ui-component: harvester-csi-driver + catalog.cattle.io/upstream-version: 0.1.23 + apiVersion: v2 + appVersion: v0.2.2 + created: "2025-02-24T21:32:23.083077347-03:00" + description: A Helm chart for Harvester CSI driver + digest: 708f5097a426b272a09fb13a699447d56ff546c925dfba800f4b7c9df654dbfa + keywords: + - infrastructure + - harvester + maintainers: + - name: harvester + name: harvester-csi-driver + type: application + urls: + - assets/harvester-csi-driver/harvester-csi-driver-105.0.2+up0.1.23.tgz + version: 105.0.2+up0.1.23 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Harvester CSI Driver diff --git a/release.yaml b/release.yaml index 93c6cb7ece..1cf8bc3005 100644 --- a/release.yaml +++ b/release.yaml @@ -4,6 +4,8 @@ fleet-agent: - 105.0.4+up0.11.4 fleet-crd: - 105.0.4+up0.11.4 +harvester-csi-driver: + - 105.0.2+up0.1.23 rancher-cis-benchmark: - 105.3.0+up7.3.0 rancher-cis-benchmark-crd: