Skip to content

[MISC] Improve k8s canonical DNS lookup (backport)#158

Merged
astrojuanlu merged 1 commit into8.4/edgefrom
juanlu/backport-fqdn-resolution
Mar 17, 2026
Merged

[MISC] Improve k8s canonical DNS lookup (backport)#158
astrojuanlu merged 1 commit into8.4/edgefrom
juanlu/backport-fqdn-resolution

Conversation

@astrojuanlu
Copy link
Copy Markdown
Contributor

Issue

Backports #138 to 8.4/edge

Solution

Checklist

  • I have added or updated any relevant documentation.
  • I have cleaned any remaining cloud resources from my accounts.

@astrojuanlu astrojuanlu added the enhancement New feature, UI change, or workload upgrade label Mar 17, 2026
@github-actions github-actions Bot added the Libraries: Out of sync The charm libs used are out-of-sync label Mar 17, 2026
@astrojuanlu astrojuanlu marked this pull request as ready for review March 17, 2026 12:41
Copy link
Copy Markdown
Contributor

@paulomach paulomach left a comment

Choose a reason for hiding this comment

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

Thanks

Replace getfqdn-based k8s hostname resolution
with a canonical-name lookup built on
getaddrinfo(AI_CANONNAME).

Handle resolver failures, keep the trailing
dot returned by DNS, and update the
Kubernetes unit tests for the charm,
provider, upgrade, and utility helpers.

Fixes #137

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
@astrojuanlu astrojuanlu force-pushed the juanlu/backport-fqdn-resolution branch from cab97ac to b2e42be Compare March 17, 2026 12:54
@astrojuanlu
Copy link
Copy Markdown
Contributor Author

No code changes (just a signoff) and all tests were passing before (!) so I'm merging

@astrojuanlu astrojuanlu merged commit fb79149 into 8.4/edge Mar 17, 2026
13 of 14 checks passed
@astrojuanlu astrojuanlu deleted the juanlu/backport-fqdn-resolution branch March 17, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, UI change, or workload upgrade Libraries: Out of sync The charm libs used are out-of-sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants