Skip to content

Say which half of the CNI manifest lookup failed - #2178

Closed
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:k8s-manifest-lookup-says-what-failed
Closed

Say which half of the CNI manifest lookup failed#2178
MayCXC wants to merge 1 commit into
apple:mainfrom
MayCXC:k8s-manifest-lookup-says-what-failed

Conversation

@MayCXC

@MayCXC MayCXC commented Aug 27, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

The CNI manifest ships beside the plugin binary, so finding it needs both the plugin that the running executable belongs to and the resources directory of that installation. One message covered the absence of either, naming neither the executable it looked for nor what was installed, and a run that hit it left nothing to tell the two apart: an installation missing its resources and a binary running from outside any installation produce the same sentence.

Each half reports what it was looking for now.

Diagnostics only; no behaviour changes.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Both halves exercised by running the k8s path from an executable outside an installation, and from an installation with its resources directory removed.

Integration suite: 397 passed. Unit suite: 772 passed. make fmt, make check clean.

The manifest ships beside the plugin binary, so finding it needs both the
plugin that the running executable belongs to and the resources directory
of that installation. One message covered the absence of either, naming
neither the executable it looked for nor what was installed, and a run
that hit it left nothing to tell the two apart. Each half now reports what
it was looking for.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants