feat: [CDE-888]: Pass infra to provision call (#4184)
* feat: [CDE-888]: fix lint * feat: [CDE-888]: Pass infra to provision call
This commit is contained in:
parent
669fbd6aa6
commit
0d79bb9f39
|
|
@ -254,7 +254,7 @@ func (i InfraProvisioner) provisionNewInfrastructure(
|
|||
requiredGitspacePorts,
|
||||
allParams,
|
||||
configMetadata,
|
||||
infrastructure.InstanceInfo,
|
||||
infrastructure,
|
||||
)
|
||||
if err != nil {
|
||||
infraProvisioned.InfraStatus = enum.InfraStatusUnknown
|
||||
|
|
@ -298,7 +298,7 @@ func (i InfraProvisioner) provisionExistingInfrastructure(
|
|||
requiredGitspacePorts,
|
||||
allParams,
|
||||
configMetadata,
|
||||
stoppedInfra.InstanceInfo,
|
||||
stoppedInfra,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf(
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ func (d DockerProvider) Provision(
|
|||
requiredGitspacePorts []types.GitspacePort,
|
||||
inputParameters []types.InfraProviderParameter,
|
||||
_ map[string]any,
|
||||
_ types.InstanceInfo,
|
||||
_ types.Infrastructure,
|
||||
) error {
|
||||
dockerClient, err := d.dockerClientFactory.NewDockerClient(ctx, types.Infrastructure{
|
||||
ProviderType: enum.InfraProviderTypeDocker,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ type InfraProvider interface {
|
|||
requiredGitspacePorts []types.GitspacePort,
|
||||
inputParameters []types.InfraProviderParameter,
|
||||
configMetadata map[string]any,
|
||||
instanceInfo types.InstanceInfo,
|
||||
existingInfrastructure types.Infrastructure,
|
||||
) error
|
||||
|
||||
// Find finds infrastructure provisioned against a gitspace.
|
||||
|
|
|
|||
Loading…
Reference in New Issue