Skip to content

Commit 18ac733

Browse files
dabumpmartin.coetzee
and
martin.coetzee
authored
feat: added interval to the openfeature api source (#619)
Signed-off-by: martin.coetzee <martin.coetzee@team.telstra.com> Co-authored-by: martin.coetzee <martin.coetzee@team.telstra.com>
1 parent b6daece commit 18ac733

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

apis/core/v1beta1/featureflagsource_types.go

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ type Source struct {
138138
// Selector is a flag configuration selector used by grpc provider
139139
// +optional
140140
Selector string `json:"selector,omitempty"`
141+
142+
// Interval is a flag configuration interval in seconds used by http provider
143+
// +optional
144+
Interval uint32 `json:"interval,omitempty"`
141145
}
142146

143147
// FeatureFlagSourceStatus defines the observed state of FeatureFlagSource

apis/core/v1beta1/featureflagsource_types_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) {
3535
CertPath: "etc/cert.ca",
3636
ProviderID: "app",
3737
Selector: "source=database",
38+
Interval: 5,
3839
},
3940
},
4041
SyncProviderArgs: []string{"arg1", "arg2"},
@@ -74,6 +75,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) {
7475
CertPath: "etc/cert.ca",
7576
ProviderID: "app",
7677
Selector: "source=database",
78+
Interval: 5,
7779
},
7880
},
7981
SyncProviderArgs: []string{"arg1", "arg2"},
@@ -154,6 +156,7 @@ func Test_FLagSourceConfiguration_Merge(t *testing.T) {
154156
CertPath: "etc/cert.ca",
155157
ProviderID: "app",
156158
Selector: "source=database",
159+
Interval: 5,
157160
},
158161
{
159162
Source: "src2",

0 commit comments

Comments
 (0)