Skip to content
4 changes: 2 additions & 2 deletions charts/cinder-csi-plugin/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: latest
appVersion: v1.22.0
description: Cinder CSI Chart for OpenStack
name: openstack-cinder-csi
version: 1.4.8
version: 1.4.9
home: https://github.com/kubernetes/cloud-provider-openstack
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/manila-csi-plugin/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: latest
appVersion: v1.22.0
description: Manila CSI Chart for OpenStack
name: openstack-manila-csi
version: 1.3.2
version: 1.3.3
home: http://github.com/kubernetes/cloud-provider-openstack
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/openstack-cloud-controller-manager/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
appVersion: "latest"
appVersion: v1.22.0
description: Openstack Cloud Controller Manager Helm Chart
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
home: https://github.com/kubernetes/cloud-provider-openstack
name: openstack-cloud-controller-manager
version: 1.1.1
version: 1.1.2
maintainers:
- name: morremeyer
email: kubernetes@maurice-meyer.de
Expand Down
2 changes: 1 addition & 1 deletion examples/webhook/keystone-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
serviceAccountName: k8s-keystone
containers:
- name: k8s-keystone-auth
image: k8scloudprovider/k8s-keystone-auth:latest
image: k8scloudprovider/k8s-keystone-auth:v1.22.0
args:
- ./bin/k8s-keystone-auth
- --tls-cert-file
Expand Down
2 changes: 1 addition & 1 deletion manifests/barbican-kms/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: barbican-kms
image: docker.io/k8scloudprovider/barbican-kms-plugin:latest
image: docker.io/k8scloudprovider/barbican-kms-plugin:v1.22.0
args:
- "--socketpath=/kms/kms.sock"
- "--cloud-config=/etc/kubernetes/cloud-config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ spec:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
- name: cinder-csi-plugin
image: docker.io/k8scloudprovider/cinder-csi-plugin:latest
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.22.0
args:
- /bin/cinder-csi-plugin
- "--endpoint=$(CSI_ENDPOINT)"
Expand Down
2 changes: 1 addition & 1 deletion manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: docker.io/k8scloudprovider/cinder-csi-plugin:latest
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.22.0
args:
- /bin/cinder-csi-plugin
- "--endpoint=$(CSI_ENDPOINT)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
serviceAccountName: cloud-controller-manager
containers:
- name: openstack-cloud-controller-manager
image: docker.io/k8scloudprovider/openstack-cloud-controller-manager:latest
image: docker.io/k8scloudprovider/openstack-cloud-controller-manager:v1.22.0
args:
- /bin/openstack-cloud-controller-manager
- --v=1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: openstack-cloud-controller-manager
image: docker.io/k8scloudprovider/openstack-cloud-controller-manager:latest
image: docker.io/k8scloudprovider/openstack-cloud-controller-manager:v1.22.0
args:
- /bin/openstack-cloud-controller-manager
- --v=1
Expand Down
2 changes: 1 addition & 1 deletion manifests/magnum-auto-healer/magnum-auto-healer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spec:
node-role.kubernetes.io/master: ""
containers:
- name: magnum-auto-healer
image: docker.io/k8scloudprovider/magnum-auto-healer:latest
image: docker.io/k8scloudprovider/magnum-auto-healer:v1.22.0
imagePullPolicy: Always
args:
- /bin/magnum-auto-healer
Expand Down
2 changes: 1 addition & 1 deletion manifests/manila-csi-plugin/csi-controllerplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: "k8scloudprovider/manila-csi-plugin:latest"
image: "k8scloudprovider/manila-csi-plugin:v1.22.0"
command: ["/bin/sh", "-c",
'/bin/manila-csi-plugin
--nodeid=$(NODE_ID)
Expand Down
2 changes: 1 addition & 1 deletion manifests/manila-csi-plugin/csi-nodeplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
capabilities:
add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true
image: "k8scloudprovider/manila-csi-plugin:latest"
image: "k8scloudprovider/manila-csi-plugin:v1.22.0"
command: ["/bin/sh", "-c",
'/bin/manila-csi-plugin
--nodeid=$(NODE_ID)
Expand Down
2 changes: 1 addition & 1 deletion pkg/autohealing/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var rootCmd = &cobra.Command{
Name: "k8s-auto-healer",
})

sigCh := make(chan os.Signal)
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
<-sigCh
},
Expand Down
5 changes: 4 additions & 1 deletion pkg/csi/cinder/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,10 @@ func (cs *controllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateS
properties := map[string]string{cinderCSIClusterIDKey: cs.Driver.cluster}

// see https://github.com/kubernetes-csi/external-snapshotter/pull/375/
for _, mKey := range []string{"csi.storage.k8s.io/volumesnapshot/name", "csi.storage.k8s.io/volumesnapshot/namespace", "csi.storage.k8s.io/volumesnapshotcontent/name"} {
// Also, we don't want to tag every param but we still want to send the
// 'force-create' flag to openstack layer so that we will honor the
// force create functions
for _, mKey := range []string{"csi.storage.k8s.io/volumesnapshot/name", "csi.storage.k8s.io/volumesnapshot/namespace", "csi.storage.k8s.io/volumesnapshotcontent/name", openstack.SnapshotForceCreate} {
if v, ok := req.Parameters[mKey]; ok {
properties[mKey] = v
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/csi/cinder/controllerserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ func TestCreateSnapshotWithExtraMetadata(t *testing.T) {
"csi.storage.k8s.io/volumesnapshot/name": FakeSnapshotName,
"csi.storage.k8s.io/volumesnapshotcontent/name": FakeSnapshotContentName,
"csi.storage.k8s.io/volumesnapshot/namespace": FakeSnapshotNamespace,
openstack.SnapshotForceCreate: "true",
}

osmock.On("CreateSnapshot", FakeSnapshotName, FakeVolID, &properties).Return(&FakeSnapshotRes, nil)
Expand All @@ -458,6 +459,7 @@ func TestCreateSnapshotWithExtraMetadata(t *testing.T) {
"csi.storage.k8s.io/volumesnapshot/name": FakeSnapshotName,
"csi.storage.k8s.io/volumesnapshotcontent/name": FakeSnapshotContentName,
"csi.storage.k8s.io/volumesnapshot/namespace": FakeSnapshotNamespace,
openstack.SnapshotForceCreate: "true",
},
}

Expand Down
6 changes: 3 additions & 3 deletions pkg/csi/cinder/openstack/openstack_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
snapReadySteps = 10

snapshotDescription = "Created by OpenStack Cinder CSI driver"
snapshotForceCreate = "force-create"
SnapshotForceCreate = "force-create"
)

// CreateSnapshot issues a request to take a Snapshot of the specified Volume with the corresponding ID and
Expand All @@ -47,14 +47,14 @@ func (os *OpenStack) CreateSnapshot(name, volID string, tags *map[string]string)
force := false
// if no flag given, then force will be false by default
// if flag it given , check it
if item, ok := (*tags)[snapshotForceCreate]; ok {
if item, ok := (*tags)[SnapshotForceCreate]; ok {
var err error
force, err = strconv.ParseBool(item)
if err != nil {
klog.V(5).Infof("Make force create flag to false due to: %v", err)
}

delete(*tags, snapshotForceCreate)
delete(*tags, SnapshotForceCreate)
}
// Force the creation of snapshot even the Volume is in in-use state
opts := &snapshots.CreateOpts{
Expand Down
2 changes: 1 addition & 1 deletion pkg/csi/manila/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
}

// Check for pending operations on this volume
if _, isPending := pendingVolumes.LoadOrStore(req.GetVolumeId(), true); isPending {
if _, isPending := pendingVolumes.LoadOrStore(share.Name, true); isPending {
return nil, status.Errorf(codes.Aborted, "volume %s is already being processed", share.Name)
}
defer pendingVolumes.Delete(share.Name)
Expand Down
1 change: 1 addition & 0 deletions pkg/util/blockdevice/blockdevice_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

/*
Expand Down