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 = [
215
215
spec+: com.makeMergeable(p.spec),
216
216
};
217
217
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' );
218
219
219
220
sp {
220
221
spec+: {
221
222
[if needsFG then 'channel' ]: suc.floodgate_channel(p.floodgate),
222
223
upgrade+: {
223
- command: fixup_command(super .command),
224
+ [ if hasCmd then ' command' ] : fixup_command(super .command),
224
225
[if std.objectHas (p, 'push_gateway' ) then 'args' ]+:
225
226
[ p.push_gateway ],
226
227
},
Original file line number Diff line number Diff line change @@ -39,3 +39,20 @@ parameters:
39
39
plan.upgrade.cattle.io/system-upgrade-bionic :
40
40
operator : Exists
41
41
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 1
1
apiVersion : upgrade.cattle.io/v1
2
2
kind : 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
3
35
metadata :
4
36
annotations :
5
37
argocd.argoproj.io/sync-options : SkipDryRunOnMissingResource=true
You can’t perform that action at this time.
0 commit comments