File tree Expand file tree Collapse file tree 12 files changed +743
-650
lines changed Expand file tree Collapse file tree 12 files changed +743
-650
lines changed Original file line number Diff line number Diff line change 8888 with :
8989 go-version-file : go.mod
9090 check-latest : true
91- - uses : golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6 .0.1
91+ - uses : golangci/golangci-lint-action@v7 .0.0
9292 with :
93- version : v1.62
93+ version : latest
9494 args : --timeout=10m
Original file line number Diff line number Diff line change 1- # Visit https://golangci-lint.run/ for usage documentation
2- # and information on other useful linters
3- args : --timeout=10m
4- issues :
5- max-per-linter : 0
6- max-same-issues : 0
1+ version : " 2"
2+ run :
3+ modules-download-mode : readonly
4+ allow-parallel-runners : true
75linters :
8- disable-all : true
6+ default : none
97 enable :
10- - durationcheck
8+ - copyloopvar
119 - errcheck
12- - exportloopref
13- - forcetypeassert
14- - godot
15- - gofmt
16- - gosimple
10+ - errname
11+ - errorlint
12+ - goconst
13+ - gocyclo
14+ - govet
15+ - importas
1716 - ineffassign
18- - makezero
1917 - misspell
20- - nilerr
21- - predeclared
18+ - prealloc
2219 - staticcheck
23- - tenv
24- - unconvert
25- - unparam
2620 - unused
27- - govet
21+ - usestdlibvars
22+ - wastedassign
23+ - whitespace
24+ exclusions :
25+ generated : lax
26+ presets :
27+ - comments
28+ - common-false-positives
29+ - legacy
30+ - std-error-handling
31+ paths :
32+ - third_party$
33+ - builtin$
34+ - examples$
35+ formatters :
36+ enable :
37+ - gofmt
38+ - goimports
39+ exclusions :
40+ generated : lax
41+ paths :
42+ - third_party$
43+ - builtin$
44+ - examples$
Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ ROOT_DIR="$(cd $(dirname "${BASH_SOURCE}")/.. && pwd -P)"
88PLUGIN=" registry.terraform.io/pluralsh/plural"
99PLUGIN_NAME=" terraform-provider-$( basename " ${PLUGIN} " ) "
1010PLUGIN_LOCATION=" ${ROOT_DIR} /build/${PLUGIN_NAME} "
11- VERSION=0.2.1
12- DESTINATION=" ${HOME} /.terraform.d/plugins/${PLUGIN} /${VERSION} /${OS} _${ARCH} /${PLUGIN_NAME} _v ${VERSION} -${OS} -${ARCH} "
11+ VERSION=$( curl -sL https://api.github.com/repos/pluralsh/terraform-provider-plural/tags | jq -r ' .[0].name ' )
12+ DESTINATION=" ${HOME} /.terraform.d/plugins/${PLUGIN} /${VERSION// v } /${OS} _${ARCH} /${PLUGIN_NAME} _ ${VERSION} -${OS} -${ARCH} "
1313
1414mkdir -p " $( dirname " ${DESTINATION} " ) "
1515mv " ${PLUGIN_LOCATION} " " ${DESTINATION} "
16- echo " Installed ${PLUGIN} into ${DESTINATION} "
17-
18-
16+ echo " Installed ${PLUGIN} ${VERSION} into ${DESTINATION} "
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_providers {
3+ plural = {
4+ source = " pluralsh/plural"
5+ version = " 0.2.24"
6+ }
7+ }
8+ }
9+
10+ provider "plural" {
11+ use_cli = true
12+ }
13+
14+ data "plural_cluster" "mgmt" {
15+ handle = " mgmt"
16+ }
17+
18+ data "plural_git_repository" "repository" {
19+ url = " https://github.com/pluralsh/plrl-cd-test.git"
20+ }
21+
22+ resource "random_string" "random" {
23+ length = 5
24+ upper = false
25+ special = false
26+ }
27+
28+ resource "plural_service_deployment" "apps" {
29+ name = " test-${ random_string . random . result } "
30+ namespace = " test"
31+ repository = {
32+ id = data.plural_git_repository.repository.id
33+ ref = " main"
34+ folder = " kubernetes"
35+ }
36+ cluster = {
37+ id = data.plural_cluster.mgmt.id
38+ }
39+ templated = false
40+ # protect = true
41+ # configuration = {
42+ # "host" = "tf-cd-test.gcp.plural.sh"
43+ # "tag" = "sha-4d01e86"
44+ # }
45+ }
You can’t perform that action at this time.
0 commit comments