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,
|
requiredGitspacePorts,
|
||||||
allParams,
|
allParams,
|
||||||
configMetadata,
|
configMetadata,
|
||||||
infrastructure.InstanceInfo,
|
infrastructure,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
infraProvisioned.InfraStatus = enum.InfraStatusUnknown
|
infraProvisioned.InfraStatus = enum.InfraStatusUnknown
|
||||||
|
|
@ -298,7 +298,7 @@ func (i InfraProvisioner) provisionExistingInfrastructure(
|
||||||
requiredGitspacePorts,
|
requiredGitspacePorts,
|
||||||
allParams,
|
allParams,
|
||||||
configMetadata,
|
configMetadata,
|
||||||
stoppedInfra.InstanceInfo,
|
stoppedInfra,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ func (d DockerProvider) Provision(
|
||||||
requiredGitspacePorts []types.GitspacePort,
|
requiredGitspacePorts []types.GitspacePort,
|
||||||
inputParameters []types.InfraProviderParameter,
|
inputParameters []types.InfraProviderParameter,
|
||||||
_ map[string]any,
|
_ map[string]any,
|
||||||
_ types.InstanceInfo,
|
_ types.Infrastructure,
|
||||||
) error {
|
) error {
|
||||||
dockerClient, err := d.dockerClientFactory.NewDockerClient(ctx, types.Infrastructure{
|
dockerClient, err := d.dockerClientFactory.NewDockerClient(ctx, types.Infrastructure{
|
||||||
ProviderType: enum.InfraProviderTypeDocker,
|
ProviderType: enum.InfraProviderTypeDocker,
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ type InfraProvider interface {
|
||||||
requiredGitspacePorts []types.GitspacePort,
|
requiredGitspacePorts []types.GitspacePort,
|
||||||
inputParameters []types.InfraProviderParameter,
|
inputParameters []types.InfraProviderParameter,
|
||||||
configMetadata map[string]any,
|
configMetadata map[string]any,
|
||||||
instanceInfo types.InstanceInfo,
|
existingInfrastructure types.Infrastructure,
|
||||||
) error
|
) error
|
||||||
|
|
||||||
// Find finds infrastructure provisioned against a gitspace.
|
// Find finds infrastructure provisioned against a gitspace.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue