mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-06 05:54:28 -04:00
cli: enable constellation apply
to create new clusters (#2549)
* Allow creation of Constellation clusters using `apply` command * Add auto-completion for `--skip-phases` flag * Deprecate create command * Replace all doc references to create command with apply --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
82b68df92a
commit
4c8ce55e5a
28 changed files with 989 additions and 636 deletions
|
@ -121,6 +121,11 @@ func (a *Applier) RestoreWorkspace() error {
|
|||
return restoreBackup(a.fileHandler, a.workingDir, filepath.Join(a.backupDir, constants.TerraformUpgradeBackupDir))
|
||||
}
|
||||
|
||||
// WorkingDirIsEmpty returns true if the working directory of the Applier is empty.
|
||||
func (a *Applier) WorkingDirIsEmpty() (bool, error) {
|
||||
return a.fileHandler.IsEmpty(a.workingDir)
|
||||
}
|
||||
|
||||
func (a *Applier) terraformApplyVars(ctx context.Context, conf *config.Config) (terraform.Variables, error) {
|
||||
imageRef, err := a.imageFetcher.FetchReference(
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue