Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage(t *testing.T) {

input := &sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]{
Request: sdk.ExecuteStageRequest[kubeconfig.KubernetesApplicationSpec]{
StageName: "K8S_CANARY_CLEAN",
StageName: "K8S_MULTI_CANARY_CLEAN",
StageConfig: []byte(`{}`),
TargetDeploymentSource: sdk.DeploymentSource[kubeconfig.KubernetesApplicationSpec]{
ApplicationDirectory: filepath.Join("testdata", "simple"),
Expand Down Expand Up @@ -446,7 +446,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage_multipleTargets(t *testing.T) {

input := &sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]{
Request: sdk.ExecuteStageRequest[kubeconfig.KubernetesApplicationSpec]{
StageName: "K8S_CANARY_CLEAN",
StageName: "K8S_MULTI_CANARY_CLEAN",
StageConfig: []byte(`{}`),
TargetDeploymentSource: sdk.DeploymentSource[kubeconfig.KubernetesApplicationSpec]{
ApplicationDirectory: filepath.Join("testdata", "simple"),
Expand Down Expand Up @@ -548,7 +548,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage_withCreateService(t *testing.T)

input := &sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]{
Request: sdk.ExecuteStageRequest[kubeconfig.KubernetesApplicationSpec]{
StageName: "K8S_CANARY_ROLLOUT",
StageName: "K8S_MULTI_CANARY_ROLLOUT",
StageConfig: []byte(`{"createService": true}`),
TargetDeploymentSource: sdk.DeploymentSource[kubeconfig.KubernetesApplicationSpec]{
ApplicationDirectory: configDir,
Expand Down Expand Up @@ -590,7 +590,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage_withCreateService(t *testing.T)
require.True(t, ok)

ok = t.Run("execute canary clean stage", func(t *testing.T) {
input.Request.StageName = "K8S_CANARY_CLEAN"
input.Request.StageName = "K8S_MULTI_CANARY_CLEAN"
input.Request.StageConfig = []byte(`{}`)

status := plugin.executeK8sMultiCanaryCleanStage(ctx, input, deployTarget)
Expand Down Expand Up @@ -621,7 +621,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage_withoutCreateService(t *testing.

input := &sdk.ExecuteStageInput[kubeconfig.KubernetesApplicationSpec]{
Request: sdk.ExecuteStageRequest[kubeconfig.KubernetesApplicationSpec]{
StageName: "K8S_CANARY_ROLLOUT",
StageName: "K8S_MULTI_CANARY_ROLLOUT",
StageConfig: []byte(`{}`),
TargetDeploymentSource: sdk.DeploymentSource[kubeconfig.KubernetesApplicationSpec]{
ApplicationDirectory: configDir,
Expand Down Expand Up @@ -664,7 +664,7 @@ func TestPlugin_executeK8sMultiCanaryCleanStage_withoutCreateService(t *testing.
require.True(t, ok)

ok = t.Run("execute canary clean stage", func(t *testing.T) {
input.Request.StageName = "K8S_CANARY_CLEAN"
input.Request.StageName = "K8S_MULTI_CANARY_CLEAN"
input.Request.StageConfig = []byte(`{}`)

status := plugin.executeK8sMultiCanaryCleanStage(ctx, input, deployTarget)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ const (
// StageK8sMultiRollback represents the state where all deployed resources should be rollbacked.
StageK8sMultiRollback = "K8S_MULTI_ROLLBACK"
// StageK8sMultiCanaryRollout represents the state where the new version is deployed as CANARY to all targets.
StageK8sMultiCanaryRollout = "K8S_CANARY_ROLLOUT"
StageK8sMultiCanaryRollout = "K8S_MULTI_CANARY_ROLLOUT"
// StageK8sMultiCanaryClean represents the state where all canary resources should be removed.
StageK8sMultiCanaryClean = "K8S_CANARY_CLEAN"
StageK8sMultiCanaryClean = "K8S_MULTI_CANARY_CLEAN"
// StageK8sMultiPrimaryRollout represents the state where the new version is promoted as PRIMARY to all targets.
StageK8sMultiPrimaryRollout = "K8S_PRIMARY_ROLLOUT"
StageK8sMultiPrimaryRollout = "K8S_MULTI_PRIMARY_ROLLOUT"
// StageK8sMultiBaselineRollout represents the state where the current version is deployed as BASELINE to all targets.
StageK8sMultiBaselineRollout = "K8S_BASELINE_ROLLOUT"
StageK8sMultiBaselineRollout = "K8S_MULTI_BASELINE_ROLLOUT"
// StageK8sMultiBaselineClean represents the state where all baseline resources should be removed.
StageK8sMultiBaselineClean = "K8S_BASELINE_CLEAN"
StageK8sMultiBaselineClean = "K8S_MULTI_BASELINE_CLEAN"
// StageK8sMultiTrafficRouting represents the state where traffic is routed between variants.
StageK8sMultiTrafficRouting = "K8S_TRAFFIC_ROUTING"
StageK8sMultiTrafficRouting = "K8S_MULTI_TRAFFIC_ROUTING"
)

var allStages = []string{
Expand Down
Loading