Skip to content

Commit

Permalink
Merge pull request #457 from fluxcd/remove-interval-default
Browse files Browse the repository at this point in the history
Remove interval default value from CRDs
  • Loading branch information
stefanprodan authored Dec 22, 2022
2 parents 074072d + d57c09a commit a89bb94
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion api/v1beta2/provider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type ProviderSpec struct {
Type string `json:"type"`

// Interval at which to reconcile the Provider with its Secret references.
// +kubebuilder:default="600s"
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
// +optional
Expand Down
1 change: 0 additions & 1 deletion api/v1beta2/receiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ type ReceiverSpec struct {
Type string `json:"type"`

// Interval at which to reconcile the Receiver with its Secret references.
// +kubebuilder:default="600s"
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ spec:
maxLength: 2048
type: string
interval:
default: 600s
description: Interval at which to reconcile the Provider with its
Secret references.
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ spec:
type: string
type: array
interval:
default: 600s
description: Interval at which to reconcile the Receiver with its
Secret references.
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
Expand Down
1 change: 0 additions & 1 deletion controllers/provider_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ func TestProviderReconciler_Reconcile(t *testing.T) {

g.Expect(conditions.Has(resultP, meta.ReconcilingCondition)).To(BeFalse())
g.Expect(controllerutil.ContainsFinalizer(resultP, apiv1.NotificationFinalizer)).To(BeTrue())
g.Expect(resultP.Spec.Interval.Duration).To(BeIdenticalTo(10 * time.Minute))
})

t.Run("fails with secret not found error", func(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion controllers/receiver_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ func TestReceiverReconciler_Reconcile(t *testing.T) {

g.Expect(conditions.Has(resultR, meta.ReconcilingCondition)).To(BeFalse())
g.Expect(controllerutil.ContainsFinalizer(resultR, apiv1.NotificationFinalizer)).To(BeTrue())
g.Expect(resultR.Spec.Interval.Duration).To(BeIdenticalTo(10 * time.Minute))
})

t.Run("fails with secret not found error", func(t *testing.T) {
Expand Down

0 comments on commit a89bb94

Please sign in to comment.