-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dev-v2.8] bump harvester-csi-driver v0.1.17 and update kube-version (#…
…3302) bump harvester-csi-driver 0.1.17 and update kube-version - move to support k8s v1.29 Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
- Loading branch information
1 parent
0696a76
commit b95272e
Showing
16 changed files
with
545 additions
and
5 deletions.
There are no files selected for viewing
Binary file added
BIN
+3.68 KB
assets/harvester-csi-driver/harvester-csi-driver-103.0.1+up0.1.17.tgz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.29.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.8.0-0 < 2.9.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.17 | ||
apiVersion: v2 | ||
appVersion: v0.1.6 | ||
description: A Helm chart for Harvester CSI driver | ||
keywords: | ||
- infrastructure | ||
- harvester | ||
maintainers: | ||
- name: harvester | ||
name: harvester-csi-driver | ||
type: application | ||
version: 103.0.1+up0.1.17 |
11 changes: 11 additions & 0 deletions
11
charts/harvester-csi-driver/103.0.1+up0.1.17/questions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
1 change: 1 addition & 0 deletions
1
charts/harvester-csi-driver/103.0.1+up0.1.17/templates/NOTES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Successfully deployed Harvester CSI driver to the {{ .Release.Namespace }} namespace. |
62 changes: 62 additions & 0 deletions
62
charts/harvester-csi-driver/103.0.1+up0.1.17/templates/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -}} |
10 changes: 10 additions & 0 deletions
10
charts/harvester-csi-driver/103.0.1+up0.1.17/templates/csidriver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
149 changes: 149 additions & 0 deletions
149
charts/harvester-csi-driver/103.0.1+up0.1.17/templates/daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
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 | ||
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 |
95 changes: 95 additions & 0 deletions
95
charts/harvester-csi-driver/103.0.1+up0.1.17/templates/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.