Skip to content

Commit 365539d

Browse files
authored
Merge pull request #692 from rawmind0/go116
Updated golang to v1.16.5 and Rancher to v2.5.9
2 parents c624906 + 9b666da commit 365539d

8 files changed

Lines changed: 43 additions & 91 deletions

File tree

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
privileged: true
2121

2222
- name: build-all-binaries
23-
image: golang:1.14.9
23+
image: golang:1.16.5
2424
environment:
2525
CROSS: 1
2626
VERSION: ${DRONE_TAG}

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.16.0 (Unreleased)
1+
## 1.16.0 (July 15, 2021)
22

33
FEATURES:
44

@@ -14,6 +14,8 @@ ENHANCEMENTS:
1414
* Updated `rancher2_cluster` resource to replace RKE cluster API info instead of update, if `rancher2_cluster.rke_config` has been updated
1515
* Updated `rancher2_project` resource to replace project API info instead of update
1616
* Updated `rancher2_node_template.engine_install_url` argument to be `computed`
17+
* Updated Rancher to v2.5.9
18+
* Updated golang to v1.16.5 and added darwin arm64 build
1719

1820
BUG FIXES:
1921

go.mod

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
module github.com/terraform-providers/terraform-provider-rancher2
22

3-
go 1.14
3+
go 1.16
44

55
require (
66
github.com/ghodss/yaml v1.0.0
77
github.com/hashicorp/go-version v1.2.0
88
github.com/hashicorp/terraform-plugin-sdk v1.14.0
99
github.com/rancher/norman v0.0.0-20210225010917-c7fd1e24145b
10-
github.com/rancher/rancher v0.0.0-20210505234332-cf16ca13d023
10+
github.com/rancher/rancher v0.0.0-20210714221037-3c54189441fd
1111
github.com/rancher/rancher/pkg/apis v0.0.0
1212
github.com/rancher/rancher/pkg/client v0.0.0
13-
golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0
13+
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
1414
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
1515
gopkg.in/yaml.v2 v2.3.0
16-
k8s.io/api v0.20.0
17-
k8s.io/apimachinery v0.20.0
18-
k8s.io/apiserver v0.20.0
16+
k8s.io/api v0.20.6
17+
k8s.io/apimachinery v0.20.6
18+
k8s.io/apiserver v0.20.6
1919
)
2020

2121
replace (
2222
github.com/crewjam/saml => github.com/crewjam/saml v0.4.1
23-
github.com/rancher/rancher/pkg/apis => github.com/rancher/rancher/pkg/apis v0.0.0-20210505234332-cf16ca13d023
24-
github.com/rancher/rancher/pkg/client => github.com/rancher/rancher/pkg/client v0.0.0-20210505234332-cf16ca13d023
23+
github.com/rancher/rancher/pkg/apis => github.com/rancher/rancher/pkg/apis v0.0.0-20210714221037-3c54189441fd
24+
github.com/rancher/rancher/pkg/client => github.com/rancher/rancher/pkg/client v0.0.0-20210714221037-3c54189441fd
2525
k8s.io/api => k8s.io/api v0.20.0
2626
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.0
2727
k8s.io/apimachinery => k8s.io/apimachinery v0.20.0

go.sum

Lines changed: 27 additions & 77 deletions
Large diffs are not rendered by default.

rancher2/0_provider_upgrade_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "rancher2_namespace" "testacc" {
4646
project_id = rancher2_cluster_sync.testacc.default_project_id
4747
}
4848
`
49-
testAccCheckRancher2UpgradeVersion = []string{"v2.3.6", "v2.4.13", "v2.5.8"}
49+
testAccCheckRancher2UpgradeVersion = []string{"v2.3.6", "v2.4.13", "v2.5.9"}
5050
testAccCheckRancher2RunningVersionIndex = 0
5151
testAccCheckRancher2UpgradeCluster = os.Getenv("RANCHER_ACC_CLUSTER_NAME")
5252
testAccCheckRancher2UpgradeCatalogV24 = testAccRancher2CatalogGlobal + testAccRancher2CatalogCluster + testAccRancher2CatalogProject

scripts/Dockerfile.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM golang:1.14.9-alpine3.12
1+
FROM golang:1.16.5-alpine3.13
22
RUN apk -U add bash git gcc musl-dev make docker-cli curl ca-certificates
33
WORKDIR /go/src/github.com/terraform-providers/terraform-provider-rancher2

scripts/gobuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare -A OS_ARCH_ARG
1111
OS_PLATFORM_ARG=(linux windows darwin freebsd openbsd)
1212
OS_ARCH_ARG[linux]="amd64 arm arm64"
1313
OS_ARCH_ARG[windows]="386 amd64"
14-
OS_ARCH_ARG[darwin]="amd64"
14+
OS_ARCH_ARG[darwin]="amd64 arm64"
1515
OS_ARCH_ARG[freebsd]="386 amd64 arm"
1616
OS_ARCH_ARG[openbsd]="386 amd64"
1717

scripts/start_rancher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CERTMANAGER_CRD=${CERTMANAGER_CRD:-"https://github.com/jetstack/cert-manager/rel
2020
CERTMANAGER_NS=${CERTMANAGER_NS:-"cert-manager"}
2121

2222
## rancher
23-
RANCHER_VERSION=${RANCHER_VERSION:-"v2.5.6"}
23+
RANCHER_VERSION=${RANCHER_VERSION:-"v2.5.9"}
2424
RANCHER_NS=${RANCHER_NS:-"cattle-system"}
2525
RANCHER_DNS_DOMAIN="nip.io"
2626
export RANCHER_HOSTNAME="rancher.${K3S_SERVER_IP}.${RANCHER_DNS_DOMAIN}"

0 commit comments

Comments
 (0)