From c932c3b95260a510ea03900cae4709da02a2b327 Mon Sep 17 00:00:00 2001 From: Zach Aller Date: Thu, 24 Oct 2024 13:20:22 -0700 Subject: [PATCH] chore: remove dryBranch (#81) remove dryBranch Signed-off-by: Zach Aller --- api/v1alpha1/promotionstrategy_types.go | 3 --- config/crd/bases/promoter.argoproj.io_promotionstrategies.yaml | 3 --- internal/controller/promotionstrategy_controller_test.go | 1 - 3 files changed, 7 deletions(-) diff --git a/api/v1alpha1/promotionstrategy_types.go b/api/v1alpha1/promotionstrategy_types.go index 57ab748..790c9c2 100644 --- a/api/v1alpha1/promotionstrategy_types.go +++ b/api/v1alpha1/promotionstrategy_types.go @@ -31,9 +31,6 @@ type PromotionStrategySpec struct { // +kubebuilder:validation:Required RepositoryReference ObjectReference `json:"gitRepositoryRef"` - // +kubebuilder:validation:Required - DryBanch string `json:"dryBranch"` - // +kubebuilder:validation:Optional ActiveCommitStatuses []CommitStatusSelector `json:"activeCommitStatuses"` diff --git a/config/crd/bases/promoter.argoproj.io_promotionstrategies.yaml b/config/crd/bases/promoter.argoproj.io_promotionstrategies.yaml index 0401fba..4eb16b7 100644 --- a/config/crd/bases/promoter.argoproj.io_promotionstrategies.yaml +++ b/config/crd/bases/promoter.argoproj.io_promotionstrategies.yaml @@ -56,8 +56,6 @@ spec: - key type: object type: array - dryBranch: - type: string environments: items: properties: @@ -109,7 +107,6 @@ spec: type: object type: array required: - - dryBranch - environments - gitRepositoryRef type: object diff --git a/internal/controller/promotionstrategy_controller_test.go b/internal/controller/promotionstrategy_controller_test.go index 04d18d6..d68d87c 100644 --- a/internal/controller/promotionstrategy_controller_test.go +++ b/internal/controller/promotionstrategy_controller_test.go @@ -680,7 +680,6 @@ func promotionStrategyResource(ctx context.Context, name, namespace string) (str Namespace: namespace, }, Spec: promoterv1alpha1.PromotionStrategySpec{ - DryBanch: "main", RepositoryReference: promoterv1alpha1.ObjectReference{ Name: name, },