Skip to content

Commit cd4a995

Browse files
authored
Merge pull request #23 from containeroo/renovate/registry.k8s.io-csi-vsphere-driver-3.7.x
chore(deps): update registry.k8s.io/csi-vsphere/driver docker tag to v3.7.1
2 parents c0d02a5 + 29493ce commit cd4a995

9 files changed

Lines changed: 55 additions & 21 deletions

File tree

class/defaults.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ parameters:
2424
feature_states:
2525
trigger-csi-fullsync: "false"
2626
pv-to-backingdiskobjectid-mapping: "false"
27+
high-pv-node-density: "false"
2728

2829
images:
2930
csi_attacher:
@@ -37,11 +38,11 @@ parameters:
3738
driver:
3839
registry: registry.k8s.io
3940
repository: csi-vsphere/driver
40-
tag: v3.7.0
41+
tag: v3.7.1
4142
syncer:
4243
registry: registry.k8s.io
4344
repository: csi-vsphere/syncer
44-
tag: v3.7.0
45+
tag: v3.7.1
4546
liveness_probe:
4647
registry: registry.k8s.io
4748
repository: sig-storage/livenessprobe

docs/modules/ROOT/pages/references/parameters.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ If set, renders `volumeBindingMode`.
239239

240240
[horizontal]
241241
type:: dictionary
242-
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.0/manifests/vanilla/vsphere-csi-driver.yaml[Upstream v3.6.1 defaults], excluding the Windows daemon set
242+
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.1/manifests/vanilla/vsphere-csi-driver.yaml[Upstream v3.7.1 defaults], excluding the Windows daemon set
243243

244244
The feature state switches rendered into the driver `ConfigMap`.
245245

@@ -249,7 +249,7 @@ The feature state switches rendered into the driver `ConfigMap`.
249249
type:: dictionary
250250

251251
Container images for the controller sidecars, node sidecars, CSI driver, and syncer.
252-
Defaults follow the upstream v3.7.0 Linux deployment manifest.
252+
Defaults follow the upstream v3.7.1 Linux deployment manifest.
253253

254254
== `controller`
255255

@@ -328,7 +328,7 @@ Optional extra node selector for the controller deployment.
328328

329329
[horizontal]
330330
type:: dictionary
331-
default:: https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v3.7.0/manifests/vanilla/vsphere-csi-driver.yaml[Upstream v3.6.1 control-plane node affinity]
331+
default:: https://raw.githubusercontent.com/kubernetes-sigs/vsphere-csi-driver/v3.7.1/manifests/vanilla/vsphere-csi-driver.yaml[Upstream v3.7.1 control-plane node affinity]
332332

333333
Node affinity for the controller deployment.
334334
By default this matches upstream and allows any of the common control-plane labels.
@@ -337,7 +337,7 @@ By default this matches upstream and allows any of the common control-plane labe
337337

338338
[horizontal]
339339
type:: list
340-
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.0/manifests/vanilla/vsphere-csi-driver.yaml[Upstream control-plane tolerations]
340+
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.1/manifests/vanilla/vsphere-csi-driver.yaml[Upstream control-plane tolerations]
341341

342342
Tolerations for the controller deployment.
343343

@@ -418,7 +418,7 @@ Node selector for the Linux node DaemonSet.
418418

419419
[horizontal]
420420
type:: list
421-
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.0/manifests/vanilla/vsphere-csi-driver.yaml[Upstream node tolerations]
421+
default:: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/v3.7.1/manifests/vanilla/vsphere-csi-driver.yaml[Upstream node tolerations]
422422

423423
Tolerations for the Linux node DaemonSet.
424424

scripts/sync-vsphere-csi-release.mjs

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,42 @@ function extractManifestImage(manifestText, containerName) {
9393
}
9494

