Skip to content

Commit 667c819

Browse files
authored
Allow all paths for Unleash API ingress (#64)
1 parent 7faa352 commit 667c819

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/unleash/resources.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ func NewUnleashSpec(
117117
ApiIngress: unleashv1.IngressConfig{
118118
Enabled: true,
119119
Host: fmt.Sprintf("%s-%s", teamName, c.Unleash.InstanceAPIIngressHost),
120-
Path: "/api",
120+
// Allow access to /health endpoint, change to /api when https://github.com/nais/unleasherator/issues/100 is resolved
121+
Path: "/",
121122
Class: c.Unleash.InstanceAPIIngressClass,
122123
},
123124
NetworkPolicy: unleashv1.NetworkPolicyConfig{

pkg/unleash/resources_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func TestNewUnleashSpec(t *testing.T) {
133133
ApiIngress: unleashv1.IngressConfig{
134134
Enabled: true,
135135
Host: "my-team-unleash-api.example.com",
136-
Path: "/api",
136+
Path: "/",
137137
Class: "unleash-api-ingress-class",
138138
},
139139
NetworkPolicy: unleashv1.NetworkPolicyConfig{

0 commit comments

Comments
 (0)