Remove interval default value from CRDs

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2022-12-22 14:22:55 +02:00
parent 074072d0de
commit d57c09a0dd
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
6 changed files with 0 additions and 6 deletions

View File

@ -57,7 +57,6 @@ type ProviderSpec struct {
Type string `json:"type"` Type string `json:"type"`
// Interval at which to reconcile the Provider with its Secret references. // Interval at which to reconcile the Provider with its Secret references.
// +kubebuilder:default="600s"
// +kubebuilder:validation:Type=string // +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$" // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
// +optional // +optional

View File

@ -51,7 +51,6 @@ type ReceiverSpec struct {
Type string `json:"type"` Type string `json:"type"`
// Interval at which to reconcile the Receiver with its Secret references. // Interval at which to reconcile the Receiver with its Secret references.
// +kubebuilder:default="600s"
// +kubebuilder:validation:Type=string // +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$" // +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$"
// +optional // +optional

View File

@ -250,7 +250,6 @@ spec:
maxLength: 2048 maxLength: 2048
type: string type: string
interval: interval:
default: 600s
description: Interval at which to reconcile the Provider with its description: Interval at which to reconcile the Provider with its
Secret references. Secret references.
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$

View File

@ -254,7 +254,6 @@ spec:
type: string type: string
type: array type: array
interval: interval:
default: 600s
description: Interval at which to reconcile the Receiver with its description: Interval at which to reconcile the Receiver with its
Secret references. Secret references.
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$ pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$

View File

@ -74,7 +74,6 @@ func TestProviderReconciler_Reconcile(t *testing.T) {
g.Expect(conditions.Has(resultP, meta.ReconcilingCondition)).To(BeFalse()) g.Expect(conditions.Has(resultP, meta.ReconcilingCondition)).To(BeFalse())
g.Expect(controllerutil.ContainsFinalizer(resultP, apiv1.NotificationFinalizer)).To(BeTrue()) 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) { t.Run("fails with secret not found error", func(t *testing.T) {

View File

@ -102,7 +102,6 @@ func TestReceiverReconciler_Reconcile(t *testing.T) {
g.Expect(conditions.Has(resultR, meta.ReconcilingCondition)).To(BeFalse()) g.Expect(conditions.Has(resultR, meta.ReconcilingCondition)).To(BeFalse())
g.Expect(controllerutil.ContainsFinalizer(resultR, apiv1.NotificationFinalizer)).To(BeTrue()) 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) { t.Run("fails with secret not found error", func(t *testing.T) {