Skip to content

Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion resources#51904

Merged
vapopov merged 3 commits intomasterfrom
vapopov/add-autoupdate-resources-unmarshal
Feb 8, 2025
Merged

Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion resources#51904
vapopov merged 3 commits intomasterfrom
vapopov/add-autoupdate-resources-unmarshal

Conversation

@vapopov
Copy link
Copy Markdown
Contributor

@vapopov vapopov commented Feb 6, 2025

In this PR added support to bootstrap AutoUpdateConfig/AutoUpdateVersion resources which is required for Cloud customers to be pre-created after onboarding

Related:

@vapopov vapopov added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v15 backport/branch/v17 labels Feb 6, 2025
@vapopov vapopov requested review from hugoShaka and sclevine February 6, 2025 04:15
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka left a comment

Choose a reason for hiding this comment

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

While you are adding --bootstrap support, do you mind adding --apply-on-startup support as well?

There's a switch in lib/auth/init.go:1427 and a priority map just above.

Comment thread lib/services/local/resource.go Outdated
Reduce nested switch for bootstrap new type of resources
@vapopov vapopov force-pushed the vapopov/add-autoupdate-resources-unmarshal branch from 0db9a39 to 3584a8c Compare February 6, 2025 19:11
@vapopov vapopov force-pushed the vapopov/add-autoupdate-resources-unmarshal branch from 3584a8c to 1568a4a Compare February 6, 2025 19:27
@vapopov
Copy link
Copy Markdown
Contributor Author

vapopov commented Feb 6, 2025

@sclevine @fspmarshall @kiosion I would appreciate your review when you have time

Copy link
Copy Markdown
Member

@sclevine sclevine left a comment

Choose a reason for hiding this comment

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

Not sure my review will let you merge, but looks good!

@vapopov
Copy link
Copy Markdown
Contributor Author

vapopov commented Feb 7, 2025

@fspmarshall @kiosion could you please also take a look, need one more approval

Copy link
Copy Markdown
Contributor

@kiosion kiosion left a comment

Choose a reason for hiding this comment

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

apologies for the delay! not familiar with this area but LGTM

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from fspmarshall February 8, 2025 03:40
@vapopov vapopov added this pull request to the merge queue Feb 8, 2025
Merged via the queue into master with commit 43038e4 Feb 8, 2025
@vapopov vapopov deleted the vapopov/add-autoupdate-resources-unmarshal branch February 8, 2025 04:05
@public-teleport-github-review-bot
Copy link
Copy Markdown

@vapopov See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Failed

vapopov added a commit that referenced this pull request Feb 10, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Feb 10, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
github-merge-queue bot pushed a commit that referenced this pull request Feb 11, 2025
#51904) (#52015)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
gravitational#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 13, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 13, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 13, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 13, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 14, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 14, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
vapopov added a commit that referenced this pull request Mar 14, 2025
#51904)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
github-merge-queue bot pushed a commit that referenced this pull request Mar 14, 2025
#51904) (#53038)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
github-merge-queue bot pushed a commit that referenced this pull request Mar 14, 2025
#51904) (#53039)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
github-merge-queue bot pushed a commit that referenced this pull request May 13, 2025
#51904) (#53049)

* Add bootstrap support for AutoUpdateConfig/AutoUpdateVersion

* Add support for `applyResources`
Reduce nested switch for bootstrap new type of resources

* Transform test to table test to check same resources for both `bootstrapResources` and `applyResources`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants