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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 馃挜 BREAKING CHANGE on healthchecks and traefik port #898

Merged
merged 3 commits into from
Aug 1, 2023
Merged

fix: 馃挜 BREAKING CHANGE on healthchecks and traefik port #898

merged 3 commits into from
Aug 1, 2023

Conversation

mloiseleur
Copy link
Contributor

@mloiseleur mloiseleur commented Jul 28, 2023

What does this PR do?

  1. It move optional healthchecksPort and healthchecksScheme to deployment section.
  2. It ensures that traefik, web or websecure ports can be nullified

Motivation

  1. From a Kubernetes perspective, they are in fact linked to deployment, not a port
  2. Fix It's impossible to disable a port defined in the default config by setting it to null聽#890 in a more robust way

More

  • Yes, I updated the tests accordingly
  • Yes, I ran make test and all the tests passed

@mloiseleur mloiseleur added kind/bug/fix kind/breaking This PR introduce a breaking change labels Jul 28, 2023
@mloiseleur mloiseleur changed the title fix: 馃悰 馃挜 BREAKING CHANGE on healthchecks and traefik port fix: 馃挜 BREAKING CHANGE on healthchecks and traefik port Jul 28, 2023
Copy link

@mantoine96 mantoine96 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I think the change looks a lot better now and feels like a robust solution. I've left 2 minor nits on typos, but otherwise this looks exactly like what we need to address #890 once and for all

traefik/templates/_podtemplate.tpl Outdated Show resolved Hide resolved
traefik/tests/ports-config_test.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@darkweaver87 darkweaver87 left a comment

Choose a reason for hiding this comment

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

LGTM

mloiseleur and others added 3 commits August 1, 2023 06:46
Co-authored-by: Matthieu ANTOINE <matthieu@matthieu-antoine.me>
Co-authored-by: Matthieu ANTOINE <matthieu@matthieu-antoine.me>
@traefiker traefiker merged commit d335f72 into traefik:master Aug 1, 2023
1 check passed
@mloiseleur mloiseleur deleted the fix/port_disabling branch August 1, 2023 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/breaking This PR introduce a breaking change kind/bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It's impossible to disable a port defined in the default config by setting it to null
4 participants