Skip to content

Commit a76bdb9

Browse files
authored
Merge pull request #40 from projectsyn/docs/fix-plan-example
Fix Plan example in parameter docs
2 parents 8cff066 + 2c4223c commit a76bdb9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,21 +283,18 @@ In this example, we specify a taint for etcd or control plane components so that
283283
parameters:
284284
system_upgrade_controller:
285285
plans:
286-
focal: <1>
286+
system-upgrade-focal: <1>
287287
spec: <2>
288288
concurrency: 1
289289
upgrade:
290290
image: docker.io/projectsyn/suc-ubuntu-focal
291291
command: /scripts/run.sh
292-
args:
293-
- some_argument
294-
channel: http://192.168.5.42:8091/
295292
push_gateway: 10.43.209.108:9091
296293
floodgate:
297-
hour: 22 # is not applied if channel is set
298-
day: 3 # is not applied if channel is set
294+
hour: 22
295+
day: 2
299296
label_selectors:
300-
plan.upgrade.cattle.io/focal: <1>
297+
plan.upgrade.cattle.io/system-upgrade-focal: <1>
301298
operator: Exists
302299
tolerations:
303300
node-role.kubernetes.io/controlplane:
@@ -319,7 +316,7 @@ kind: Plan
319316
metadata:
320317
name: system-upgrade-focal
321318
spec:
322-
channel: https://floodgate.syn.vshn.net/window/2/7
319+
channel: https://floodgate.syn.vshn.net/window/2/22
323320
concurrency: 1
324321
drain:
325322
force: true
@@ -329,11 +326,13 @@ spec:
329326
operator: Exists
330327
serviceAccountName: system-upgrade
331328
tolerations:
332-
- key: node-role.kubernetes.io/master
329+
- key: node-role.kubernetes.io/controlplane
330+
operator: Exists
331+
- key: node-role.kubernetes.io/etcd
333332
operator: Exists
334333
upgrade:
335334
args:
336-
- platform-prometheus-pushgateway.syn-synsights.svc.cluster.local:9091
335+
- 10.43.209.108:9091
337336
command:
338337
- /scripts/run.sh
339338
image: docker.io/projectsyn/suc-ubuntu-focal

0 commit comments

Comments
 (0)