Skip to content

Commit

Permalink
Fix obj key generation, rollback terraform provider to 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eljohnson92 committed Aug 22, 2023
1 parent 255469e commit 1ed9411
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 192 deletions.
30 changes: 15 additions & 15 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,9 +27,9 @@ linters-settings:
# report about shadowed variables
check-shadowing: false

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

gofmt:
# simplify code: gofmt with `-s` option, true by default
Expand All @@ -38,7 +38,7 @@ linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/upbound/upjet-provider-template
local-prefixes: github.com/upbound/provider-aws

gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
Expand Down Expand Up @@ -113,7 +113,7 @@ linters:
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- prealloc
- golint
- revive
- unconvert
- misspell
- nakedret
Expand All @@ -136,7 +136,7 @@ issues:
- gosec
- scopelint
- unparam

# Ease some gocritic warnings on test files.
- path: _test\.go
text: "(unnamedResult|exitAfterDefer)"
Expand All @@ -148,31 +148,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 All @@ -192,4 +192,4 @@ issues:
max-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
max-same-issues: 0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PROJECT_REPO := github.com/linode/$(PROJECT_NAME)

export TERRAFORM_VERSION := 1.3.3
export TERRAFORM_PROVIDER_SOURCE := linode/linode
export TERRAFORM_PROVIDER_VERSION := 2.5.2
export TERRAFORM_PROVIDER_VERSION := 2.5.1
export TERRAFORM_PROVIDER_DOWNLOAD_NAME := terraform-provider-linode
export TERRAFORM_NATIVE_PROVIDER_BINARY := terraform-provider-linode_v$(TERRAFORM_PROVIDER_VERSION)
export TERRAFORM_PROVIDER_REPO := https://github.com/linode/terraform-provider-linode
Expand Down
8 changes: 4 additions & 4 deletions apis/database/v1alpha1/zz_mysql_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions apis/image/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions apis/image/v1alpha1/zz_image_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 0 additions & 59 deletions apis/instance/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 0 additions & 23 deletions apis/instance/v1alpha1/zz_instance_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/instance/v1alpha1/zz_ip_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apis/objectstorage/v1alpha1/zz_key_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions config/provider-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ resources:
dependencies:
linode_database_mysql.my-db: |-
{
"engine_id": "mysql/8.0.30",
"engine_id": "mysql/8.0.26",
"label": "mydatabase",
"region": "us-southeast",
"type": "g6-nanode-1"
Expand All @@ -65,7 +65,7 @@ resources:
- name: foobar
manifest: |-
{
"engine_id": "mysql/8.0.30",
"engine_id": "mysql/8.0.26",
"label": "mydatabase",
"region": "us-southeast",
"type": "g6-nanode-1"
Expand All @@ -78,7 +78,7 @@ resources:
],
"cluster_size": 3,
"encrypted": true,
"engine_id": "mysql/8.0.30",
"engine_id": "mysql/8.0.26",
"label": "mydatabase",
"region": "us-southeast",
"replication_type": "asynch",
Expand All @@ -102,7 +102,7 @@ resources:
created: '- When this Managed Database was created.'
encrypted: '- (Optional) Whether the Managed Databases is encrypted. (default false)'
engine: '- The Managed Database engine. (e.g. mysql)'
engine_id: '- (Required) The Managed Database engine in engine/version format. (e.g. mysql/8.0.30)'
engine_id: '- (Required) The Managed Database engine in engine/version format. (e.g. mysql/8.0.26)'
host_primary: '- The primary host for the Managed Database.'
host_secondary: '- The secondary/private network host for the Managed Database.'
id: '- The ID of the Managed Database.'
Expand Down
2 changes: 1 addition & 1 deletion config/schema.json

Large diffs are not rendered by default.

Loading

0 comments on commit 1ed9411

Please sign in to comment.