Skip to content

Commit

Permalink
chore(tf): bump terraform-provider-upcloud to v5.10.1 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
villevsv-upcloud authored Sep 9, 2024
1 parent 95689c5 commit 18b9adb
Show file tree
Hide file tree
Showing 49 changed files with 3,141 additions and 527 deletions.
28 changes: 12 additions & 16 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ run:
deadline: 10m

skip-files:
- "zz_\\..+\\.go$"
- "zz_\\..+\\.go$"

output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
Expand All @@ -27,10 +27,6 @@ linters-settings:
# report about shadowed variables
check-shadowing: false

golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.8

gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
Expand Down Expand Up @@ -104,17 +100,17 @@ linters-settings:

linters:
enable:
- megacheck
- govet
- gocyclo
- gocritic
- interfacer
- goconst
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- gosimple
- prealloc
- golint
- staticcheck
- unconvert
- unused
- misspell
- nakedret

Expand All @@ -136,7 +132,7 @@ issues:
- gosec
- scopelint
- unparam

# Ease some gocritic warnings on test files.
- path: _test\.go
text: "(unnamedResult|exitAfterDefer)"
Expand All @@ -148,31 +144,31 @@ issues:
# rather than using a pointer.
- text: "(hugeParam|rangeValCopy):"
linters:
- gocritic
- gocritic

# This "TestMain should call os.Exit to set exit code" warning is not clever
# enough to notice that we call a helper method that calls os.Exit.
- text: "SA3000:"
linters:
- staticcheck
- staticcheck

- text: "k8s.io/api/core/v1"
linters:
- goimports
- goimports

# This is a "potential hardcoded credentials" warning. It's triggered by
# any variable with 'secret' in the same, and thus hits a lot of false
# positives in Kubernetes land where a Secret is an object type.
- text: "G101:"
linters:
- gosec
- gas
- gosec
- gas

# This is an 'errors unhandled' warning that duplicates errcheck.
- text: "G104:"
linters:
- gosec
- gas
- gosec
- gas

# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
Expand Down
10 changes: 5 additions & 5 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ If you use VSCode, you can use the following run configuration and run the contr
"TERRAFORM_VERSION": "1.5.7",
"TERRAFORM_PROVIDER_SOURCE": "UpCloudLtd/upcloud",
"TERRAFORM_PROVIDER_REPO": "https://github.com/UpCloudLtd/terraform-provider-upcloud",
"TERRAFORM_PROVIDER_VERSION": "5.7.0",
"TERRAFORM_PROVIDER_VERSION": "5.10.1",
"TERRAFORM_PROVIDER_DOWNLOAD_NAME": "terraform-provider-upcloud",
"TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "https://releases.hashicorp.com/terraform-provider-upcloud/5.7.0",
"TERRAFORM_NATIVE_PROVIDER_BINARY": "terraform-provider-upcloud_v5.7.0",
"TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "https://releases.hashicorp.com/terraform-provider-upcloud/5.10.1",
"TERRAFORM_NATIVE_PROVIDER_BINARY": "terraform-provider-upcloud_v5.10.1",
"TERRAFORM_DOCS_PATH": "docs/resources"
}
}
Expand All @@ -85,9 +85,9 @@ First is to use locally built TF provider. You can do that by [building the TF p
```shell
// "TERRAFORM_PROVIDER_SOURCE": "UpCloudLtd/upcloud",
// "TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "https://releases.hashicorp.com/terraform-provider-upcloud/5.7.0",
// "TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "https://releases.hashicorp.com/terraform-provider-upcloud/5.10.1",
"TERRAFORM_PROVIDER_SOURCE": "registry.upcloud.com/upcloud/upcloud",
"TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "file:///home/myusername/.terraform.d/plugins/registry.upcloud.com/upcloud/upcloud/5.7.0",
"TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX": "file:///home/myusername/.terraform.d/plugins/registry.upcloud.com/upcloud/upcloud/5.10.1",
```
Just make sure to change the version to whatever was the result of local TF build process.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TERRAFORM_VERSION_VALID := $(shell [ "$(TERRAFORM_VERSION)" = "`printf "$(TERRAF

export TERRAFORM_PROVIDER_SOURCE ?= UpCloudLtd/upcloud
export TERRAFORM_PROVIDER_REPO ?= https://github.com/UpCloudLtd/terraform-provider-upcloud
export TERRAFORM_PROVIDER_VERSION ?= 5.7.0
export TERRAFORM_PROVIDER_VERSION ?= 5.10.1
export TERRAFORM_PROVIDER_DOWNLOAD_NAME ?= terraform-provider-upcloud
export TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX ?= https://github.com/UpCloudLtd/terraform-provider-upcloud/releases/download/v${TERRAFORM_PROVIDER_VERSION}
export TERRAFORM_NATIVE_PROVIDER_BINARY ?= terraform-provider-upcloud_v${TERRAFORM_PROVIDER_VERSION}
Expand Down
Loading

0 comments on commit 18b9adb

Please sign in to comment.