Skip to content

Commit b8d6015

Browse files
authored
Merge pull request #3772 from DaoCloud/upgrade/spiderpool/1.1.0
Robot Upgrade: spiderpool chart upgrade from 1.0.5 to 1.1.0
2 parents ff527eb + f729667 commit b8d6015

File tree

9 files changed

+84
-40
lines changed

9 files changed

+84
-40
lines changed

charts/spiderpool/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export USE_OPENSOURCE_CHART=false
44
export REPO_URL=https://spidernet-io.github.io/spiderpool
55
export REPO_NAME=spiderpool
66
export CHART_NAME=spiderpool
7-
export VERSION=1.0.5
7+
export VERSION=1.1.0
88

99
# pr, issue, none
1010
export UPGRADE_METHOD=pr

charts/spiderpool/spiderpool/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 1.0.5
2+
appVersion: 1.1.0
33
description: underlay CNI solution for kubernetes
44
home: https://spidernet-io.github.io/spiderpool
55
icon: https://raw.githubusercontent.com/spidernet-io/spiderpool/main/docs/images/spider.svg
@@ -16,8 +16,8 @@ name: spiderpool
1616
sources:
1717
- https://github.com/spidernet-io/spiderpool
1818
type: application
19-
version: 1.0.5
19+
version: 1.1.0
2020
dependencies:
2121
- name: spiderpool
22-
version: "1.0.5"
22+
version: "1.1.0"
2323
repository: "https://spidernet-io.github.io/spiderpool"

charts/spiderpool/spiderpool/charts/spiderpool/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 1.0.5
2+
appVersion: 1.1.0
33
description: underlay CNI solution for kubernetes
44
home: https://spidernet-io.github.io/spiderpool
55
icon: https://raw.githubusercontent.com/spidernet-io/spiderpool/main/docs/images/spider.svg
@@ -16,4 +16,4 @@ name: spiderpool
1616
sources:
1717
- https://github.com/spidernet-io/spiderpool
1818
type: application
19-
version: 1.0.5
19+
version: 1.1.0

charts/spiderpool/spiderpool/charts/spiderpool/crds/spiderpool.spidernet.io_spidermultusconfigs.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ spec:
159159
items:
160160
type: string
161161
type: array
162+
matchMasterSubnet:
163+
default: false
164+
description: enable IPAM to check if the IPPools of the pod
165+
if matched the master subnet
166+
enum:
167+
- true
168+
- false
169+
type: boolean
162170
type: object
163171
linkState:
164172
default: enable
@@ -202,6 +210,14 @@ spec:
202210
items:
203211
type: string
204212
type: array
213+
matchMasterSubnet:
214+
default: false
215+
description: enable IPAM to check if the IPPools of the pod
216+
if matched the master subnet
217+
enum:
218+
- true
219+
- false
220+
type: boolean
205221
type: object
206222
master:
207223
description: name of the host interface to create the link from.
@@ -238,6 +254,14 @@ spec:
238254
items:
239255
type: string
240256
type: array
257+
matchMasterSubnet:
258+
default: false
259+
description: enable IPAM to check if the IPPools of the pod
260+
if matched the master subnet
261+
enum:
262+
- true
263+
- false
264+
type: boolean
241265
type: object
242266
master:
243267
description: The master interface(s) for the CNI configuration.
@@ -295,6 +319,14 @@ spec:
295319
items:
296320
type: string
297321
type: array
322+
matchMasterSubnet:
323+
default: false
324+
description: enable IPAM to check if the IPPools of the pod
325+
if matched the master subnet
326+
enum:
327+
- true
328+
- false
329+
type: boolean
298330
type: object
299331
master:
300332
description: The master interface(s) for the CNI configuration.
@@ -340,6 +372,14 @@ spec:
340372
items:
341373
type: string
342374
type: array
375+
matchMasterSubnet:
376+
default: false
377+
description: enable IPAM to check if the IPPools of the pod
378+
if matched the master subnet
379+
enum:
380+
- true
381+
- false
382+
type: boolean
343383
type: object
344384
trunk:
345385
items:
@@ -378,6 +418,14 @@ spec:
378418
items:
379419
type: string
380420
type: array
421+
matchMasterSubnet:
422+
default: false
423+
description: enable IPAM to check if the IPPools of the pod
424+
if matched the master subnet
425+
enum:
426+
- true
427+
- false
428+
type: boolean
381429
type: object
382430
maxTxRateMbps:
383431
description: Mbps, 0 = disable rate limiting

