Skip to content

Adopt the ko-built calico image#4805

Closed
caseydavenport wants to merge 3 commits into
tigera:masterfrom
caseydavenport:casey-ko-prototype
Closed

Adopt the ko-built calico image#4805
caseydavenport wants to merge 3 commits into
tigera:masterfrom
caseydavenport:casey-ko-prototype

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

@caseydavenport caseydavenport commented May 13, 2026

Two changes needed in the operator before the calico/calico image can ship from ko (see projectcalico/calico#12710):

  • The combined-image command path switches from /usr/bin/calico to a bare calico so it resolves via PATH. The legacy Dockerfile build puts the binary at /usr/bin/calico; the ko-built image puts it at /ko-app/calico. Both directories are on PATH, so manifests, probes, init containers, and lifecycle hooks all work either way. Same treatment for the csi-node-driver-registrar command.
  • The CSI driver now picks up csi-node-driver-registrar from a standalone OSS image (calico/node-driver-registrar), since the ko-built calico/calico no longer carries the binary. Enterprise keeps using the combined tigera/calico image (registrar is still bundled there).
None

Switches CalicoBinaryPath (and the csi-node-driver-registrar command) from
absolute paths to bare commands so they resolve via PATH. Keeps us agnostic
to where the binary lives in the image: legacy Dockerfile builds use
/usr/bin/calico, ko-built images use /ko-app/calico. Both paths are on PATH.

Companion to the ko-build prototype in projectcalico/calico#12710.
@marvin-tigera marvin-tigera added this to the v1.43.0 milestone May 13, 2026
@caseydavenport caseydavenport marked this pull request as ready for review May 20, 2026 18:42
@caseydavenport caseydavenport requested a review from a team as a code owner May 20, 2026 18:42
The csi-node-driver-registrar binary is being carved out of calico/calico
into its own image (calico/node-driver-registrar) on the OSS side.
ResolveImages for the CSI driver now picks up the standalone registrar
component for OSS variants (and its FIPS counterpart when FIPS is on);
Enterprise keeps using the combined tigera/calico image since the binary
is still bundled there.

Companion to projectcalico/calico#12710.
@caseydavenport caseydavenport changed the title Resolve combined-image binary via PATH instead of /usr/bin/calico Adapt CSI driver for ko-built calico image May 20, 2026
@caseydavenport caseydavenport changed the title Adapt CSI driver for ko-built calico image Adopt the ko-built calico image May 20, 2026
@caseydavenport
Copy link
Copy Markdown
Member Author

Closing - depends on projectcalico/calico#12710 which was closed (benchmark numbers didn't justify the blast radius).

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