Skip to content

Commit 20c256b

Browse files
authored
Merge pull request #263 from rawmind0/rke12
Updated RKE to v1.2.2
2 parents 21e2c20 + d47d848 commit 20c256b

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 1.1.5 (November 5, 2020)
2+
3+
FEATURES:
4+
5+
6+
7+
ENHANCEMENTS:
8+
9+
* Updated RKE to v1.2.2
10+
11+
BUG FIXES:
12+
13+
14+
115
## 1.1.4 (November 5, 2020)
216

317
FEATURES:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/gorilla/websocket v1.4.1 // indirect
88
github.com/hashicorp/go-version v1.2.0
99
github.com/hashicorp/terraform-plugin-sdk v1.14.0
10-
github.com/rancher/rke v1.2.1
10+
github.com/rancher/rke v1.2.2
1111
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b
1212
github.com/sirupsen/logrus v1.4.2
1313
gopkg.in/yaml.v2 v2.2.8

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,8 @@ github.com/rancher/rke v1.2.0 h1:IxnUfQKyiQ1F16xERd9JSboS8g43JHtjpmtcfgssHQE=
786786
github.com/rancher/rke v1.2.0/go.mod h1:aPSc14Hp8UGLscL/wB9ZZQHPX/kjDiPXLcoMTCY2NS4=
787787
github.com/rancher/rke v1.2.1 h1:YLIZ+bkINrJrje8zPuFfnVx7iGqAvnZoHZSK3pA9BRs=
788788
github.com/rancher/rke v1.2.1/go.mod h1:aPSc14Hp8UGLscL/wB9ZZQHPX/kjDiPXLcoMTCY2NS4=
789+
github.com/rancher/rke v1.2.2 h1:E5Vqs+vO+M0iN/0b5EsS0vc9Bg5BtQtXOQVXVakxr4s=
790+
github.com/rancher/rke v1.2.2/go.mod h1:aPSc14Hp8UGLscL/wB9ZZQHPX/kjDiPXLcoMTCY2NS4=
789791
github.com/rancher/types v0.0.0-20200303162837-300a04e6f743/go.mod h1:k5LoTlUpefw0eAzFSJsZI0gf+C4WE41yrc1jm/MS1nM=
790792
github.com/rancher/types v0.0.0-20200326224903-b4612bd96d9b h1:nLJOQuk36vCXFQuD03L5Fh9xpF9n9U7/76WNGDjOjeY=
791793
github.com/rancher/types v0.0.0-20200326224903-b4612bd96d9b/go.mod h1:k5LoTlUpefw0eAzFSJsZI0gf+C4WE41yrc1jm/MS1nM=

rke/structure_rke_cluster_node.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func flattenRKEClusterNodeUpgradeStrategy(in *rancher.NodeUpgradeStrategy) []int
3030
return []interface{}{}
3131
}
3232

33-
obj["drain"] = in.Drain
33+
obj["drain"] = *in.Drain
3434

3535
if in.DrainInput != nil {
3636
obj["drain_input"] = flattenRKEClusterNodeDrainInput(in.DrainInput)
@@ -208,7 +208,7 @@ func expandRKEClusterNodeUpgradeStrategy(p []interface{}) *rancher.NodeUpgradeSt
208208
in := p[0].(map[string]interface{})
209209

210210
if v, ok := in["drain"].(bool); ok {
211-
obj.Drain = v
211+
obj.Drain = &v
212212
}
213213

214214
if v, ok := in["drain_input"].([]interface{}); ok {

rke/structure_rke_cluster_node_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func init() {
3636
},
3737
}
3838
testRKEClusterNodeUpgradeStrategyConf = &rancher.NodeUpgradeStrategy{
39-
Drain: false,
39+
Drain: newFalse(),
4040
DrainInput: testRKEClusterNodeDrainInputConf,
4141
MaxUnavailableControlplane: "2",
4242
MaxUnavailableWorker: "20%",

0 commit comments

Comments
 (0)