charts/spiderpool/spiderpool/charts/spiderpool/templates/configmap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,14 @@ data:
172172
cat /host/etc/cni/net.d/${DEFAULT_CNI_FILEPATH}
173173
174174
echo ""
175-
DEFAULT_CNI_NAME=$(grep '"name":' ${CNI_CONF_DIR}/${DEFAULT_CNI_FILEPATH} | awk '{print $2}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | tr -d ',' | tr -d '"')
175+
176+
DEFAULT_CNI_NAME=$(jq -r '.name' ${CNI_CONF_DIR}/${DEFAULT_CNI_FILEPATH})
176177
if [ -z "$DEFAULT_CNI_NAME" ] ; then
177178
error "The name fleid shouldn't be empty, please check the default cni: ${DEFAULT_CNI_FILEPATH}" && exit 1
178179
fi
179180
180181
log "Updating the clusterNetwork of the multus-cni config to $DEFAULT_CNI_NAME"
181-
sed -i "s?\"clusterNetwork\": \"\"?\"clusterNetwork\": \"${DEFAULT_CNI_NAME}\"?g" /tmp/00-multus.conf
182+
jq ".clusterNetwork=\"${DEFAULT_CNI_NAME}\"" /tmp/00-multus.conf > /tmp/00-multus.conf.tmp && mv /tmp/00-multus.conf.tmp /tmp/00-multus.conf
182183
else
183184
log "User set multus ClusterNetwork: $MULTUS_CLUSTER_NETWORK"
184185
fi

charts/spiderpool/spiderpool/charts/spiderpool/templates/daemonset.yaml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ spec:
111111
image: {{ include "spiderpool.multus.image" . | quote }}
112112
imagePullPolicy: IfNotPresent
113113
command:
114-
- /install_multus
114+
- /install_multus
115115
args:
116-
- --type
117-
- thin
116+
- --type
117+
- thin
118118
securityContext:
119119
privileged: true
120120
volumeMounts:
121-
- mountPath: /host/opt/cni/bin
122-
mountPropagation: Bidirectional
123-
name: cni-bin-path
121+
- mountPath: /host/opt/cni/bin
122+
mountPropagation: Bidirectional
123+
name: cni-bin-path
124124
{{- end }}
125125
containers:
126126
- name: {{ .Values.spiderpoolAgent.name | trunc 63 | trimSuffix "-" }}
@@ -233,11 +233,9 @@ spec:
233233
{{- end }}
234234
{{- end }}
235235
volumeMounts:
236-
{{- if .Values.spiderpoolAgent.prometheus.enabledRdmaMetric }}
237236
- name: host-ns
238-
mountPath: /var/run/netns
237+
mountPath: /var/run
239238
mountPropagation: Bidirectional
240-
{{- end }}
241239
- name: config-path
242240
mountPath: /tmp/spiderpool/config-map
243241
readOnly: true
@@ -257,20 +255,20 @@ spec:
257255
image: {{ include "spiderpool.spiderpoolAgent.image" . | quote }}
258256
imagePullPolicy: {{ .Values.spiderpoolAgent.image.pullPolicy }}
259257
command:
260-
- "/home/entrypoint.sh"
258+
- "/home/entrypoint.sh"
261259
securityContext:
262260
privileged: true
263261
env:
264-
- name: MULTUS_CLUSTER_NETWORK
265-
valueFrom:
266-
configMapKeyRef:
267-
key: clusterNetwork
268-
name: spiderpool-conf
269-
- name: MULTUS_NAMESPACE
270-
valueFrom:
271-
fieldRef:
272-
apiVersion: v1
273-
fieldPath: metadata.namespace
262+
- name: MULTUS_CLUSTER_NETWORK
263+
valueFrom:
264+
configMapKeyRef:
265+
key: clusterNetwork
266+
name: spiderpool-conf
267+
- name: MULTUS_NAMESPACE
268+
valueFrom:
269+
fieldRef:
270+
apiVersion: v1
271+
fieldPath: metadata.namespace
274272
resources:
275273
limits:
276274
cpu: 100m
@@ -315,12 +313,10 @@ spec:
315313
path: {{ dir .Values.global.ipamUNIXSocketHostPath }}
316314
type: DirectoryOrCreate
317315
# multus
318-
{{- if .Values.spiderpoolAgent.prometheus.enabledRdmaMetric }}
319316
- name: host-ns
320317
hostPath:
321-
path: /var/run/netns
322-
{{- end }}
323-
{{- if .Values.multus.multusCNI.install }}
318+
path: /var/run
319+
{{- if .Values.multus.multusCNI.install }}
324320
- name: cni
325321
hostPath:
326322
path: /etc/cni/net.d
@@ -337,7 +333,7 @@ spec:
337333
items:
338334
- key: entrypoint.sh
339335
path: entrypoint.sh
340-
{{- end }}
336+
{{- end }}
341337
{{- if .Values.spiderpoolAgent.extraVolumeMounts }}
342338
{{- include "tplvalues.render" ( dict "value" .Values.spiderpoolAgent.extraVolumeMounts "context" $ ) | nindent 6 }}
343339
{{- end }}

charts/spiderpool/spiderpool/charts/spiderpool/templates/tls.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ webhooks:
181181
- v1
182182
operations:
183183
- CREATE
184-
- UPDATE
185184
resources:
186185
- pods
187186
sideEffects: None

charts/spiderpool/spiderpool/charts/spiderpool/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ spiderpoolAgent:
380380
digest: ""
381381

382382
## @param spiderpoolAgent.image.tag the image tag of spiderpoolAgent, overrides the image tag whose default is the chart appVersion.
383-
tag: v1.0.5
383+
tag: v1.1.0
384384

385385
## @param spiderpoolAgent.image.imagePullSecrets the image imagePullSecrets of spiderpoolAgent
386386
imagePullSecrets: []
@@ -570,7 +570,7 @@ spiderpoolController:
570570
digest: ""
571571

572572
## @param spiderpoolController.image.tag the image tag of spiderpoolController, overrides the image tag whose default is the chart appVersion.
573-
tag: v1.0.5
573+
tag: v1.1.0
574574

575575
## @param spiderpoolController.image.imagePullSecrets the image imagePullSecrets of spiderpoolController
576576
imagePullSecrets: []
@@ -819,7 +819,7 @@ spiderpoolInit:
819819
digest: ""
820820

821821
## @param spiderpoolInit.image.tag the image tag of spiderpoolInit, overrides the image tag whose default is the chart appVersion.
822-
tag: v1.0.5
822+
tag: v1.1.0
823823

824824
## @param spiderpoolInit.image.imagePullSecrets the image imagePullSecrets of spiderpoolInit
825825
imagePullSecrets: []

charts/spiderpool/spiderpool/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ spiderpool:
287287
## @param spiderpoolAgent.image.digest the image digest of spiderpoolAgent, which takes preference over tag
288288
digest: ""
289289
## @param spiderpoolAgent.image.tag the image tag of spiderpoolAgent, overrides the image tag whose default is the chart appVersion.
290-
tag: v1.0.5
290+
tag: v1.1.0
291291
## @param spiderpoolAgent.image.imagePullSecrets the image imagePullSecrets of spiderpoolAgent
292292
imagePullSecrets: []
293293
# - name: "image-pull-secret"
@@ -430,7 +430,7 @@ spiderpool:
430430
## @param spiderpoolController.image.digest the image digest of spiderpoolController, which takes preference over tag
431431
digest: ""
432432
## @param spiderpoolController.image.tag the image tag of spiderpoolController, overrides the image tag whose default is the chart appVersion.
433-
tag: v1.0.5
433+
tag: v1.1.0
434434
## @param spiderpoolController.image.imagePullSecrets the image imagePullSecrets of spiderpoolController
435435
imagePullSecrets: []
436436
# - name: "image-pull-secret"
@@ -646,7 +646,7 @@ spiderpool:
646646
## @param spiderpoolInit.image.digest the image digest of spiderpoolInit, which takes preference over tag
647647
digest: ""
648648
## @param spiderpoolInit.image.tag the image tag of spiderpoolInit, overrides the image tag whose default is the chart appVersion.
649-
tag: v1.0.5
649+
tag: v1.1.0
650650
## @param spiderpoolInit.image.imagePullSecrets the image imagePullSecrets of spiderpoolInit
651651
imagePullSecrets: []
652652
# - name: "image-pull-secret"

0 commit comments

Comments
 (0)