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" #6234

Merged
merged 1 commit into from Jun 16, 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 release-note-required Change has user-facing impact (no matter how small) docs-not-required Docs not required for this change labels Jun 16, 2022
@Josh-Tigera Josh-Tigera requested a review from a team as a code owner June 16, 2022 16:37
@marvin-tigera marvin-tigera added this to the Calico v3.23.2 milestone Jun 16, 2022
@netlify
Copy link

netlify bot commented Jun 16, 2022

Deploy Preview for calico-tigera canceled.

Name Link
🔨 Latest commit 615863a
🔍 Latest deploy log https://app.netlify.com/sites/calico-tigera/deploys/62ab5c51cd672f0009a0416a

@netlify
Copy link

netlify bot commented Jun 16, 2022

Deploy Preview for calico-v3-23 canceled.

Name Link
🔨 Latest commit 615863a
🔍 Latest deploy log https://app.netlify.com/sites/calico-v3-23/deploys/62ab5c51eaa9920009d2b7b2

@Josh-Tigera Josh-Tigera changed the title Return unmasked CIDR when using autodetection mode "k8s-internal-ip" Fix IP address truncation when using autodetection mode "k8s-internal-ip" Jun 16, 2022
@marvin-tigera marvin-tigera merged commit ff2a5df into release-v3.23 Jun 16, 2022
@caseydavenport caseydavenport deleted the josh.ipautodetect-v3.23 branch June 16, 2022 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required Docs not required for this change merge-when-ready 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.

None yet

3 participants