Skip to content

Commit

Permalink
Merging
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Dec 27, 2023
1 parent 6c9f9f2 commit 12cc79f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions api/utils/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package utils
import (
"github.com/equinor/radix-operator/pkg/apis/application"
"github.com/equinor/radix-operator/pkg/apis/applicationconfig"
"github.com/equinor/radix-operator/pkg/apis/config/dnsalias"
"github.com/equinor/radix-operator/pkg/apis/deployment"
"github.com/equinor/radix-operator/pkg/apis/ingress"
"github.com/equinor/radix-operator/pkg/apis/kube"
commontest "github.com/equinor/radix-operator/pkg/apis/test"
operatorutils "github.com/equinor/radix-operator/pkg/apis/utils"
Expand Down Expand Up @@ -58,7 +60,7 @@ func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclie
}

kubeUtils, _ := kube.New(client, radixclient, nil)
_, err := commonTestUtils.ApplyApplication(applicationBuilder)
_, err = commonTestUtils.ApplyApplication(applicationBuilder)
if err != nil {
panic(err)
}
Expand All @@ -68,11 +70,6 @@ func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclie
}

applicationConfig := applicationconfig.NewApplicationConfig(client, kubeUtils, radixclient, registrationBuilder.BuildRR(), applicationBuilder.BuildRA(), &dnsalias.DNSConfig{DNSZone: "dev.radix.equinor.com"})
err = applicationConfig.OnSync()
if err != nil {
panic(err)
}
applicationConfig, _ := applicationconfig.NewApplicationConfig(client, kubeUtils, radixclient, registrationBuilder.BuildRR(), applicationBuilder.BuildRA())
return applicationConfig.OnSync()
}

Expand All @@ -88,6 +85,6 @@ func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclien

kubeUtils, _ := kube.New(client, radixclient, secretproviderclient)
rd, _ := commonTestUtils.ApplyDeployment(deploymentBuilder)
deployment := deployment.NewDeploymentSyncer(client, kubeUtils, radixclient, prometheusClient, registrationBuilder.BuildRR(), rd, "123456", 443, 10, []deployment.IngressAnnotationProvider{}, []deployment.AuxiliaryResourceManager{})
return deployment.OnSync()
deploymentSyncer := deployment.NewDeploymentSyncer(client, kubeUtils, radixclient, prometheusClient, registrationBuilder.BuildRR(), rd, "123456", 443, 10, []ingress.AnnotationProvider{}, []deployment.AuxiliaryResourceManager{})
return deploymentSyncer.OnSync()
}

0 comments on commit 12cc79f

Please sign in to comment.