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, },