File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed
golden/defaults/system-upgrade-controller/system-upgrade-controller Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,13 @@ local plans = [
215215 spec+: com.makeMergeable(p.spec),
216216 };
217217 local needsFG = !std.objectHas (sp.spec, 'channel' ) && !std.objectHas (sp.spec, 'version' );
218+ local hasCmd = std.objectHas (sp.spec, 'upgrade' ) && std.objectHas (sp.spec.upgrade, 'command' );
218219
219220 sp {
220221 spec+: {
221222 [if needsFG then 'channel' ]: suc.floodgate_channel(p.floodgate),
222223 upgrade+: {
223- command: fixup_command(super .command),
224+ [ if hasCmd then ' command' ] : fixup_command(super .command),
224225 [if std.objectHas (p, 'push_gateway' ) then 'args' ]+:
225226 [ p.push_gateway ],
226227 },
Original file line number Diff line number Diff line change @@ -39,3 +39,20 @@ parameters:
3939 plan.upgrade.cattle.io/system-upgrade-bionic :
4040 operator : Exists
4141 tolerations : ${system_upgrade_controller:plan_tolerations}
42+ k3s :
43+ spec :
44+ concurrency : 1
45+ version : v1.20.12+k3s1
46+ channel : null
47+ serviceAccountName : system-upgrade
48+ cordon : true
49+ image : docker.io/rancher/k3s-upgrade
50+ label_selectors :
51+ k3s.io/hostname :
52+ operator : Exists
53+ tolerations :
54+ node-role.kubernetes.io/controlplane :
55+ operator : Exists
56+ node-role.kubernetes.io/master :
57+ operator : In
58+ values : ["true"]
Original file line number Diff line number Diff line change 11apiVersion : upgrade.cattle.io/v1
22kind : Plan
3+ metadata :
4+ annotations :
5+ argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
6+ labels :
7+ app.kubernetes.io/managed-by : syn
8+ name : k3s
9+ name : k3s
10+ namespace : syn-system-upgrade-controller
11+ spec :
12+ channel : null
13+ concurrency : 1
14+ cordon : true
15+ drain :
16+ force : true
17+ image : docker.io/rancher/k3s-upgrade
18+ nodeSelector :
19+ matchExpressions :
20+ - key : k3s.io/hostname
21+ operator : Exists
22+ serviceAccountName : system-upgrade
23+ tolerations :
24+ - key : node-role.kubernetes.io/controlplane
25+ operator : Exists
26+ - key : node-role.kubernetes.io/master
27+ operator : In
28+ values :
29+ - ' true'
30+ upgrade : {}
31+ version : v1.20.12+k3s1
32+ ---
33+ apiVersion : upgrade.cattle.io/v1
34+ kind : Plan
335metadata :
436 annotations :
537 argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
You can’t perform that action at this time.
0 commit comments