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

Fix BoolOpts for ProvisionToken #1059

Closed
wants to merge 9 commits into from

Conversation

strideynet
Copy link
Contributor

@strideynet strideynet commented Apr 30, 2024

Closes gravitational/teleport#42432

Fixes a fairly nasty bug in the CopyFromBoolOption helper whereby null values were not properly handled. Unfortunately, fixing this generally probably risks breaking folks who rely on the bad behaviour of this function. So for now, we've generated the provision token schema separately and with its own helpers. Eventually we can roll this new behaviour out to all resources.

A good thing to look at would be the different between the custom_types.go in this PR and the unchanged one on master.

terraform/Makefile Outdated Show resolved Hide resolved
@strideynet strideynet changed the title Generate token spec with different conversion helpers Fix BoolOpts for ProvisionToken Apr 30, 2024
@strideynet strideynet marked this pull request as ready for review April 30, 2024 14:17
@strideynet strideynet requested a review from hugoShaka April 30, 2024 14:19
@hugoShaka
Copy link
Contributor

Superseded by #1065

@hugoShaka hugoShaka closed this May 6, 2024
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.

Unable to configure null values in GitLab join tokens using Terraform provider
2 participants