Skip to content

Use the container runtime API to run krm functions instead of docker commands. #5993

@coillteoir

Description

@coillteoir

Eschewed features

  • This issue is not requesting templating, unstuctured edits, build-time side-effects from args or env vars, or any other eschewed feature.

What would you like to have added?

Currently, KRM functions will use a docker command to run the specified image in a KRM function.

I propose instead of using a docker command, instead using the apis of the container runtime directly.

Why is this needed?

If the docker command isn't in your path, KRM functions will not run.

As more container runtimes arise, this poses a long term risk to the UX of KRM functions.

Image

Can you accomplish the motivating task without this feature, and if so, how?

  • Installing docker.
  • Creating a symlink between your container runtimes cli and 'docker'.

What other solutions have you considered?

Allowing for the container runtime command to be configurable via the kustomization or transformer yaml.

Anything else we should know?

No response

Feature ownership

  • I am interested in contributing this feature myself! 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions