diff --git a/apis/core/v1beta1/featureflagsource_types.go b/apis/core/v1beta1/featureflagsource_types.go index 63ece4295..3de35a82d 100644 --- a/apis/core/v1beta1/featureflagsource_types.go +++ b/apis/core/v1beta1/featureflagsource_types.go @@ -138,6 +138,10 @@ type Source struct { // Selector is a flag configuration selector used by grpc provider // +optional Selector string `json:"selector,omitempty"` + + // Interval is a flag configuration interval in seconds used by http provider + // +optional + Interval uint32 `json:"interval,omitempty"` } // FeatureFlagSourceStatus defines the observed state of FeatureFlagSource diff --git a/apis/core/v1beta1/featureflagsource_types_test.go b/apis/core/v1beta1/featureflagsource_types_test.go index 97cde443d..3ce532747 100644 --- a/apis/core/v1beta1/featureflagsource_types_test.go +++ b/apis/core/v1beta1/featureflagsource_types_test.go @@ -35,6 +35,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) { CertPath: "etc/cert.ca", ProviderID: "app", Selector: "source=database", + Interval: 5, }, }, SyncProviderArgs: []string{"arg1", "arg2"}, @@ -74,6 +75,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) { CertPath: "etc/cert.ca", ProviderID: "app", Selector: "source=database", + Interval: 5, }, }, SyncProviderArgs: []string{"arg1", "arg2"}, @@ -154,6 +156,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) { CertPath: "etc/cert.ca", ProviderID: "app", Selector: "source=database", + Interval: 5, }, { Source: "src2",