Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Set ingress class name when we need it #732

Merged
merged 1 commit into from Oct 4, 2022

Conversation

cjellick
Copy link
Member

@cjellick cjellick commented Oct 4, 2022

A common scenario we see is that even though ingress-nginx is installed,
it isn't set as the default ingress class. In this case, when we create an
ingress, it never gets picked up.

So, to make ingress work in this scenario, if we detect that the cluster
has exactly one ingressClass and it isn't set at the default, we are
just going to assume the user wants to use it and set it when we create
an ingress.

Bonus: found a bug where if Docker Desktop has an ingress already
installed, we still set acorn's ingress class name to "traefik". We
should only set the ingressClassName field for Docker Desktop if we are
installing traefik.

Signed-off-by: Craig Jellick craig@acorn.io

A common scenario we see is that even though ingress-nginx is installed,
it isn't set as the default ingress class. In this case, when we create an
ingress, it never gets picked up.

So, to make ingress work in this scenario, if we detect that the cluster
has exactly one ingressClass and it isn't set at the default, we are
just going to assume the user wants to use it and set it when we create
an ingress.

Bonus: found a bug where if Docker Desktop has an ingress already
installed, we still set acorn's ingress class name to "traefik". We
should only set the ingressClassName field for Docker Desktop if we are
installing traefik.

Signed-off-by: Craig Jellick <craig@acorn.io>
@cjellick
Copy link
Member Author

cjellick commented Oct 4, 2022

addresses #727

@cjellick cjellick merged commit eb081a5 into acorn-io:main Oct 4, 2022
@cjellick cjellick deleted the ingress-fixes branch November 28, 2022 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants