mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-18 02:39:30 +00:00
Merge pull request #318 from red-hat-storage/sync_us--devel
Syncing latest changes from upstream devel for ceph-csi
This commit is contained in:
commit
f97553a93a
10
build.env
10
build.env
@ -30,7 +30,7 @@ GOLANGCI_VERSION=v1.57.2
|
|||||||
|
|
||||||
# external snapshotter version
|
# external snapshotter version
|
||||||
# Refer: https://github.com/kubernetes-csi/external-snapshotter/releases
|
# Refer: https://github.com/kubernetes-csi/external-snapshotter/releases
|
||||||
SNAPSHOT_VERSION=v7.0.2
|
SNAPSHOT_VERSION=v8.0.1
|
||||||
|
|
||||||
# "go test" configuration
|
# "go test" configuration
|
||||||
# set to stdout or html to enable coverage reporting, disabled by default
|
# set to stdout or html to enable coverage reporting, disabled by default
|
||||||
@ -54,10 +54,10 @@ ROOK_VERSION=v1.12.1
|
|||||||
ROOK_CEPH_CLUSTER_IMAGE=quay.io/ceph/ceph:v18
|
ROOK_CEPH_CLUSTER_IMAGE=quay.io/ceph/ceph:v18
|
||||||
|
|
||||||
# CSI sidecar version
|
# CSI sidecar version
|
||||||
CSI_ATTACHER_VERSION=v4.5.1
|
CSI_ATTACHER_VERSION=v4.6.1
|
||||||
CSI_SNAPSHOTTER_VERSION=v7.0.2
|
CSI_SNAPSHOTTER_VERSION=v8.0.1
|
||||||
CSI_RESIZER_VERSION=v1.10.1
|
CSI_RESIZER_VERSION=v1.11.1
|
||||||
CSI_PROVISIONER_VERSION=v4.0.1
|
CSI_PROVISIONER_VERSION=v5.0.1
|
||||||
CSI_NODE_DRIVER_REGISTRAR_VERSION=v2.10.1
|
CSI_NODE_DRIVER_REGISTRAR_VERSION=v2.10.1
|
||||||
|
|
||||||
# e2e settings
|
# e2e settings
|
||||||
|
@ -146,17 +146,17 @@ charts and their default values.
|
|||||||
| `provisioner.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` |
|
| `provisioner.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` |
|
||||||
| `provisioner.profiling.enabled` | Specifies whether profiling should be enabled | `false` |
|
| `provisioner.profiling.enabled` | Specifies whether profiling should be enabled | `false` |
|
||||||
| `provisioner.provisioner.image.repository` | Specifies the csi-provisioner image repository URL | `registry.k8s.io/sig-storage/csi-provisioner` |
|
| `provisioner.provisioner.image.repository` | Specifies the csi-provisioner image repository URL | `registry.k8s.io/sig-storage/csi-provisioner` |
|
||||||
| `provisioner.provisioner.image.tag` | Specifies image tag | `v4.0.1` |
|
| `provisioner.provisioner.image.tag` | Specifies image tag | `v5.0.1` |
|
||||||
| `provisioner.provisioner.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.provisioner.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.provisioner.image.extraArgs` | Specifies extra arguments for the provisioner sidecar | `[]` |
|
| `provisioner.provisioner.image.extraArgs` | Specifies extra arguments for the provisioner sidecar | `[]` |
|
||||||
| `provisioner.resizer.image.repository` | Specifies the csi-resizer image repository URL | `registry.k8s.io/sig-storage/csi-resizer` |
|
| `provisioner.resizer.image.repository` | Specifies the csi-resizer image repository URL | `registry.k8s.io/sig-storage/csi-resizer` |
|
||||||
| `provisioner.resizer.image.tag` | Specifies image tag | `v1.10.1` |
|
| `provisioner.resizer.image.tag` | Specifies image tag | `v1.11.1` |
|
||||||
| `provisioner.resizer.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.resizer.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.resizer.image.extraArgs` | Specifies extra arguments for the resizer sidecar | `[]` |
|
| `provisioner.resizer.image.extraArgs` | Specifies extra arguments for the resizer sidecar | `[]` |
|
||||||
| `provisioner.resizer.name` | Specifies the name of csi-resizer sidecar | `resizer` |
|
| `provisioner.resizer.name` | Specifies the name of csi-resizer sidecar | `resizer` |
|
||||||
| `provisioner.resizer.enabled` | Specifies whether resizer sidecar is enabled | `true` |
|
| `provisioner.resizer.enabled` | Specifies whether resizer sidecar is enabled | `true` |
|
||||||
| `provisioner.snapshotter.image.repository` | Specifies the csi-snapshotter image repository URL | `registry.k8s.io/sig-storage/csi-snapshotter` |
|
| `provisioner.snapshotter.image.repository` | Specifies the csi-snapshotter image repository URL | `registry.k8s.io/sig-storage/csi-snapshotter` |
|
||||||
| `provisioner.snapshotter.image.tag` | Specifies image tag | `v7.0.2` |
|
| `provisioner.snapshotter.image.tag` | Specifies image tag | `v8.0.1` |
|
||||||
| `provisioner.snapshotter.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.snapshotter.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.snapshotter.image.extraArgs` | Specifies extra arguments for the snapshotter sidecar | `[]` |
|
| `provisioner.snapshotter.image.extraArgs` | Specifies extra arguments for the snapshotter sidecar | `[]` |
|
||||||
| `provisioner.snapshotter.args.enableVolumeGroupSnapshots` | enables the creation of volume group snapshots | `false` |
|
| `provisioner.snapshotter.args.enableVolumeGroupSnapshots` | enables the creation of volume group snapshots | `false` |
|
||||||
|
@ -204,7 +204,7 @@ provisioner:
|
|||||||
provisioner:
|
provisioner:
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-provisioner
|
repository: registry.k8s.io/sig-storage/csi-provisioner
|
||||||
tag: v4.0.1
|
tag: v5.0.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -219,7 +219,7 @@ provisioner:
|
|||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-resizer
|
repository: registry.k8s.io/sig-storage/csi-resizer
|
||||||
tag: v1.10.1
|
tag: v1.11.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -229,7 +229,7 @@ provisioner:
|
|||||||
snapshotter:
|
snapshotter:
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-snapshotter
|
repository: registry.k8s.io/sig-storage/csi-snapshotter
|
||||||
tag: v7.0.2
|
tag: v8.0.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
|
@ -152,7 +152,7 @@ charts and their default values.
|
|||||||
| `provisioner.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` |
|
| `provisioner.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` |
|
||||||
| `provisioner.profiling.enabled` | Specifies whether profiling should be enabled | `false` |
|
| `provisioner.profiling.enabled` | Specifies whether profiling should be enabled | `false` |
|
||||||
| `provisioner.provisioner.image.repository` | Specifies the csi-provisioner image repository URL | `registry.k8s.io/sig-storage/csi-provisioner` |
|
| `provisioner.provisioner.image.repository` | Specifies the csi-provisioner image repository URL | `registry.k8s.io/sig-storage/csi-provisioner` |
|
||||||
| `provisioner.provisioner.image.tag` | Specifies image tag | `v4.0.1` |
|
| `provisioner.provisioner.image.tag` | Specifies image tag | `v5.0.1` |
|
||||||
| `provisioner.provisioner.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.provisioner.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.provisioner.image.extraArgs` | Specifies extra arguments for the provisioner sidecar | `[]` |
|
| `provisioner.provisioner.image.extraArgs` | Specifies extra arguments for the provisioner sidecar | `[]` |
|
||||||
| `provisioner.podSecurityContext` | Specifies pod-level security context. | `{}` |
|
| `provisioner.podSecurityContext` | Specifies pod-level security context. | `{}` |
|
||||||
@ -164,13 +164,13 @@ charts and their default values.
|
|||||||
| `provisioner.attacher.name` | Specifies the name of csi-attacher sidecar | `attacher` |
|
| `provisioner.attacher.name` | Specifies the name of csi-attacher sidecar | `attacher` |
|
||||||
| `provisioner.attacher.enabled` | Specifies whether attacher sidecar is enabled | `true` |
|
| `provisioner.attacher.enabled` | Specifies whether attacher sidecar is enabled | `true` |
|
||||||
| `provisioner.resizer.image.repository` | Specifies the csi-resizer image repository URL | `registry.k8s.io/sig-storage/csi-resizer` |
|
| `provisioner.resizer.image.repository` | Specifies the csi-resizer image repository URL | `registry.k8s.io/sig-storage/csi-resizer` |
|
||||||
| `provisioner.resizer.image.tag` | Specifies image tag | `v1.10.1` |
|
| `provisioner.resizer.image.tag` | Specifies image tag | `v1.11.1` |
|
||||||
| `provisioner.resizer.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.resizer.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.resizer.image.extraArgs` | Specifies extra arguments for the resizer sidecar | `[]` |
|
| `provisioner.resizer.image.extraArgs` | Specifies extra arguments for the resizer sidecar | `[]` |
|
||||||
| `provisioner.resizer.name` | Specifies the name of csi-resizer sidecar | `resizer` |
|
| `provisioner.resizer.name` | Specifies the name of csi-resizer sidecar | `resizer` |
|
||||||
| `provisioner.resizer.enabled` | Specifies whether resizer sidecar is enabled | `true` |
|
| `provisioner.resizer.enabled` | Specifies whether resizer sidecar is enabled | `true` |
|
||||||
| `provisioner.snapshotter.image.repository` | Specifies the csi-snapshotter image repository URL | `registry.k8s.io/sig-storage/csi-snapshotter` |
|
| `provisioner.snapshotter.image.repository` | Specifies the csi-snapshotter image repository URL | `registry.k8s.io/sig-storage/csi-snapshotter` |
|
||||||
| `provisioner.snapshotter.image.tag` | Specifies image tag | `v7.0.2` |
|
| `provisioner.snapshotter.image.tag` | Specifies image tag | `v8.0.1` |
|
||||||
| `provisioner.snapshotter.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
| `provisioner.snapshotter.image.pullPolicy` | Specifies pull policy | `IfNotPresent` |
|
||||||
| `provisioner.snapshotter.image.extraArgs` | Specifies extra arguments for the snapshotter sidecar | `[]` |
|
| `provisioner.snapshotter.image.extraArgs` | Specifies extra arguments for the snapshotter sidecar | `[]` |
|
||||||
| `provisioner.nodeSelector` | Specifies the node selector for provisioner deployment | `{}` |
|
| `provisioner.nodeSelector` | Specifies the node selector for provisioner deployment | `{}` |
|
||||||
|
@ -57,7 +57,7 @@ spec:
|
|||||||
- "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)"
|
- "--csi-addons-endpoint=$(CSI_ADDONS_ENDPOINT)"
|
||||||
- "--v={{ .Values.logLevel }}"
|
- "--v={{ .Values.logLevel }}"
|
||||||
- "--drivername=$(DRIVER_NAME)"
|
- "--drivername=$(DRIVER_NAME)"
|
||||||
{{- if .Values.topology.enabled }}
|
{{- if .Values.topology.domainLabels }}
|
||||||
- "--domainlabels={{ .Values.topology.domainLabels | join "," }}"
|
- "--domainlabels={{ .Values.topology.domainLabels | join "," }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.nodeplugin.profiling.enabled }}
|
{{- if .Values.nodeplugin.profiling.enabled }}
|
||||||
|
@ -81,7 +81,7 @@ rules:
|
|||||||
resources: ["persistentvolumeclaims/status"]
|
resources: ["persistentvolumeclaims/status"]
|
||||||
verbs: ["update", "patch"]
|
verbs: ["update", "patch"]
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.topology.enabled }}
|
{{- if .Values.topology.domainLabels }}
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources: ["nodes"]
|
resources: ["nodes"]
|
||||||
verbs: ["get", "list","watch"]
|
verbs: ["get", "list","watch"]
|
||||||
|
@ -145,9 +145,6 @@ spec:
|
|||||||
- "--extra-create-metadata=true"
|
- "--extra-create-metadata=true"
|
||||||
- "--feature-gates=HonorPVReclaimPolicy=true"
|
- "--feature-gates=HonorPVReclaimPolicy=true"
|
||||||
- "--prevent-volume-mode-conversion=true"
|
- "--prevent-volume-mode-conversion=true"
|
||||||
{{- if .Values.topology.enabled }}
|
|
||||||
- "--feature-gates=Topology=true"
|
|
||||||
{{- end }}
|
|
||||||
{{- range .Values.provisioner.provisioner.extraArgs }}
|
{{- range .Values.provisioner.provisioner.extraArgs }}
|
||||||
- "--{{ . }}"
|
- "--{{ . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -243,7 +243,7 @@ provisioner:
|
|||||||
provisioner:
|
provisioner:
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-provisioner
|
repository: registry.k8s.io/sig-storage/csi-provisioner
|
||||||
tag: v4.0.1
|
tag: v5.0.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -258,7 +258,7 @@ provisioner:
|
|||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-attacher
|
repository: registry.k8s.io/sig-storage/csi-attacher
|
||||||
tag: v4.5.1
|
tag: v4.6.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -270,7 +270,7 @@ provisioner:
|
|||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-resizer
|
repository: registry.k8s.io/sig-storage/csi-resizer
|
||||||
tag: v1.10.1
|
tag: v1.11.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -280,7 +280,7 @@ provisioner:
|
|||||||
snapshotter:
|
snapshotter:
|
||||||
image:
|
image:
|
||||||
repository: registry.k8s.io/sig-storage/csi-snapshotter
|
repository: registry.k8s.io/sig-storage/csi-snapshotter
|
||||||
tag: v7.0.2
|
tag: v8.0.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
resources: {}
|
resources: {}
|
||||||
## For further options, check
|
## For further options, check
|
||||||
@ -300,9 +300,6 @@ provisioner:
|
|||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
|
|
||||||
topology:
|
topology:
|
||||||
# Specifies whether topology based provisioning support should
|
|
||||||
# be exposed by CSI
|
|
||||||
enabled: false
|
|
||||||
# domainLabels define which node labels to use as domains
|
# domainLabels define which node labels to use as domains
|
||||||
# for CSI nodeplugins to advertise their domains
|
# for CSI nodeplugins to advertise their domains
|
||||||
# NOTE: the value here serves as an example and needs to be
|
# NOTE: the value here serves as an example and needs to be
|
||||||
|
@ -92,14 +92,13 @@ spec:
|
|||||||
- name: ceph-csi-encryption-kms-config
|
- name: ceph-csi-encryption-kms-config
|
||||||
mountPath: /etc/ceph-csi-encryption-kms-config/
|
mountPath: /etc/ceph-csi-encryption-kms-config/
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.1
|
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
- "--timeout=150s"
|
- "--timeout=150s"
|
||||||
- "--leader-election=true"
|
- "--leader-election=true"
|
||||||
- "--retry-interval-start=500ms"
|
- "--retry-interval-start=500ms"
|
||||||
- "--feature-gates=Topology=false"
|
|
||||||
- "--feature-gates=HonorPVReclaimPolicy=true"
|
- "--feature-gates=HonorPVReclaimPolicy=true"
|
||||||
- "--prevent-volume-mode-conversion=true"
|
- "--prevent-volume-mode-conversion=true"
|
||||||
- "--extra-create-metadata=true"
|
- "--extra-create-metadata=true"
|
||||||
@ -111,7 +110,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.1
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
@ -128,7 +127,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.2
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
|
@ -73,7 +73,7 @@ spec:
|
|||||||
- name: keys-tmp-dir
|
- name: keys-tmp-dir
|
||||||
mountPath: /tmp/csi/keys
|
mountPath: /tmp/csi/keys
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.1
|
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
@ -90,7 +90,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.1
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
@ -107,7 +107,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.2
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
|
@ -104,15 +104,13 @@ spec:
|
|||||||
mountPath: /run/secrets/tokens
|
mountPath: /run/secrets/tokens
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: csi-provisioner
|
- name: csi-provisioner
|
||||||
image: registry.k8s.io/sig-storage/csi-provisioner:v4.0.1
|
image: registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
- "--timeout=150s"
|
- "--timeout=150s"
|
||||||
- "--retry-interval-start=500ms"
|
- "--retry-interval-start=500ms"
|
||||||
- "--leader-election=true"
|
- "--leader-election=true"
|
||||||
# set it to true to use topology based provisioning
|
|
||||||
- "--feature-gates=Topology=false"
|
|
||||||
- "--feature-gates=HonorPVReclaimPolicy=true"
|
- "--feature-gates=HonorPVReclaimPolicy=true"
|
||||||
- "--prevent-volume-mode-conversion=true"
|
- "--prevent-volume-mode-conversion=true"
|
||||||
# if fstype is not specified in storageclass, ext4 is default
|
# if fstype is not specified in storageclass, ext4 is default
|
||||||
@ -126,7 +124,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-snapshotter
|
- name: csi-snapshotter
|
||||||
image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.2
|
image: registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
@ -142,7 +140,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-attacher
|
- name: csi-attacher
|
||||||
image: registry.k8s.io/sig-storage/csi-attacher:v4.5.1
|
image: registry.k8s.io/sig-storage/csi-attacher:v4.6.1
|
||||||
args:
|
args:
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
@ -157,7 +155,7 @@ spec:
|
|||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /csi
|
mountPath: /csi
|
||||||
- name: csi-resizer
|
- name: csi-resizer
|
||||||
image: registry.k8s.io/sig-storage/csi-resizer:v1.10.1
|
image: registry.k8s.io/sig-storage/csi-resizer:v1.11.1
|
||||||
args:
|
args:
|
||||||
- "--csi-address=$(ADDRESS)"
|
- "--csi-address=$(ADDRESS)"
|
||||||
- "--v=1"
|
- "--v=1"
|
||||||
|
@ -240,9 +240,6 @@ type yamlResourceNamespaced struct {
|
|||||||
// set the number of replicas in a Deployment to 1.
|
// set the number of replicas in a Deployment to 1.
|
||||||
oneReplica bool
|
oneReplica bool
|
||||||
|
|
||||||
// enable topology support (for RBD)
|
|
||||||
enableTopology bool
|
|
||||||
|
|
||||||
// enable read affinity support (for RBD)
|
// enable read affinity support (for RBD)
|
||||||
enableReadAffinity bool
|
enableReadAffinity bool
|
||||||
}
|
}
|
||||||
@ -257,10 +254,6 @@ func (yrn *yamlResourceNamespaced) Do(action kubectlAction) error {
|
|||||||
data = oneReplicaDeployYaml(data)
|
data = oneReplicaDeployYaml(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
if yrn.enableTopology {
|
|
||||||
data = enableTopologyInTemplate(data)
|
|
||||||
}
|
|
||||||
|
|
||||||
if yrn.domainLabel != "" {
|
if yrn.domainLabel != "" {
|
||||||
data = addTopologyDomainsToDSYaml(data, yrn.domainLabel)
|
data = addTopologyDomainsToDSYaml(data, yrn.domainLabel)
|
||||||
}
|
}
|
||||||
|
@ -156,10 +156,9 @@ func createORDeleteRbdResources(action kubectlAction) {
|
|||||||
},
|
},
|
||||||
// the provisioner itself
|
// the provisioner itself
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
filename: rbdDirPath + rbdProvisioner,
|
filename: rbdDirPath + rbdProvisioner,
|
||||||
namespace: cephCSINamespace,
|
namespace: cephCSINamespace,
|
||||||
oneReplica: true,
|
oneReplica: true,
|
||||||
enableTopology: true,
|
|
||||||
},
|
},
|
||||||
// dependencies for the node-plugin
|
// dependencies for the node-plugin
|
||||||
&yamlResourceNamespaced{
|
&yamlResourceNamespaced{
|
||||||
|
@ -823,10 +823,6 @@ func oneReplicaDeployYaml(template string) string {
|
|||||||
return re.ReplaceAllString(template, `$1 1`)
|
return re.ReplaceAllString(template, `$1 1`)
|
||||||
}
|
}
|
||||||
|
|
||||||
func enableTopologyInTemplate(data string) string {
|
|
||||||
return strings.ReplaceAll(data, "--feature-gates=Topology=false", "--feature-gates=Topology=true")
|
|
||||||
}
|
|
||||||
|
|
||||||
func enableReadAffinityInTemplate(template string) string {
|
func enableReadAffinityInTemplate(template string) string {
|
||||||
return strings.ReplaceAll(template, "# - \"--enable-read-affinity=true\"", "- \"--enable-read-affinity=true\"")
|
return strings.ReplaceAll(template, "# - \"--enable-read-affinity=true\"", "- \"--enable-read-affinity=true\"")
|
||||||
}
|
}
|
||||||
|
@ -51,13 +51,6 @@ func (is *IdentityServer) GetPluginCapabilities(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Type: &csi.PluginCapability_Service_{
|
|
||||||
Service: &csi.PluginCapability_Service{
|
|
||||||
Type: csi.PluginCapability_Service_VOLUME_ACCESSIBILITY_CONSTRAINTS,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Type: &csi.PluginCapability_Service_{
|
Type: &csi.PluginCapability_Service_{
|
||||||
Service: &csi.PluginCapability_Service{
|
Service: &csi.PluginCapability_Service{
|
||||||
|
@ -190,7 +190,7 @@ install_cephcsi_helm_charts() {
|
|||||||
kubectl_retry delete cm ceph-config --namespace "${NAMESPACE}"
|
kubectl_retry delete cm ceph-config --namespace "${NAMESPACE}"
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
"${HELM}" install --namespace ${NAMESPACE} --set provisioner.fullnameOverride=csi-rbdplugin-provisioner --set nodeplugin.fullnameOverride=csi-rbdplugin --set configMapName=ceph-csi-config --set provisioner.replicaCount=1 --set-json='commonLabels={"app.kubernetes.io/name": "ceph-csi-rbd", "app.kubernetes.io/managed-by": "helm"}' ${SET_SC_TEMPLATE_VALUES} ${RBD_SECRET_TEMPLATE_VALUES} ${RBD_CHART_NAME} "${SCRIPT_DIR}"/../charts/ceph-csi-rbd --set topology.enabled=true --set topology.domainLabels="{${NODE_LABEL_REGION},${NODE_LABEL_ZONE}}" --set provisioner.maxSnapshotsOnImage=3 --set provisioner.minSnapshotsOnImage=2 ${READ_AFFINITY_VALUES} --set provisioner.snapshotter.args.enableVolumeGroupSnapshots=true
|
"${HELM}" install --namespace ${NAMESPACE} --set provisioner.fullnameOverride=csi-rbdplugin-provisioner --set nodeplugin.fullnameOverride=csi-rbdplugin --set configMapName=ceph-csi-config --set provisioner.replicaCount=1 --set-json='commonLabels={"app.kubernetes.io/name": "ceph-csi-rbd", "app.kubernetes.io/managed-by": "helm"}' ${SET_SC_TEMPLATE_VALUES} ${RBD_SECRET_TEMPLATE_VALUES} ${RBD_CHART_NAME} "${SCRIPT_DIR}"/../charts/ceph-csi-rbd --set topology.domainLabels="{${NODE_LABEL_REGION},${NODE_LABEL_ZONE}}" --set provisioner.maxSnapshotsOnImage=3 --set provisioner.minSnapshotsOnImage=2 ${READ_AFFINITY_VALUES} --set provisioner.snapshotter.args.enableVolumeGroupSnapshots=true
|
||||||
|
|
||||||
check_deployment_status app=ceph-csi-rbd "${NAMESPACE}"
|
check_deployment_status app=ceph-csi-rbd "${NAMESPACE}"
|
||||||
check_daemonset_status app=ceph-csi-rbd "${NAMESPACE}"
|
check_daemonset_status app=ceph-csi-rbd "${NAMESPACE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user