From d203c423461d64f637451a83e2f719a3352d0824 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Sun, 7 Nov 2021 10:56:46 -0800 Subject: [PATCH] add some missing documentation, bump kind patch version, update go version in mod file, add arm64 to goreleaser (#51) --- .goreleaser.yml | 1 + docs/resources/cluster.md | 14 ++++++++++++++ go.mod | 4 ++-- go.sum | 4 ++-- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index d52acf8..3f85e8e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,7 @@ builds: - darwin goarch: - amd64 + - arm64 archives: - format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' diff --git a/docs/resources/cluster.md b/docs/resources/cluster.md index 21b0ea3..5e510b7 100644 --- a/docs/resources/cluster.md +++ b/docs/resources/cluster.md @@ -104,6 +104,20 @@ resource "kind_cluster" "default" { } ``` +If specifying a kubeconfig path containing a `~/some/random/path` character, be aware that terraform is not expanding the path unless you specify it via `pathexpand("~/some/random/path")` + +```hcl +locals { + k8s_config_path = pathexpand("~/folder/config") +} + +resource "kind_cluster" "default" { + name = "test-cluster" + kubeconfig_path = local.k8s_config_path + # ... +} +``` + ## Argument Reference * `name` - (Required) The kind name that is given to the created cluster. diff --git a/go.mod b/go.mod index b660c31..45d70aa 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kyma-incubator/terraform-provider-kind -go 1.13 +go 1.16 require ( github.com/apparentlymart/go-cidr v1.1.0 // indirect @@ -16,7 +16,7 @@ require ( github.com/zclconf/go-cty-yaml v1.0.2 // indirect gopkg.in/yaml.v2 v2.3.0 // indirect k8s.io/client-go v12.0.0+incompatible - sigs.k8s.io/kind v0.11.0 + sigs.k8s.io/kind v0.11.1 ) replace k8s.io/client-go => k8s.io/client-go v0.20.2 diff --git a/go.sum b/go.sum index 7d95f4d..780fcbf 100644 --- a/go.sum +++ b/go.sum @@ -717,8 +717,8 @@ k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/kind v0.11.0 h1:tBxAEht9B3Dln8+kLxDg+A23ViRWcXquhV1Fe195fbE= -sigs.k8s.io/kind v0.11.0/go.mod h1:fRpgVhtqAWrtLB9ED7zQahUimpUXuG/iHT88xYqEGIA= +sigs.k8s.io/kind v0.11.1 h1:pVzOkhUwMBrCB0Q/WllQDO3v14Y+o2V0tFgjTqIUjwA= +sigs.k8s.io/kind v0.11.1/go.mod h1:fRpgVhtqAWrtLB9ED7zQahUimpUXuG/iHT88xYqEGIA= sigs.k8s.io/structured-merge-diff/v4 v4.0.2 h1:YHQV7Dajm86OuqnIR6zAelnDWBRjo+YhYV9PmGrh1s8= sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=