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

OKE-29394 Ingress state build failure when ingress reference non-existent ingress class #40

Closed
wants to merge 1 commit into from

Conversation

Inbaraj-S
Copy link
Contributor

  • Added code to skip ingress if no usable ingressclass is found.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 1, 2024
Copy link

github-actions bot commented Feb 1, 2024

Pull Request Test Coverage Report for Build 7748677018

  • 0 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 65.323%

Totals Coverage Status
Change from base Build 7725218408: 0.06%
Covered Lines: 2236
Relevant Lines: 3423

💛 - Coveralls

if ingIc != nil && ingressClass.Name == ingIc.Name && !util.IsIngressDeleting(ing) {
ingressGroup = append(ingressGroup, ing)
klog.Errorf("IngressClass not found for ingress: %s. Skipping ingress.", ing.Name)
} else {
Copy link
Contributor

@nirpai nirpai Feb 2, 2024

Choose a reason for hiding this comment

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

You can add a 'continue' in case of error to skip the remaining part of the iteration and remove the else clause?

port:
number: 100
---
apiVersion: networking.k8s.io/v1
Copy link
Contributor

@nirpai nirpai Feb 2, 2024

Choose a reason for hiding this comment

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

Thinking this is a sequential processing, can we add ingress 'ingress-state-excluded' in the middle and make sure the last ingress 'ingress-state-new' is processed?

@Inbaraj-S
Copy link
Contributor Author

Duplicate.
#33

@Inbaraj-S Inbaraj-S closed this Feb 2, 2024
@Inbaraj-S Inbaraj-S deleted the oke-29394-ingress-state-build-failure branch February 6, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants