Skip to content

Add DeleteClusterMaintenanceConfig for terraform#30214

Merged
lxea merged 1 commit into
masterfrom
lxea/reset-cluster-maintenance-config
Aug 18, 2023
Merged

Add DeleteClusterMaintenanceConfig for terraform#30214
lxea merged 1 commit into
masterfrom
lxea/reset-cluster-maintenance-config

Conversation

@lxea
Copy link
Copy Markdown
Contributor

@lxea lxea commented Aug 9, 2023

The terraform code gen in teleport-plugins expects a Delete method for resources

Part of #26066
Fixes #26185

@github-actions github-actions Bot added size/sm tctl tctl - Teleport admin tool labels Aug 9, 2023
Comment thread tool/tctl/common/resource_command.go
Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fspmarshall Can you review this please? Is it ok to let self-hosted users delete cloud maintenance config? This is needed to let terraform manage the resource.

@r0mant r0mant requested review from fspmarshall and removed request for probakowski August 10, 2023 15:02
@fspmarshall
Copy link
Copy Markdown
Contributor

Deleting cmc is totally fine, just needs to be disabled for Cloud, which this PR does.

@lxea lxea force-pushed the lxea/reset-cluster-maintenance-config branch from 303fdce to 2cb70f3 Compare August 18, 2023 09:04
@lxea lxea enabled auto-merge August 18, 2023 09:04
@lxea lxea added this pull request to the merge queue Aug 18, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 18, 2023
@lxea lxea added this pull request to the merge queue Aug 18, 2023
Merged via the queue into master with commit 4fdaf08 Aug 18, 2023
@lxea lxea deleted the lxea/reset-cluster-maintenance-config branch August 18, 2023 10:38
@public-teleport-github-review-bot
Copy link
Copy Markdown

@lxea See the table below for backport results.

Branch Result
branch/v13 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't delete cluster_maintenance_config after creating

4 participants