Skip to content

Commit 6f043e0

Browse files
authored
Merge pull request #250 from rawmind0/rke117
Update rke to 1.1.7 and fix
2 parents 1fca595 + 593aab5 commit 6f043e0

File tree

8 files changed

+297
-11
lines changed

8 files changed

+297
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
## 1.1.2 (Unreleased)
1+
## 1.1.2 (September 18, 2020)
22

33
FEATURES:
44

55

66

77
ENHANCEMENTS:
88

9-
9+
* Updated RKE to v1.1.7
1010

1111
BUG FIXES:
1212

1313
* Ordering `rancher2_cluster.certificates` to avoid output diff on tf 0.13
14+
* Fix provider crash if `rke_state` and `rke_cluster_yaml` are not consistent about nodes count
1415

1516
## 1.1.1 (August 28, 2020)
1617

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ testacc:
4141

4242
vet:
4343
@echo "==> Checking that code complies with go vet requirements..."
44-
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
44+
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -gt 0 ]; then \
4545
echo ""; \
4646
echo "Vet found suspicious constructs. Please check the reported constructs"; \
4747
echo "and fix them if necessary before submitting the code for review."; \

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.1.6
10+
github.com/rancher/rke v1.1.7
1111
github.com/rancher/types v0.0.0-20200812201428-42b3abe8e39e
1212
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b
1313
github.com/sirupsen/logrus v1.4.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ github.com/rancher/rke v1.1.4 h1:s9hhk0RaGRiySpBhMDx6TsTYMbAaD9QrtFKCSzTpL7Y=
770770
github.com/rancher/rke v1.1.4/go.mod h1:6ILvhMXD6PpjYYOvsfb4tBKN19TwhOEc3KKiKNVFcXA=
771771
github.com/rancher/rke v1.1.6 h1:+Ms9zGQOz8Wkx+s2x2ojucQ6NvxNr6CZ8UcPRwgTcwk=
772772
github.com/rancher/rke v1.1.6/go.mod h1:ixdG4yOKf6yJxmj/wqHJniMHOgParBzS1cQ9u3Mq4no=
773+
github.com/rancher/rke v1.1.7 h1:2kAvbzVUmr4f3CB81NvG44O2kXMEhKHvxLYnm56NMlI=
774+
github.com/rancher/rke v1.1.7/go.mod h1:ixdG4yOKf6yJxmj/wqHJniMHOgParBzS1cQ9u3Mq4no=
773775
github.com/rancher/types v0.0.0-20200303162837-300a04e6f743/go.mod h1:k5LoTlUpefw0eAzFSJsZI0gf+C4WE41yrc1jm/MS1nM=
774776
github.com/rancher/types v0.0.0-20200326224903-b4612bd96d9b h1:nLJOQuk36vCXFQuD03L5Fh9xpF9n9U7/76WNGDjOjeY=
775777
github.com/rancher/types v0.0.0-20200326224903-b4612bd96d9b/go.mod h1:k5LoTlUpefw0eAzFSJsZI0gf+C4WE41yrc1jm/MS1nM=

rke/structure_rke_cluster_node.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,16 @@ func flattenRKEClusterNodes(input []rancher.RKEConfigNode, p []interface{}) []in
6161
}
6262
}
6363
}
64-
sortedInput := make([]rancher.RKEConfigNode, len(input))
64+
pLen := len(p)
65+
inputLen := len(input)
66+
sortedInput := make([]rancher.RKEConfigNode, inputLen)
6567
newNodes := []rancher.RKEConfigNode{}
6668
lastIndex := 0
6769
for i := range sortedInput {
6870
if v, ok := pIndexAddress[input[i].Address]; ok {
71+
if v > i && pLen > inputLen {
72+
v = v - (v - i)
73+
}
6974
sortedInput[v] = input[i]
7075
lastIndex++
7176
continue

vendor/github.com/rancher/rke/data/bindata.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)