Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: generate state file during constellation config generate #2455

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

msanft
Copy link
Contributor

@msanft msanft commented Oct 16, 2023

Context

As a first step towards self-managed infrastructure support, it is necessary to provide the user with a way to generate a state file before the normal cluster creation would happen (as that step is not performed in the self-managed infrastructure case).

Proposed change(s)

  • Generate the state file for the specific CSP during constellation config generate <CSP>
  • Read from the exisiting state-file during constellation create, this is not necessary as the file would be overwritten, but creates a more coherent flow between Constellation-managed and self-managed infrastructure.

Additional info

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@msanft msanft added the feature This introduces new functionality label Oct 16, 2023
@msanft msanft added this to the v2.13.0 milestone Oct 16, 2023
@netlify
Copy link

netlify bot commented Oct 16, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit 8eba7ea
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/652d4ff54a69b000086376b0

@msanft msanft force-pushed the feat/cli/config-state-file-generation branch from cd7b368 to 8291e26 Compare October 16, 2023 08:58
@msanft msanft force-pushed the feat/cli/config-state-file-generation branch from 8291e26 to aba3d0e Compare October 16, 2023 14:23
@github-actions
Copy link
Contributor

Coverage report

Package Old New Trend
cli/internal/cmd 50.60% 50.70% ↗️

@msanft msanft merged commit 25b2368 into main Oct 16, 2023
10 checks passed
@msanft msanft deleted the feat/cli/config-state-file-generation branch October 16, 2023 18:19
elchead pushed a commit that referenced this pull request Oct 17, 2023
* create state file during config generate

* use written file in `constellation create`

* document creation of state file

* remove accidentally added test

* check error when writing state file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This introduces new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants