-
Notifications
You must be signed in to change notification settings - Fork 880
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
Support Ingress from Networking API version #1529
Conversation
26be242
to
de0b43b
Compare
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
de0b43b
to
91525fb
Compare
Codecov Report
@@ Coverage Diff @@
## master #1529 +/- ##
==========================================
+ Coverage 81.58% 81.76% +0.17%
==========================================
Files 112 113 +1
Lines 15169 15563 +394
==========================================
+ Hits 12376 12725 +349
- Misses 2136 2176 +40
- Partials 657 662 +5
Continue to review full report at Codecov.
|
03a37d7
to
2004d21
Compare
Signed-off-by: Leonardo Luz Almeida <[email protected]>
2004d21
to
be512ab
Compare
Signed-off-by: Leonardo Luz Almeida <[email protected]>
e26b2af
to
a3dbbd4
Compare
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
utils/defaults/defaults.go
Outdated
|
||
func GetIngressAPIVersion() string { | ||
return ingressAPIVersion | ||
} | ||
|
||
func SetIngressAPIVersion(apiVersion string) { | ||
ingressAPIVersion = apiVersion | ||
} |
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.
I have a proposal to make this easier for users to improve the UX. Instead of making users explicitly specify this, could we instead have a function called:
func DetermineIngressAPIVersion()
DetermineIngressAPIVersion()
would be called in main.go
and the way it would work is that it would first attempt a list
on networking.io, but if that errors with resource not found, it would fall back to extensions.
I think we want to stem off all of the support/questions that we get where we have to tell people to use the flag. We can still have the flag, in case people want to explicitly use a specific version for some reason, but I think the default behavior should be to automatically pick for the user.
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.
Good idea. I'm thinking that just instead of doing a list
attempt, implementing it by checking the server version with discovery.ServerVersionInterface
. Everything above 1.19 will automatically use the NetworkIngress mode. How that sounds?
Signed-off-by: Leonardo Luz Almeida <[email protected]>
@jessesuen just pushed a new commit implementing the improvements. Pls take a look. |
Signed-off-by: Leonardo Luz Almeida <[email protected]>
e40fcf5
to
71d522e
Compare
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.
LGTM. There's one conflict that happened after merging in another PR but otherwise loogs good to go.
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…oproj#1529) Signed-off-by: Kiran Meduri <[email protected]>
…) (#1612) Signed-off-by: Kiran Meduri <[email protected]>
…oproj#1529) (argoproj#1612) Signed-off-by: Kiran Meduri <[email protected]> Signed-off-by: Rohit Agrawal <[email protected]>
…oproj#1529) (argoproj#1612) Signed-off-by: Kiran Meduri <[email protected]> Signed-off-by: Rohit Agrawal <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
…oproj#1529) (argoproj#1612) Signed-off-by: Kiran Meduri <[email protected]>
Signed-off-by: Leonardo Luz Almeida <[email protected]>
…oproj#1529) (argoproj#1612) Signed-off-by: Kiran Meduri <[email protected]>
Overview
This is related to #1507
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.