Commit aef1010 1 parent dcab14a commit aef1010 Copy full SHA for aef1010
File tree 6 files changed +29
-20
lines changed
controllers/core/flagd/resources
test/e2e/chainsaw/flagd-with-ingress-default-paths
6 files changed +29
-20
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,19 @@ type IngressSpec struct {
76
76
PathType networkingv1.PathType `json:"pathType,omitempty"`
77
77
78
78
// FlagdPath is the path to be used for accessing the flagd flag evaluation API
79
+ // Default: /flagd.evaluation.v1.Service
79
80
// +optional
80
81
FlagdPath string `json:"flagdPath,omitempty"`
81
82
82
83
// OFREPPath is the path to be used for accessing the OFREP API
84
+ // Default: /ofrep
83
85
// +optional
84
- OFREPPath string `json:"ofrepPath"`
86
+ OFREPPath string `json:"ofrepPath,omitempty "`
85
87
86
88
// SyncPath is the path to be used for accessing the sync API
89
+ // Default: /flagd.sync.v1.Service
87
90
// +optional
88
- SyncPath string `json:"syncPath"`
91
+ SyncPath string `json:"syncPath,omitempty "`
89
92
}
90
93
91
94
// FlagdStatus defines the observed state of Flagd
Original file line number Diff line number Diff line change 56
56
description : Enabled enables/disables the ingress for flagd
57
57
type : boolean
58
58
flagdPath :
59
- description : FlagdPath is the path to be used for accessing the
60
- flagd flag evaluation API
59
+ description : |-
60
+ FlagdPath is the path to be used for accessing the flagd flag evaluation API
61
+ Default: /flagd.evaluation.v1.Service
61
62
type : string
62
63
hosts :
63
64
description : Hosts list of hosts to be added to the ingress
@@ -69,16 +70,18 @@ spec:
69
70
class to be used for flagd
70
71
type : string
71
72
ofrepPath :
72
- description : OFREPPath is the path to be used for accessing the
73
- OFREP API
73
+ description : |-
74
+ OFREPPath is the path to be used for accessing the OFREP API
75
+ Default: /ofrep
74
76
type : string
75
77
pathType :
76
78
description : PathType is the path type to be used for the ingress
77
79
rules
78
80
type : string
79
81
syncPath :
80
- description : SyncPath is the path to be used for accessing the
81
- sync API
82
+ description : |-
83
+ SyncPath is the path to be used for accessing the sync API
84
+ Default: /flagd.sync.v1.Service
82
85
type : string
83
86
tls :
84
87
description : TLS configuration for the ingress
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ import (
6
6
7
7
api "github.com/open-feature/open-feature-operator/apis/core/v1beta1"
8
8
"github.com/open-feature/open-feature-operator/common"
9
- "github.com/open-feature/open-feature-operator/controllers/core/flagd/common"
9
+ resources "github.com/open-feature/open-feature-operator/controllers/core/flagd/common"
10
10
networkingv1 "k8s.io/api/networking/v1"
11
11
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
12
12
"sigs.k8s.io/controller-runtime/pkg/client"
13
13
)
14
14
15
15
const (
16
- defaultFlagdPath = "/flagd"
16
+ defaultFlagdPath = "/flagd.evaluation.v1.Service "
17
17
defaultOFREPPath = "/ofrep"
18
- defaultSyncPath = "/sync"
18
+ defaultSyncPath = "/flagd. sync.v1.Service "
19
19
)
20
20
21
21
type FlagdIngress struct {
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func TestFlagdIngress_getIngress(t *testing.T) {
71
71
HTTP : & networkingv1.HTTPIngressRuleValue {
72
72
Paths : []networkingv1.HTTPIngressPath {
73
73
{
74
- Path : "/flagd" ,
74
+ Path : "/flagd.evaluation.v1.Service " ,
75
75
PathType : & pathType ,
76
76
Backend : networkingv1.IngressBackend {
77
77
Service : & networkingv1.IngressServiceBackend {
@@ -97,7 +97,7 @@ func TestFlagdIngress_getIngress(t *testing.T) {
97
97
},
98
98
},
99
99
{
100
- Path : "/sync" ,
100
+ Path : "/flagd. sync.v1.Service " ,
101
101
PathType : & pathType ,
102
102
Backend : networkingv1.IngressBackend {
103
103
Service : & networkingv1.IngressServiceBackend {
@@ -119,7 +119,7 @@ func TestFlagdIngress_getIngress(t *testing.T) {
119
119
HTTP : & networkingv1.HTTPIngressRuleValue {
120
120
Paths : []networkingv1.HTTPIngressPath {
121
121
{
122
- Path : "/flagd" ,
122
+ Path : "/flagd.evaluation.v1.Service " ,
123
123
PathType : & pathType ,
124
124
Backend : networkingv1.IngressBackend {
125
125
Service : & networkingv1.IngressServiceBackend {
@@ -145,7 +145,7 @@ func TestFlagdIngress_getIngress(t *testing.T) {
145
145
},
146
146
},
147
147
{
148
- Path : "/sync" ,
148
+ Path : "/flagd. sync.v1.Service " ,
149
149
PathType : & pathType ,
150
150
Backend : networkingv1.IngressBackend {
151
151
Service : & networkingv1.IngressServiceBackend {
Original file line number Diff line number Diff line change @@ -942,7 +942,8 @@ Ingress
942
942
<td><b>flagdPath</b></td>
943
943
<td>string</td>
944
944
<td>
945
- FlagdPath is the path to be used for accessing the flagd flag evaluation API<br/>
945
+ FlagdPath is the path to be used for accessing the flagd flag evaluation API
946
+ Default: /flagd.evaluation.v1.Service<br />
946
947
</td >
947
948
<td >false</td >
948
949
</tr ><tr >
@@ -963,7 +964,8 @@ Ingress
963
964
<td ><b >ofrepPath</b ></td >
964
965
<td >string</td >
965
966
<td >
966
- OFREPPath is the path to be used for accessing the OFREP API<br/>
967
+ OFREPPath is the path to be used for accessing the OFREP API
968
+ Default: /ofrep<br />
967
969
</td >
968
970
<td >false</td >
969
971
</tr ><tr >
@@ -977,7 +979,8 @@ Ingress
977
979
<td ><b >syncPath</b ></td >
978
980
<td >string</td >
979
981
<td >
980
- SyncPath is the path to be used for accessing the sync API<br/>
982
+ SyncPath is the path to be used for accessing the sync API
983
+ Default: /flagd.sync.v1.Service<br />
981
984
</td >
982
985
<td >false</td >
983
986
</tr ><tr >
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ spec:
104
104
name : flagd-sample
105
105
port :
106
106
number : 8013
107
- path : /flagd
107
+ path : /flagd.evaluation.v1.Service
108
108
pathType : ImplementationSpecific
109
109
- backend :
110
110
service :
@@ -118,5 +118,5 @@ spec:
118
118
name : flagd-sample
119
119
port :
120
120
number : 8015
121
- path : /sync
121
+ path : /flagd. sync.v1.Service
122
122
pathType : ImplementationSpecific
You can’t perform that action at this time.
0 commit comments