Skip to content

Conversation

@nicksnyder
Copy link
Contributor

@nicksnyder nicksnyder commented Aug 22, 2022

A customer reported issues when they tried to set ingressClassName:

Error: INSTALLATION FAILED: Ingress.extensions "sourcegraph-frontend" is invalid: annotations.kubernetes.io/ingress.class: Invalid value: "nginx": can not be set when the class field is also set

The solution is to set annotations.kubernetes.io/ingress.class to null.

This PR updates the documentation to make this more clear.

Checklist

Test plan

This is just updating the documentation.

@nicksnyder nicksnyder requested a review from michaellzc August 22, 2022 23:41
@nicksnyder nicksnyder enabled auto-merge (squash) August 22, 2022 23:50
Copy link
Member

@michaellzc michaellzc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

would you also help fixing this example? https://github.com/sourcegraph/deploy-sourcegraph-helm/blob/main/charts/sourcegraph/examples/ingress/override.yaml

it configures annotation and ingressClassName at the same time

@nicksnyder nicksnyder merged commit 411f4b6 into main Aug 22, 2022
@nicksnyder nicksnyder deleted the ns/nginx branch August 22, 2022 23:54
nicksnyder added a commit that referenced this pull request Aug 23, 2022
@nicksnyder
Copy link
Contributor Author

Thanks for flagging that example! Updating here: #166

nicksnyder added a commit that referenced this pull request Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants