-
Notifications
You must be signed in to change notification settings - Fork 150
chore(rest-api): Add ingress based TLS support for REST API #3351
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
Open
thossain-nv
wants to merge
3
commits into
NVIDIA:main
Choose a base branch
from
thossain-nv:chore/rest-api-tls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -95,17 +95,25 @@ fi | |
|
|
||
| # cert-manager, ESO, MetalLB: discover by known deployment names | ||
| if [[ -z "${CERT_MANAGER_NS:-}" ]]; then | ||
| CERT_MANAGER_NS=$(kubectl get deployment cert-manager -A \ | ||
| CERT_MANAGER_NS=$(kubectl get deployment -A \ | ||
| --field-selector metadata.name=cert-manager \ | ||
| -o jsonpath='{.items[0].metadata.namespace}' 2>/dev/null || printf 'cert-manager') | ||
| fi | ||
| if [[ -z "${ESO_NS:-}" ]]; then | ||
| ESO_NS=$(kubectl get deployment external-secrets -A \ | ||
| ESO_NS=$(kubectl get deployment -A \ | ||
| --field-selector metadata.name=external-secrets \ | ||
| -o jsonpath='{.items[0].metadata.namespace}' 2>/dev/null || printf 'external-secrets') | ||
| fi | ||
| if [[ -z "${METALLB_NS:-}" ]]; then | ||
| METALLB_NS=$(kubectl get deployment metallb-controller -A \ | ||
| METALLB_NS=$(kubectl get deployment -A \ | ||
| --field-selector metadata.name=metallb-controller \ | ||
| -o jsonpath='{.items[0].metadata.namespace}' 2>/dev/null || printf 'metallb-system') | ||
| fi | ||
| if [[ -z "${INGRESS_NGINX_NS:-}" ]]; then | ||
| INGRESS_NGINX_NS=$(kubectl get deployment -A \ | ||
| --field-selector metadata.name=ingress-nginx-controller \ | ||
| -o jsonpath='{.items[0].metadata.namespace}' 2>/dev/null || printf 'ingress-nginx') | ||
| fi | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| printf " %-26s %s\n" "NICo namespace:" "${NICO_NS}" | ||
| printf " %-26s %s\n" "vault namespace:" "${VAULT_NS}" | ||
|
|
@@ -114,6 +122,7 @@ printf " %-26s %s\n" "postgres namespace:" "${POSTGRES_NS}" | |
| printf " %-26s %s\n" "cert-manager ns:" "${CERT_MANAGER_NS}" | ||
| printf " %-26s %s\n" "external-secrets ns:" "${ESO_NS}" | ||
| printf " %-26s %s\n" "metallb ns:" "${METALLB_NS}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to |
||
| printf " %-26s %s\n" "ingress-nginx ns:" "${INGRESS_NGINX_NS:-not installed}" | ||
|
|
||
| # -------------------------------------------------------------------------- | ||
| # Test helpers | ||
|
|
@@ -241,6 +250,14 @@ else | |
| fail "daemonset/metallb-speaker: ${_ready:-0}/${_desired} ready" | ||
| fi | ||
|
|
||
| if [[ -n "${INGRESS_NGINX_NS:-}" ]]; then | ||
| section "ingress-nginx" | ||
| _check_deployment "${INGRESS_NGINX_NS}" ingress-nginx-controller | ||
| else | ||
| section "ingress-nginx" | ||
| skip "not installed" | ||
| fi | ||
|
|
||
| # -------------------------------------------------------------------------- | ||
| # 2. Vault | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
This file contains hidden or 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 hidden or 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,23 @@ | ||
| # ============================================================================= | ||
| # operators/values/ingress-nginx.yaml — ingress-nginx Helm chart static values | ||
| # | ||
| # Optional cluster-level Ingress controller for NICo REST ingress exposure. | ||
| # The controller Service is type LoadBalancer and is expected to receive an | ||
| # external IP from MetalLB. | ||
| # | ||
| # Chart: ingress-nginx/ingress-nginx 4.12.1 | ||
| # ============================================================================= | ||
|
|
||
| controller: | ||
| ingressClassResource: | ||
| name: nginx | ||
| enabled: true | ||
| default: false | ||
| controllerValue: k8s.io/ingress-nginx | ||
| ingressClass: nginx | ||
| watchIngressWithoutClass: false | ||
| service: | ||
| type: LoadBalancer | ||
| externalTrafficPolicy: Cluster | ||
| admissionWebhooks: | ||
| enabled: true |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.