From f2e50112829bf3e5b24ab5ed10025c3a14fa237e Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Thu, 14 Nov 2024 10:00:39 +0800 Subject: [PATCH] make charts Signed-off-by: Vicente Cheng --- .../harvester-csi-driver-105.0.0+up0.1.21.tgz | Bin 0 -> 3841 bytes .../105.0.0+up0.1.21/.helmignore | 23 +++ .../105.0.0+up0.1.21/Chart.yaml | 22 +++ .../105.0.0+up0.1.21/questions.yml | 11 ++ .../105.0.0+up0.1.21/templates/NOTES.txt | 1 + .../105.0.0+up0.1.21/templates/_helpers.tpl | 62 +++++++ .../105.0.0+up0.1.21/templates/csidriver.yaml | 10 ++ .../105.0.0+up0.1.21/templates/daemonset.yaml | 152 ++++++++++++++++++ .../templates/deployment.yaml | 95 +++++++++++ .../105.0.0+up0.1.21/templates/rbac.yaml | 75 +++++++++ .../templates/storageclass.yaml | 10 ++ .../105.0.0+up0.1.21/values.yaml | 56 +++++++ index.yaml | 26 +++ 13 files changed, 543 insertions(+) create mode 100644 assets/harvester-csi-driver/harvester-csi-driver-105.0.0+up0.1.21.tgz create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/.helmignore create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/Chart.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/questions.yml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/NOTES.txt create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/_helpers.tpl create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/csidriver.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/daemonset.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/deployment.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/rbac.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/templates/storageclass.yaml create mode 100644 charts/harvester-csi-driver/105.0.0+up0.1.21/values.yaml diff --git a/assets/harvester-csi-driver/harvester-csi-driver-105.0.0+up0.1.21.tgz b/assets/harvester-csi-driver/harvester-csi-driver-105.0.0+up0.1.21.tgz new file mode 100644 index 0000000000000000000000000000000000000000..0fa1f0fc0eb4aaf7709e59bc7b7eb113bbe80653 GIT binary patch literal 3841 zcmV+c5B~5UiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH+#bK5wQ^O?V*kIB|%vP$-{Uil#EPb#>)} z$d-gP2yg&Uu_np=_ALM;MN-tmk2sSV;e$nMW3_~h95lT%b6ypI%!lN0=)@CtPDI<%3lLQCw zkAkb|_bK$k{z2Fcy6|7n3lI9{@sF)t4JMV62nS%H zsD;v)v^EuL0F3hNuJvt-GND=pn_K0BuM^u3|1+nxANIQIX_d&3D9mT4P3Bs=Wi*IH zk_wJo-=|xuv_z6DY3+u+u;24YO5Yb%^S(#YbosLz_QSpxqlzR=wXJ&t|3H>NWV8WH zglsHpPQfiMJ_s4BffoSf6G@boS)?#~JY|MnWVP^Cq#Q~5sWi+y! z>XqZ_b&tYs*!@$M<|F*t;`GgxR{cLGEJO8V24IW+?;rIJoBIE#d%V~G&rx2$5GN#K z8r-5=Id5Z%(DNi(5maX)Gy3Sj^Jqe*XzWJW!~6h<6m?49{REJh3PrV$i_(mA*61@+ zUcl8HrKB+`&@%*!2Q-<&hnY|aaZWRJubqZks??0OEaqQ7jOkacMCt~J2Du%81? zrI=GQ>W2ZZbZ=1J3;VW)XiW@=hd?j-)<7SG{jlc&q#0w^g3)L(fQ!kc(AN?ba_w1b zP;kHieBYa7jIC69FW|=+RWPB*Vu%QbF+!#=1}#9P7}3eX@rRHSRVsK)`4mQ4NHWDU zMw9}US&`sc3Kpb{aBPD9IU}qA`TP!}Oz!{~bri3KXM0wizBMhusk#C9cItdv)iO+P z%EXwk+%47&od7sLGuN8A`dHW{{@S|yA*I#+YfMr`G^)j$|8ta47DcF((XR`LF=b+bajTp?7W6KO$MM)gK;~|cKb9j z(-O^a0IxfrKYON?cYc==9$Ot?L>3oM?-Yzh{Ipqj`>n6f<^dVR_wQhXq0**$T zK=|HmKC9jyd;%>q9>MW}eWb}Kn@s2(_<;{OEab6ybflh1BpQK~7@U4H4uFkinZ1G? zMCkp54z_Kt4F)qH1!IgzrVx}!5dNq1Lfp`;$Ekow1V$68oy)0>Gx}=me9qzJ$h0*M zr*TEU550>CgzbZ*Txr512d7oeYQy=v z-3sMn5e%?k)=iO?;Vo(CrLG4 z@d$sSdiJ-`kBihaOhtUbC*q2~bus6>|6H&v!5`=ZqeaBlBQ}Y^+UV#Bh)QYe;?lippvOy z7d-MHca#hc>mO_c&r0v^6L897*g zsneIQ-VBHD&PSu~SDNLykup1`so+6M^z77dLhirSGb`}a^P#w9_-vr zlWDP@6$-B_sk9YP%RF1XCoAk{eZEqOBQ4TFW1{eG$vw*wi6kLBUVUNay)&k~qh_t| zf~d7xCJ@L8bgB%qX7LSEHJ58y?1FY)SKc`;*p#z1MPZalsuyR1YrNCVsiAYqa9VL? zisD=n>!z%TP-1Fb>d%tZAlMORMuIwssoc=JIxVeGYJygUwNALre9-vx<*Uo9;rY$Q za8-tp$El!PpT2x`HoCYuzZ_m)U0nXyF6=IUd0Hko%QfrR^r%ZW$3}VChBX+CePJ^T zTW4N}(zFS3zcq+VtEytz2BEUeT~@BuANd5e>5sojk*tbR?@2L(yre!PVWYt&X-ej!+OM~LG^D+^-b35 ztqrGTV4K<^jEN7|h3-065n;p~@oOkCfQY1IOc~V_RdZw{ZW(Lj;jML!SfX8rlBI1m#Fs|#)=s0M9-^$qbY|_QBR;N(TX@qa0$l$$v zz{U@98~cIk*)sK0InlIi);#A_bk*XYBw_9QnHB@Sf~|5aYT2rBR_cMcoEod`pEhW( zhI3OnEEXZ!7dxNQel&4ew%m1olGy1OaORq#cZrZeS^X%8)13%R(G zE(KO6pzdr18}V<_tlN;S>b@P3K7p3LKW!^|`SCQC?%F2OR!G{gdw4KGyYA&5G>0u# z=`nNHG*P>fvBoHE;qST;T4SBIz^GfJHD+oHj8*`Rb&>(acPlmRU;CKFA-!+X zpgu78Rb&oUY5JDa2bv}*GJV=hj=IfVR}e5HG0MQw-i(K~ybns&JAL`;`f7M{`R48U z==#ms`S-ho{~nY+Saz==eEt|>!A4;@2~QgRGegfmQ`#l5Q8azRWJbRATKQZGzEEub zx54eMYre?AMA^f?c&88d67d8QQTeuR7pbT=|00sH`mG=ArDJakz5wSJ-+k`F_GQ~I z!t;$UP~nR({618A?@;NlKA!ZocV^F1w(S4qm_(1h2V%?q|L~;0^8Ht@-`ns1pQAMF zhTHm&YU=D;I{z00LG6|s%fBSkGa>0OR*kKmZgyY&zY`4qO6?5+j~?)o3`Gitxv?iH zwdbWbjK>358P0>KSK0Vq80q{HfmVK4s>}P@xLr8maZC6sS-Xs3K7+;DsR8^i_>mAY zro1`~AO6qIjYK6f8KG-vCq@SLUi*)BE^;Tm1j33V857VB7b9hu!05{_pr? zfB(a?lwH36s~(|l@vo`}EF0H}0@N6&@d>gj1J6-@%a)cI`kpmh>kE&KL zJ6redp>zhZh#3v7arK-Wx+?vCO8FCnBl-c|8QWD*gDXOrzZ%<`uDx_ARX2=*! znHallIpxzogG5F&ouiHARq6?ky%)gI9f5^csl*Ar!`KBO|Ks}*t~gtO;I^kB2~w26 zD96wXhoc*#hR}Nf`TY~`&qfeasl0GXb;tg7O<iV7J=;mHWSsd)@u{pJyo%(Kr>-e(kaG{^m8; zZI`TKy3dKEWXy^q(2WDbMQ~*RXXY)q1JYLRtgi3?YS&NuqskSYR+$txPF1>xz6UUM z!7)F-^utuSfWOj`@~H)E-weQSoGR{A4{Lv$S2*s=zU<4sJgEFT009603xv1J0Av6F DpOdTz literal 0 HcmV?d00001 diff --git a/charts/harvester-csi-driver/105.0.0+up0.1.21/.helmignore b/charts/harvester-csi-driver/105.0.0+up0.1.21/.helmignore new file mode 100644 index 00000000000..0e8a0eb36f4 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/harvester-csi-driver/105.0.0+up0.1.21/Chart.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/Chart.yaml new file mode 100644 index 00000000000..fa274bfce57 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/Chart.yaml @@ -0,0 +1,22 @@ +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.9.0-0 < 2.10.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.21 +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.0+up0.1.21 diff --git a/charts/harvester-csi-driver/105.0.0+up0.1.21/questions.yml b/charts/harvester-csi-driver/105.0.0+up0.1.21/questions.yml new file mode 100644 index 00000000000..0c703a0f294 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/NOTES.txt b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/NOTES.txt new file mode 100644 index 00000000000..ba09c6d5186 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/_helpers.tpl b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/_helpers.tpl new file mode 100644 index 00000000000..def471b21d7 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/csidriver.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/csidriver.yaml new file mode 100644 index 00000000000..5fc6ec84a22 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/daemonset.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/daemonset.yaml new file mode 100644 index 00000000000..6ccb3203a01 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/deployment.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/deployment.yaml new file mode 100644 index 00000000000..bb511dfa7b7 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/deployment.yaml @@ -0,0 +1,95 @@ +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 }} + volumes: + - hostPath: + path: {{ .Values.kubeletRootDir }}/harvester-plugins/driver.harvesterhci.io + type: DirectoryOrCreate + name: socket-dir diff --git a/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/rbac.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/rbac.yaml new file mode 100644 index 00000000000..2ba042a26b8 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/templates/storageclass.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/templates/storageclass.yaml new file mode 100644 index 00000000000..a29c9c7da02 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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.0+up0.1.21/values.yaml b/charts/harvester-csi-driver/105.0.0+up0.1.21/values.yaml new file mode 100644 index 00000000000..fe6b120cbd8 --- /dev/null +++ b/charts/harvester-csi-driver/105.0.0+up0.1.21/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 71cae271b63..ccd92068e89 100755 --- a/index.yaml +++ b/index.yaml @@ -3075,6 +3075,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.9.0-0 < 2.10.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.21 + apiVersion: v2 + appVersion: v0.2.2 + created: "2024-11-14T10:00:32.161127322+08:00" + description: A Helm chart for Harvester CSI driver + digest: 87d3b88283d80521fe67fbb06659238d82c1c01c0ec25d83fd29d7e77d80f2fe + keywords: + - infrastructure + - harvester + maintainers: + - name: harvester + name: harvester-csi-driver + type: application + urls: + - assets/harvester-csi-driver/harvester-csi-driver-105.0.0+up0.1.21.tgz + version: 105.0.0+up0.1.21 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Harvester CSI Driver