cli: generate state file during constellation config generate (#2455)

* 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
This commit is contained in:
Moritz Sanft 2023-10-16 20:18:59 +02:00 committed by GitHub
parent e5513f14e6
commit 25b23689ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 70 additions and 22 deletions

View file

@ -13,7 +13,7 @@ If you encounter any problem with the following steps, make sure to use the [lat
## Create a cluster
1. Create the [configuration file](../workflows/config.md) for your cloud provider.
1. Create the [configuration file](../workflows/config.md) and state file for your cloud provider.
<tabs groupId="csp">

View file

@ -12,7 +12,7 @@ constellation [command]
Commands:
* [config](#constellation-config): Work with the Constellation configuration file
* [generate](#constellation-config-generate): Generate a default configuration file
* [generate](#constellation-config-generate): Generate a default configuration and state file
* [fetch-measurements](#constellation-config-fetch-measurements): Fetch measurements for configured cloud provider and image
* [instance-types](#constellation-config-instance-types): Print the supported instance types for all cloud providers
* [kubernetes-versions](#constellation-config-kubernetes-versions): Print the Kubernetes versions supported by this CLI
@ -64,11 +64,11 @@ Work with the Constellation configuration file.
## constellation config generate
Generate a default configuration file
Generate a default configuration and state file
### Synopsis
Generate a default configuration file for your selected cloud provider.
Generate a default configuration and state file for your selected cloud provider.
```
constellation config generate {aws|azure|gcp|openstack|qemu|stackit} [flags]