-
Notifications
You must be signed in to change notification settings - Fork 302
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
updated ingress api version #1848
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kundan2707 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cezarygerard can you please spare your time for this review. |
@@ -53,7 +53,7 @@ Either shutdown the controller satisfying the Ingress, or use the | |||
`ingress.class` annotation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this annotation was deprecated in v1 in favor of a field https://docs.konghq.com/kubernetes-ingress-controller/latest/concepts/ingress-versions/#ingress-class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this public doc https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#deprecated_annotation, it describes we should still use ingress.class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kundan2707 we can also link to the GKE public docs here: https://cloud.google.com/kubernetes-engine/docs/how-to/custom-ingress-controller
@@ -174,7 +174,7 @@ $ kubectl exec test-701078429-s5kca -- curl --cacert /var/run/secrets/kubernetes | |||
"/apis/certificates.k8s.io", | |||
"/apis/certificates.k8s.io/v1alpha1", | |||
"/apis/extensions", | |||
"/apis/extensions/v1beta1", | |||
"/apis/networking.k8s.io/v1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to fix this output you have to update more apis that are no longer on that version
@aojea OK i will updated all required APIs and commit again |
@kundan2707: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
/assign @swetharepakula |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few other suggestions to make the yamls correct. Thanks for the PR!
@@ -33,7 +33,7 @@ It takes ~1m to spin up a loadbalancer (this includes acquiring the public IP), | |||
|
|||
Assume one creates the following simple Ingress: | |||
```yaml | |||
apiVersion: extensions/v1beta1 | |||
apiVersion: networking.k8s.io/v1 | |||
kind: Ingress | |||
metadata: | |||
name: test-ingress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add the annotation for this to be valid yaml. In v1 either the annotation or the ingress class name field is required, but GKE doesn't use the class name.
@@ -53,7 +53,7 @@ Either shutdown the controller satisfying the Ingress, or use the | |||
`ingress.class` annotation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kundan2707 we can also link to the GKE public docs here: https://cloud.google.com/kubernetes-engine/docs/how-to/custom-ingress-controller
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Updated apiversion for ingress from extensions/v1beta1 to networking.k8s.io/v1beta1
Fixes #1816