generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: ingress state build failure when ingress class non-existent (#33
) * Avoid ingress state build failure when ingresses reference non-existent ingress classes Signed-off-by: Michael Tweten <Michael.Tweten@oracle.com> * Test case file update - Update test-ingress-state_withnamedclasses.yaml --------- Signed-off-by: Michael Tweten <Michael.Tweten@oracle.com> Co-authored-by: Inbaraj S <contactsinbaraj@gmail.com>
- Loading branch information
Showing
3 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# | ||
# OCI Native Ingress Controller | ||
# | ||
# Copyright (c) 2023 Oracle America, Inc. and its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ | ||
# | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-state | ||
namespace: default | ||
spec: | ||
ingressClassName: default-ingress-class | ||
tls: | ||
- hosts: | ||
- foo.bar.com | ||
secretName: secret_name | ||
rules: | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/PrefixEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 80 | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/ExactEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 70 | ||
--- | ||
|
||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-state-excluded | ||
namespace: default | ||
spec: | ||
ingressClassName: missing-ingress-class | ||
tls: | ||
- hosts: | ||
- foo.bar.com | ||
secretName: secret_name | ||
rules: | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/PrefixEcho1/aa" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 80 | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/ExactEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 90 | ||
- http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/PrefixEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 100 | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-state-new | ||
namespace: default | ||
spec: | ||
ingressClassName: default-ingress-class | ||
tls: | ||
- hosts: | ||
- foo.bar.com | ||
secretName: secret_name | ||
rules: | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/PrefixEcho1/aa" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 80 | ||
- host: "foo.bar.com" | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/ExactEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 90 | ||
- http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/PrefixEcho1" | ||
backend: | ||
service: | ||
name: tls-test | ||
port: | ||
number: 100 |