Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Prepare for Teleport V14#918

Closed
camscale wants to merge 4 commits intomasterfrom
camh/prep-t14
Closed

Prepare for Teleport V14#918
camscale wants to merge 4 commits intomasterfrom
camh/prep-t14

Conversation

@camscale
Copy link
Copy Markdown
Contributor

@camscale camscale commented Sep 21, 2023

Update Teleport version to 14.0.0 from 13.8.8. The former has now been
released and is available.

Update the Go version to 1.21.1, as used by Teleport 14.

Fix a couple of tests that used lib/client.Client.CreateAccessRequest()
to use CreateAccessRequestV2() as that supersedes the former. The fix
is as per gravitational/teleport#31760.

Update the version of protoc-gen-terraform required to 2.1.0 from 2.0.2
as that is what the HEAD of the repository now is.

Add RoleV6...KubernetesResources.Verbs as a computed field as it
has a default of [ "*" ] in Teleport 14 and we get a test error without it.

Comment thread .drone.yml Outdated
marcoandredinis and others added 2 commits September 21, 2023 17:33
Update Teleport version to 14.0.0 from 13.8.8. The former has now been
released and is available.

Update the Go version to 1.21.1, as used by Teleport 14.

Fix a couple of tests that used `lib/client.Client.CreateAccessRequest()`
to use `CreateAccessRequestV2()` as that supersedes the former. The fix
is as per gravitational/teleport#31760.

Co-authored-by: Cam Hutchison <camh@goteleport.com>
Update the go.mod file to use Teleport 14 from the tag not the branch by
running:

   make update-teleport-dep-version VERSION=14.0.0

The codeql workflow still seems to use an older version of Go which
fails to parse the new `toolchain` directive in `go.mod`, so add a "Set
up Go" step the same as the Teleport repo to ensure the latest version
is installed for the workflow.
Use 2.1.0 as this is the current latest of
gravitational/protoc-gen-terraform, and the instructions say to use the
latest.
Specify `RoleV6.Spec.Allow.KubernetesResources.Verbs` as a computed
field and re-generate the terraform provider. This is needed as the
verbs field has a default value of `[ "*" ]`, which causes the error:

    role_test.go:244: Step 7/8 error: Error running apply: exit status 1

        Error: Provider produced inconsistent result after apply

        When applying changes to teleport_role.upgrade, provider
        "provider[\"registry.terraform.io/hashicorp/teleport\"]" produced an
        unexpected new value: .spec.allow.kubernetes_resources[0].verbs: was null,
        but now cty.ListVal([]cty.Value{cty.StringVal("*")}).

        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.

Ideally this would not be computed but would have a default specified
instead, but it does not look like we can do that with the current
generator.
@camscale camscale marked this pull request as ready for review September 21, 2023 09:08
@camscale
Copy link
Copy Markdown
Contributor Author

Closed in favour of Marco's one (#920)

@camscale camscale closed this Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants