contour icon indicating copy to clipboard operation
contour copied to clipboard

Inspect loadbalancer address from Envoy ingress objects

Open hligit opened this issue 1 year ago • 15 comments

Contour sets load balancer address in Ingress/HTTPProxy object's status. The load balancer address is extracted from Envoy Service object's status. This doesn't work in configuration that Envoy Service is of type ClusterIP and an Envoy Ingress object is used for inbound. This patch adds support for inspecting the Envoy Ingress object for setting load balancer address.

A new flag --load-balancer-status is introduced as suggested by @tsaarni in https://github.com/projectcontour/contour/pull/5083#issuecomment-1700491125

Flag --load-balancer-status takes value in one of below formats:

  1. hostname:fqdn1[,fqdn2]: This provides the same functionality as --ingress-status-address.
  2. sevice:namespace/name: same as flags envoy-service-name and envoy-service-namespace combined.
  3. ingress:namespace/name: new feature for getting address from Ingress objects.

Since the new flag covers functionality of some existing flags, if both --load-balancer-status and --ingress-status-address or envoy-service-name/namespace are specified, only value of --load-balancer-status is used and a warning message is logged.

This is based on kahirokunn's PR https://github.com/projectcontour/contour/pull/5083 .

Fixes #4952

hligit avatar Nov 25 '23 10:11 hligit

Hi @hligit! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace

github-actions[bot] avatar Nov 25 '23 11:11 github-actions[bot]

Codecov Report

Attention: Patch coverage is 19.87952% with 133 lines in your changes are missing coverage. Please review.

Project coverage is 78.28%. Comparing base (4aee35a) to head (9640ce1). Report is 263 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5987      +/-   ##
==========================================
- Coverage   78.62%   78.28%   -0.34%     
==========================================
  Files         138      138              
  Lines       19631    19809     +178     
==========================================
+ Hits        15434    15508      +74     
- Misses       3894     3998     +104     
  Partials      303      303              
Files Coverage Δ
cmd/contour/servecontext.go 83.70% <100.00%> (+0.03%) :arrow_up:
internal/provisioner/model/names.go 100.00% <100.00%> (ø)
...ernal/provisioner/objects/deployment/deployment.go 89.07% <100.00%> (+0.33%) :arrow_up:
pkg/config/parameters.go 86.06% <ø> (ø)
internal/k8s/statusaddress.go 60.78% <0.00%> (-19.12%) :arrow_down:
cmd/contour/serve.go 20.98% <28.71%> (+1.63%) :arrow_up:

... and 11 files with indirect coverage changes

codecov[bot] avatar Nov 28 '23 11:11 codecov[bot]

Thanks @tsaarni for reviewing and the guidance! Sorry for my late response!

I've addressed the comments in amended commits. There is one issue regarding flag precedence in my reply of your inline comment.

hligit avatar Dec 05 '23 22:12 hligit

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Jan 15 '24 00:01 github-actions[bot]

keep

kahirokunn avatar Jan 15 '24 01:01 kahirokunn

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Feb 06 '24 00:02 github-actions[bot]

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Feb 21 '24 00:02 github-actions[bot]

keep

kahirokunn avatar Feb 21 '24 00:02 kahirokunn

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Mar 12 '24 00:03 github-actions[bot]

keep

kahirokunn avatar Mar 12 '24 00:03 kahirokunn

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Apr 12 '24 00:04 github-actions[bot]

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Apr 30 '24 00:04 github-actions[bot]

keep

kahirokunn avatar Apr 30 '24 01:04 kahirokunn

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar May 20 '24 00:05 github-actions[bot]

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Ensure your PR is passing all CI checks. PRs that are fully green are more likely to be reviewed. If you are having trouble with CI checks, reach out to the #contour channel in the Kubernetes Slack workspace.
  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

github-actions[bot] avatar Jun 19 '24 00:06 github-actions[bot]