9595
function extractFeatureStates(manifestText) {
96-
const match = manifestText.match(
97-
/apiVersion:\s+v1\ndata:\n((?: ".*": ".*"\n)+)kind:\s+ConfigMap\nmetadata:\n name:\s+internal-feature-states\.csi\.vsphere\.vmware\.com\n namespace:\s+vmware-system-csi/m
98-
);
96+
const configMapDoc = manifestText
97+
.split(/^---\s*$/m)
98+
.find(
99+
(doc) =>
100+
doc.includes('kind: ConfigMap') &&
101+
doc.includes('name: internal-feature-states.csi.vsphere.vmware.com') &&
102+
doc.includes('namespace: vmware-system-csi')
103+
);
99104

100-
if (!match) {
105+
if (!configMapDoc) {
101106
throw new Error('Unable to find internal feature states ConfigMap in upstream manifest');
102107
}
103108

104-
return match[1]
105-
.trimEnd()
106-
.split('\n')
109+
const lines = configMapDoc.split('\n');
110+
const dataIndex = lines.findIndex((line) => line === 'data:');
111+
112+
if (dataIndex === -1) {
113+
throw new Error('Unable to find data section in internal feature states ConfigMap');
114+
}
115+
116+
const stateLines = [];
117+
for (const line of lines.slice(dataIndex + 1)) {
118+
if (!line.startsWith(' ')) {
119+
break;
120+
}
121+
122+
if (line.trim() === '') {
123+
continue;
124+
}
125+
126+
stateLines.push(line);
127+
}
128+
129+
return stateLines
107130
.map((line) => {
108-
const stateMatch = line.match(/^ "([^"]+)": "([^"]+)"$/);
131+
const stateMatch = line.match(/^ "([^"]+)": "([^"]+)"(?:\s+#.*)?$/);
109132
if (!stateMatch) {
110133
throw new Error(`Unable to parse feature state line: ${line}`);
111134
}
@@ -208,6 +231,14 @@ function rewriteDocs(docsText, releaseTag) {
208231
.replace(
209232
/Defaults follow the upstream v[0-9.]+ Linux deployment manifest\./,
210233
`Defaults follow the upstream ${releaseTag} Linux deployment manifest.`
234+
)
235+
.replace(
236+
/\[Upstream v[0-9.]+ defaults\]/g,
237+
`[Upstream ${releaseTag} defaults]`
238+
)
239+
.replace(
240+
/\[Upstream v[0-9.]+ control-plane node affinity\]/g,
241+
`[Upstream ${releaseTag} control-plane node affinity]`
211242
);
212243
}
213244

tests/golden/defaults/vsphere-csi/vsphere-csi/10_feature-states-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: v1
22
data:
3+
high-pv-node-density: 'false'
34
pv-to-backingdiskobjectid-mapping: 'false'
45
trigger-csi-fullsync: 'false'
56
kind: ConfigMap

tests/golden/defaults/vsphere-csi/vsphere-csi/13_controller-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ spec:
105105
valueFrom:
106106
fieldRef:
107107
fieldPath: metadata.namespace
108-
image: registry.k8s.io/csi-vsphere/driver:v3.7.0
108+
image: registry.k8s.io/csi-vsphere/driver:v3.7.1
109109
imagePullPolicy: Always
110110
livenessProbe:
111111
failureThreshold: 3
@@ -164,7 +164,7 @@ spec:
164164
valueFrom:
165165
fieldRef:
166166
fieldPath: metadata.namespace
167-
image: registry.k8s.io/csi-vsphere/syncer:v3.7.0
167+
image: registry.k8s.io/csi-vsphere/syncer:v3.7.1
168168
imagePullPolicy: Always
169169
name: vsphere-syncer
170170
ports:

tests/golden/defaults/vsphere-csi/vsphere-csi/14_node-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
fieldPath: metadata.namespace
6464
- name: NODEGETINFO_WATCH_TIMEOUT_MINUTES
6565
value: '1'
66-
image: registry.k8s.io/csi-vsphere/driver:v3.7.0
66+
image: registry.k8s.io/csi-vsphere/driver:v3.7.1
6767
imagePullPolicy: Always
6868
livenessProbe:
6969
failureThreshold: 3

tests/golden/openshift/vsphere-csi/vsphere-csi/10_feature-states-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: v1
22
data:
3+
high-pv-node-density: 'false'
34
pv-to-backingdiskobjectid-mapping: 'false'
45
trigger-csi-fullsync: 'false'
56
kind: ConfigMap

tests/golden/openshift/vsphere-csi/vsphere-csi/13_controller-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ spec:
105105
valueFrom:
106106
fieldRef:
107107
fieldPath: metadata.namespace
108-
image: registry.k8s.io/csi-vsphere/driver:v3.7.0
108+
image: registry.k8s.io/csi-vsphere/driver:v3.7.1
109109
imagePullPolicy: Always
110110
livenessProbe:
111111
failureThreshold: 3
@@ -164,7 +164,7 @@ spec:
164164
valueFrom:
165165
fieldRef:
166166
fieldPath: metadata.namespace
167-
image: registry.k8s.io/csi-vsphere/syncer:v3.7.0
167+
image: registry.k8s.io/csi-vsphere/syncer:v3.7.1
168168
imagePullPolicy: Always
169169
name: vsphere-syncer
170170
ports:

tests/golden/openshift/vsphere-csi/vsphere-csi/14_node-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
fieldPath: metadata.namespace
6464
- name: NODEGETINFO_WATCH_TIMEOUT_MINUTES
6565
value: '1'
66-
image: registry.k8s.io/csi-vsphere/driver:v3.7.0
66+
image: registry.k8s.io/csi-vsphere/driver:v3.7.1
6767
imagePullPolicy: Always
6868
livenessProbe:
6969
failureThreshold: 3

0 commit comments

Comments
 (0)