Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

ingress: don't error if candidate group version is not available #4007

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

shashankram
Copy link
Member

Description:
If a candidate API GroupVersion (ex. networking.k8s.io/v1beta1) is not
available, don't error. Only error if none of the candidates are
available (already the case).
This is required for OSM to work in k8s v1.22, where the
networking.k8s.io/v1beta1 is deprecated.

Affected area:

Functional Area
Ingress [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

If a candidate API GroupVersion (ex. networking.k8s.io/v1beta1) is not
available, don't error. Only error if none of the candidates are
available (already the case).
This is required for OSM to work in k8s v1.22, where the
networking.k8s.io/v1beta1 is deprecated.

Signed-off-by: Shashank Ram <[email protected]>
@shashankram shashankram requested a review from a team as a code owner August 18, 2021 21:44
@shashankram shashankram added the bug-fix/backport-to=v0.9 Backport to release v0.9 label Aug 18, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #4007 (19b2863) into main (b24c335) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4007   +/-   ##
=======================================
  Coverage   67.53%   67.53%           
=======================================
  Files         204      204           
  Lines       11615    11611    -4     
=======================================
- Hits         7844     7842    -2     
+ Misses       3720     3718    -2     
  Partials       51       51           
Flag Coverage Δ
unittests 67.53% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/errcode/errcode.go 100.00% <ø> (ø)
pkg/ingress/client.go 79.82% <100.00%> (+1.85%) ⬆️
pkg/providers/kube/client.go 64.19% <0.00%> (-0.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b24c335...19b2863. Read the comment docs.

@shashankram shashankram merged commit f96e93d into openservicemesh:main Aug 18, 2021
@shashankram shashankram deleted the ingress-vercheck branch August 18, 2021 22:21
shashankram added a commit to shashankram/osm that referenced this pull request Aug 18, 2021
…nservicemesh#4007)

If a candidate API GroupVersion (ex. networking.k8s.io/v1beta1) is not
available, don't error. Only error if none of the candidates are
available (already the case).
This is required for OSM to work in k8s v1.22, where the
networking.k8s.io/v1beta1 is deprecated.

Signed-off-by: Shashank Ram <[email protected]>
@shashankram shashankram removed the bug-fix/backport-to=v0.9 Backport to release v0.9 label Aug 18, 2021
shashankram added a commit that referenced this pull request Aug 19, 2021
…) (#4008)

If a candidate API GroupVersion (ex. networking.k8s.io/v1beta1) is not
available, don't error. Only error if none of the candidates are
available (already the case).
This is required for OSM to work in k8s v1.22, where the
networking.k8s.io/v1beta1 is deprecated.

Signed-off-by: Shashank Ram <[email protected]>
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.

4 participants