Skip to content

Commit 7b1cf93

Browse files
Merge tag 'v1.30.1' into feature/csiTimeout1.30
2 parents 5165c0b + 5eedc08 commit 7b1cf93

File tree

32 files changed

+292
-102
lines changed

32 files changed

+292
-102
lines changed

.github/workflows/release-cpo.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
11+
permissions:
12+
contents: write
1213
steps:
1314
- name: Checkout
1415
uses: actions/checkout@v3

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
release:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- name: Checkout
1416
uses: actions/checkout@v3
@@ -21,6 +23,6 @@ jobs:
2123
git config user.email "[email protected]"
2224
2325
- name: Run chart-releaser
24-
uses: helm/chart-releaser-action@v1.1.0
26+
uses: helm/chart-releaser-action@v1.6.0
2527
env:
2628
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.golangci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
run:
2+
concurrency: 2
23
timeout: 10m0s
34
linters:
45
enable:
56
- gofmt
67
output:
7-
format: line-number
8+
formats:
9+
 - format: line-number
10+
 path: stdout

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $(BUILD_CMDS): $(SOURCES)
8181
test: unit functional
8282

8383
check: work
84-
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.0 run ./...
84+
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 run ./...
8585

8686
unit: work
8787
go test -tags=unit $(shell go list ./... | sed -e '/sanity/ { N; d; }' | sed -e '/tests/ {N; d;}') $(TESTARGS)

charts/cinder-csi-plugin/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
2-
appVersion: v1.30.0
2+
appVersion: v1.30.1
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 2.30.0
5+
version: 2.30.1
66
home: https://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/manila-csi-plugin/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
2-
appVersion: v1.30.0
2+
appVersion: v1.30.1
33
description: Manila CSI Chart for OpenStack
44
name: openstack-manila-csi
5-
version: 2.30.0
5+
version: 2.30.1
66
home: http://github.com/kubernetes/cloud-provider-openstack
77
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
88
maintainers:

charts/openstack-cloud-controller-manager/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: v2
2-
appVersion: v1.30.0
2+
appVersion: v1.30.1
33
description: Openstack Cloud Controller Manager Helm Chart
44
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
55
home: https://github.com/kubernetes/cloud-provider-openstack
66
name: openstack-cloud-controller-manager
7-
version: 2.30.0
7+
version: 2.30.1
88
maintainers:
99
- name: eumel8
1010

cmd/cinder-csi-plugin/main.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var (
3838
httpEndpoint string
3939
provideControllerService bool
4040
provideNodeService bool
41+
noClient bool
4142
)
4243

4344
func main() {
@@ -70,6 +71,7 @@ func main() {
7071

7172
cmd.PersistentFlags().BoolVar(&provideControllerService, "provide-controller-service", true, "If set to true then the CSI driver does provide the controller service (default: true)")
7273
cmd.PersistentFlags().BoolVar(&provideNodeService, "provide-node-service", true, "If set to true then the CSI driver does provide the node service (default: true)")
74+
cmd.PersistentFlags().BoolVar(&noClient, "node-service-no-os-client", false, "If set to true then the CSI driver node service will not use the OpenStack client (default: false)")
7375

7476
openstack.AddExtraFlags(pflag.CommandLine)
7577

@@ -82,17 +84,24 @@ func handle() {
8284
d := cinder.NewDriver(&cinder.DriverOpts{Endpoint: endpoint, ClusterID: cluster})
8385

8486
openstack.InitOpenStackProvider(cloudConfig, httpEndpoint)
85-
cloud, err := openstack.GetOpenStackProvider()
86-
if err != nil {
87-
klog.Warningf("Failed to GetOpenStackProvider: %v", err)
88-
return
89-
}
9087

9188
if provideControllerService {
89+
cloud, err := openstack.GetOpenStackProvider(false)
90+
if err != nil {
91+
klog.Warningf("Failed to GetOpenStackProvider: %v", err)
92+
return
93+
}
94+
9295
d.SetupControllerService(cloud)
9396
}
9497

9598
if provideNodeService {
99+
cloud, err := openstack.GetOpenStackProvider(noClient)
100+
if err != nil {
101+
klog.Warningf("Failed to GetOpenStackProvider: %v", err)
102+
return
103+
}
104+
96105
//Initialize mount
97106
mount := mount.GetMountProvider()
98107

cmd/manila-csi-plugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func main() {
7171
Short: "CSI Manila driver",
7272
Run: func(cmd *cobra.Command, args []string) {
7373
if err := validateShareProtocolSelector(protoSelector); err != nil {
74-
klog.Fatalf(err.Error())
74+
klog.Fatal(err.Error())
7575
}
7676

7777
manilaClientBuilder := &manilaclient.ClientBuilder{UserAgent: "manila-csi-plugin", ExtraUserAgentData: userAgentData}

docs/cinder-csi-plugin/using-cinder-csi-plugin.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f
111111

112112
The default is to provide the node service.
113113
</dd>
114+
115+
<dt>--node-service-no-os-client &lt;disabled&gt;</dt>
116+
<dd>
117+
If set to true then the CSI driver does not provide the OpenStack client in the node service.
118+
119+
The default is to provide the OpenStack client in the node service.
120+
</dd>
114121
</dl>
115122

116123
## Driver Config

0 commit comments

Comments
 (0)