Skip to content

Commit 352562d

Browse files
Merge pull request openshift#311 from shiftstack/merge-bot-master
NO-JIRA: Merge https://github.com/kubernetes/cloud-provider-openstack:release-1.31 into master
2 parents 1be6308 + 25ed658 commit 352562d

File tree

259 files changed

+7552
-4446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+7552
-4446
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ RUN apk add --no-cache ca-certificates
4848
# builder itself is always amd64
4949
FROM --platform=linux/amd64 ${GOLANG_IMAGE} as builder
5050

51-
ARG GOPROXY=https://goproxy.io,direct
5251
ARG TARGETOS
5352
ARG TARGETARCH
5453
ARG VERSION

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/[email protected] run ./...
84+
go run github.com/golangci/golangci-lint/cmd/[email protected] run --timeout=20m ./...
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.31.1
2+
appVersion: v1.31.3
33
description: Cinder CSI Chart for OpenStack
44
name: openstack-cinder-csi
5-
version: 2.31.1
5+
version: 2.31.7
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.31.1
2+
appVersion: v1.31.3
33
description: Manila CSI Chart for OpenStack
44
name: openstack-manila-csi
5-
version: 2.31.1
5+
version: 2.31.3
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.31.1
2+
appVersion: v1.31.3
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.31.1
7+
version: 2.31.3
88
maintainers:
99
- name: eumel8
1010

cmd/cinder-csi-plugin/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var (
4141
provideControllerService bool
4242
provideNodeService bool
4343
noClient bool
44+
withTopology bool
4445
)
4546

