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

Fix IP address truncation when using autodetection mode "k8s-internal-ip" #6228

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

Josh-Tigera
Copy link
Contributor

Description

This bug fix corrects the behaviour of calico-node to truncate/mask IP addresses when using the "k8s-internal-ip" autodetection setting.

New unit tests introduced to verify that both v4 and v6 addresses are returned as expected.

Related issues/PRs

fixes 6141 and 6142

Todos

  • Tests
  • Release note

Release Note

Fix IP address truncation when using autodetection method "k8s-internal-ip"

Reminder for the reviewer

Make sure that this PR has the correct labels and milestone set.

Every PR needs one docs-* label.

  • docs-pr-required: This change requires a change to the documentation that has not been completed yet.
  • docs-completed: This change has all necessary documentation completed.
  • docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

  • release-note-required: This PR has user-facing changes. Most PRs should have this label.
  • release-note-not-required: This PR has no user-facing changes.

Other optional labels:

  • cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
  • needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@Josh-Tigera Josh-Tigera added cherry-pick-candidate docs-not-required Docs not required for this change labels Jun 15, 2022
@Josh-Tigera Josh-Tigera requested a review from a team as a code owner June 15, 2022 18:23
@marvin-tigera marvin-tigera added this to the Calico v3.24.0 milestone Jun 15, 2022
@marvin-tigera marvin-tigera added the release-note-required Change has user-facing impact (no matter how small) label Jun 15, 2022
@remram44
Copy link

This has been backported as #6234 and is part of the 3.23.2 release

@caseydavenport caseydavenport added cherry-pick-completed PR has been cherry-picked and removed cherry-pick-candidate labels Jul 6, 2022
ruslanloman pushed a commit to ruslanloman/rke2-charts that referenced this pull request Aug 31, 2022
  - There is a bug with ip_autodetection mode "k8s-internal-ip" in
    calico 3.23.1 projectcalico/calico#6142 and it was fixed
    in 3.23.2 version projectcalico/calico#6228
ruslanloman pushed a commit to ruslanloman/rke2-charts that referenced this pull request Sep 2, 2022
  - There is a bug with ip_autodetection mode "k8s-internal-ip" in
    calico 3.23.1 projectcalico/calico#6142 and it was fixed
    in 3.23.2 version projectcalico/calico#6228

  - Update tigera-operator version to v1.27.12. It's latest version that
    supports calico 3.23.3
rbrtbnfgl pushed a commit to rancher/rke2-charts that referenced this pull request Sep 2, 2022
  - There is a bug with ip_autodetection mode "k8s-internal-ip" in
    calico 3.23.1 projectcalico/calico#6142 and it was fixed
    in 3.23.2 version projectcalico/calico#6228

  - Update tigera-operator version to v1.27.12. It's latest version that
    supports calico 3.23.3
github-actions bot pushed a commit to rancher/rke2-charts that referenced this pull request Sep 2, 2022
  - There is a bug with ip_autodetection mode "k8s-internal-ip" in
    calico 3.23.1 projectcalico/calico#6142 and it was fixed
    in 3.23.2 version projectcalico/calico#6228

  - Update tigera-operator version to v1.27.12. It's latest version that
    supports calico 3.23.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-completed PR has been cherry-picked docs-not-required Docs not required for this change release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect IPv4 detection
4 participants