Use csi-snapshotter for OS only when the controller is enabled

This commit is contained in:
ederst 2022-06-27 16:47:57 +02:00
parent 51f2fd613c
commit 76e7ed6cb7
2 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,14 @@ This is a document to gather the release notes prior to the release.
# Breaking changes
## Cinder CSI snapthot controller changes
The CSI Cinder plugin for OpenStack will now only use the CSI snapshotter when the CSI snapshot controller is enabled in the cluster spec.
This changes the default behavior where the CSI snaphotter container was always present, but spammed the log with error messages (see [#13890](https://github.com/kubernetes/kops/pull/13890))
So in case of manually deployed CRDs to make the snapshotter work it is now necessary to [enable the snapshot controller](https://kops.sigs.k8s.io/addons/#snapshot-controller).
## Other breaking changes
* Support for Kubernetes version 1.19 has been removed.
@ -26,4 +34,5 @@ This is a document to gather the release notes prior to the release.
# Other changes of note
# Full change list since 1.24.0 release

View File

@ -280,6 +280,7 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
{{ if HasSnapshotController }}
- name: csi-snapshotter
image: registry.k8s.io/sig-storage/csi-snapshotter:v5.0.1
args:
@ -294,6 +295,7 @@ spec:
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
{{ end }}
- name: csi-resizer
image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0
args: