mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-06 05:54:28 -04:00
cli: add --workspace
flag to set base directory for Constellation workspace (#2148)
* Remove `--config` and `--master-secret` falgs * Add `--workspace` flag * In CLI, only work on files with paths created from `cli/internal/cmd` * Properly print values for GCP on IAM create when not directly updating the config --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
ec33530c38
commit
d1ace13713
57 changed files with 966 additions and 1145 deletions
|
@ -46,7 +46,7 @@ type stubCloudTerminator struct {
|
|||
terminateErr error
|
||||
}
|
||||
|
||||
func (c *stubCloudTerminator) Terminate(_ context.Context, _ terraform.LogLevel) error {
|
||||
func (c *stubCloudTerminator) Terminate(_ context.Context, _ string, _ terraform.LogLevel) error {
|
||||
c.called = true
|
||||
return c.terminateErr
|
||||
}
|
||||
|
@ -73,18 +73,18 @@ func (c *stubIAMCreator) Create(
|
|||
|
||||
type stubIAMDestroyer struct {
|
||||
destroyCalled bool
|
||||
getTfstateKeyCalled bool
|
||||
getTfStateKeyCalled bool
|
||||
gcpSaKey gcpshared.ServiceAccountKey
|
||||
destroyErr error
|
||||
getTfstateKeyErr error
|
||||
getTfStateKeyErr error
|
||||
}
|
||||
|
||||
func (d *stubIAMDestroyer) DestroyIAMConfiguration(_ context.Context, _ terraform.LogLevel) error {
|
||||
func (d *stubIAMDestroyer) DestroyIAMConfiguration(_ context.Context, _ string, _ terraform.LogLevel) error {
|
||||
d.destroyCalled = true
|
||||
return d.destroyErr
|
||||
}
|
||||
|
||||
func (d *stubIAMDestroyer) GetTfstateServiceAccountKey(_ context.Context) (gcpshared.ServiceAccountKey, error) {
|
||||
d.getTfstateKeyCalled = true
|
||||
return d.gcpSaKey, d.getTfstateKeyErr
|
||||
func (d *stubIAMDestroyer) GetTfStateServiceAccountKey(_ context.Context, _ string) (gcpshared.ServiceAccountKey, error) {
|
||||
d.getTfStateKeyCalled = true
|
||||
return d.gcpSaKey, d.getTfStateKeyErr
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue