-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps_21.go
31 lines (29 loc) · 893 Bytes
/
steps_21.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package upgrades
// stateStepsFor21 returns upgrade steps for Juju 2.1 that manipulate state directly.
func stateStepsFor21() []Step {
return []Step{
&upgradeStep{
description: "add attempt to migration docs",
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return context.State().AddMigrationAttempt()
},
},
&upgradeStep{
description: "add sequences to track used local charm revisions",
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return context.State().AddLocalCharmSequences()
},
},
&upgradeStep{
description: "update lxd cloud/credentials",
targets: []Target{DatabaseMaster},
run: func(context Context) error {
return updateLXDCloudCredentials(context.State())
},
},
}
}