Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add class annotations to K8S plugin examples #2347

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

rainest
Copy link
Contributor

@rainest rainest commented Oct 1, 2020

Add kubernetes.io/ingress.class: kong annotations to Ingress, KongConsumer, and global KongClusterPlugin examples. As of controller 0.10.0, this annotation is required by default on these resources, and our examples should include them as such. Adding this annotation
does not create issues for older versions--they were simply more permissive about when they permitted resources that lacked them by default, but still work fine when the annotation is present.

Minor note is that this annotation should have a different value when using a non-standard class, e.g. kubernetes.io/ingress.class: mycustomclass. Using kubernetes.io/ingress.class: kong with a custom class will in fact exclude those resources when using some other class. However, as users must intentionally set a custom class and adapt examples elsewhere to their environment, we can reasonably expect them to be aware that they need to change the value if they use one.

Submitted as a result of Kong/kubernetes-ingress-controller#884

Add "kubernetes.io/ingress.class: kong" annotations to Ingress,
KongConsumer, and global KongClusterPlugin examples. As of controller
0.10.0, this annotation is required by default on these resources,
and our examples should include them as such. Adding this annotation
does not create issues for older versions--they were simply more
permissive about when they permitted resources that lacked them by
default, but still work fine when the annotation is present.
@netlify
Copy link

netlify bot commented Oct 1, 2020

Deploy preview for kongdocs ready!

Built with commit e2d78aa

https://deploy-preview-2347--kongdocs.netlify.app

Copy link
Contributor

@lena-larionova lena-larionova left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the update!

@rainest rainest merged commit 57c80e3 into master Oct 2, 2020
@rainest rainest deleted the feat/class-annotate-k8s-examples branch October 2, 2020 19:16
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.

2 participants