4647
func main() {
@@ -68,6 +69,8 @@ func main() {
6869
klog.Fatalf("Unable to mark flag cloud-config to be required: %v", err)
6970
}
7071

72+
cmd.PersistentFlags().BoolVar(&withTopology, "with-topology", true, "cluster is topology-aware")
73+
7174
cmd.PersistentFlags().StringSliceVar(&cloudNames, "cloud-name", []string{""}, "Cloud name to instruct CSI driver to read additional OpenStack cloud credentials from the configuration subsections. This option can be specified multiple times to manage multiple OpenStack clouds.")
7275
cmd.PersistentFlags().StringToStringVar(&additionalTopologies, "additional-topology", map[string]string{}, "Additional CSI driver topology keys, for example topology.kubernetes.io/region=REGION1. This option can be specified multiple times to add multiple additional topology keys.")
7376

@@ -86,7 +89,11 @@ func main() {
8689

8790
func handle() {
8891
// Initialize cloud
89-
d := cinder.NewDriver(&cinder.DriverOpts{Endpoint: endpoint, ClusterID: cluster})
92+
d := cinder.NewDriver(&cinder.DriverOpts{
93+
Endpoint: endpoint,
94+
ClusterID: cluster,
95+
WithTopology: withTopology,
96+
})
9097

9198
openstack.InitOpenStackProvider(cloudConfig, httpEndpoint)
9299

docs/cinder-csi-plugin/multi-region-clouds.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ spec:
162162
- name: liveness-probe
163163
...
164164
- name: cinder-csi-plugin
165-
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.1
165+
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.3
166166
args:
167167
- /bin/cinder-csi-plugin
168168
- --endpoint=$(CSI_ENDPOINT)
@@ -212,7 +212,7 @@ spec:
212212
- name: liveness-probe
213213
...
214214
- name: cinder-csi-plugin
215-
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.1
215+
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.3
216216
args:
217217
- /bin/cinder-csi-plugin
218218
- --endpoint=$(CSI_ENDPOINT)
@@ -278,7 +278,7 @@ spec:
278278
- Topology=true
279279
...
280280
- name: cinder-csi-plugin
281-
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.1
281+
image: docker.io/k8scloudprovider/cinder-csi-plugin:v1.31.3
282282
args:
283283
- /bin/cinder-csi-plugin
284284
- --endpoint=$(CSI_ENDPOINT)

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f
6969
The manifests default this to `unix://csi/csi.sock`, which is supplied via the `CSI_ENDPOINT` environment variable.
7070
</dd>
7171

72+
<dt>--with-topology &lt;enabled&gt;</dt>
73+
<dd>
74+
If set to true then the CSI driver reports topology information and the controller respects it.
75+
76+
Defaults to `true` (enabled).
77+
</dd>
78+
7279
<dt>--cloud-config &lt;config file&gt; [--cloud-config &lt;config file&gt; ...]</dt>
7380
<dd>
7481
This argument must be given at least once.
@@ -100,23 +107,23 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f
100107

101108
<dt>--provide-controller-service &lt;enabled&gt;</dt>
102109
<dd>
103-
If set to true then the CSI driver does provide the controller service.
110+
If set to true then the CSI driver provides the controller service.
104111

105-
The default is to provide the controller service.
112+
Defaults to `true` (enabled).
106113
</dd>
107114

108115
<dt>--provide-node-service &lt;enabled&gt;</dt>
109116
<dd>
110-
If set to true then the CSI driver does provide the node service.
117+
If set to true then the CSI driver provides the node service.
111118

112-
The default is to provide the node service.
119+
Defaults to `true` (enabled).
113120
</dd>
114121

115122
<dt>--node-service-no-os-client &lt;disabled&gt;</dt>
116123
<dd>
117124
If set to true then the CSI driver does not provide the OpenStack client in the node service.
118125

119-
The default is to provide the OpenStack client in the node service.
126+
Defaults to `false` (disabled).
120127
</dd>
121128
</dl>
122129

docs/developers-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Choose the one you are familiar with and easy to customize. Config the cluster w
4343
Using kubeadm, openstack-cloud-controller-manager can be deployed easily with predefined manifests, see the [deployment guide with kubeadm](openstack-cloud-controller-manager/using-openstack-cloud-controller-manager.md#deploy-a-kubernetes-cluster-with-openstack-cloud-controller-manager-using-kubeadm).
4444

4545
### DevStack-based testing environment
46-
You can also use our CI scripts to setup a simple development environment based on DevStack and k3s. To do so you need a fresh VM with Ubuntu 22.04. We've tested this with 4 vCPUs and 16 GB of RAM and that's recommended, but we never tested the lower bound, so feel free to try with less resources.
46+
You can also use our CI scripts to setup a simple development environment based on DevStack and k3s. To do so you need a fresh VM with Ubuntu 24.04. We've tested this with 4 vCPUs and 16 GB of RAM and that's recommended, but we never tested the lower bound, so feel free to try with less resources.
4747

4848
Once the VM is up make sure your SSH keys allow logging in as `ubuntu` user and from your PC and cloud-provider-openstack directory run:
4949

@@ -133,11 +133,11 @@ make unit
133133

134134
End-to-end or _e2e_ tests are more complex to run as they require a functioning OpenStack cloud and Kubernetes (well, k3s) deployment. Fortunately, you can rely on the infrastructure used for CI to run this on your own machines.
135135

136-
For example, to run the Cinder CSI e2e tests, the CI calls the `tests/ci-csi-cinder-e2e.sh` script. Inspecting this, you'll note that a lot of the commands in here are simply provisioning an instance on GCE, using [Boskos](https://github.com/kubernetes-sigs/boskos) to manage static resources (projects, in this case) if needed. If you have a set of GCE credentials, then in theory you could run this script as-is. However, all you need is a VM with sufficient resources and network connectivity running the correct image (Ubuntu 20.04 cloud image as of writing - check `tests/scripts/create-gce-vm.sh` for the latest info). For example, using OpenStack:
136+
For example, to run the Cinder CSI e2e tests, the CI calls the `tests/ci-csi-cinder-e2e.sh` script. Inspecting this, you'll note that a lot of the commands in here are simply provisioning an instance on GCE, using [Boskos](https://github.com/kubernetes-sigs/boskos) to manage static resources (projects, in this case) if needed. If you have a set of GCE credentials, then in theory you could run this script as-is. However, all you need is a VM with sufficient resources and network connectivity running the correct image (Ubuntu 24.04 cloud image as of writing - check `tests/scripts/create-gce-vm.sh` for the latest info). For example, using OpenStack:
137137

138138
```
139139
openstack server create \
140-
--image ubuntu2004 \
140+
--image ubuntu2404 \
141141
--flavor m1.large \
142142
--key-name <key-name> \
143143
--network <network> \

docs/keystone-auth/using-keystone-webhook-authenticator-and-authorizer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ it as a service. There are several things we need to notice in the
252252
deployment manifest:
253253

254254
- We are using image
255-
`registry.k8s.io/provider-os/k8s-keystone-auth:v1.31.1`
255+
`registry.k8s.io/provider-os/k8s-keystone-auth:v1.31.3`
256256
- We use `k8s-auth-policy` configmap created above.
257257
- The pod uses service account `keystone-auth` created above.
258258
- We use `keystone-auth-certs` secret created above to inject the

0 commit comments

Comments
 (0)