kubernetes-sigs / kustomize

Customization of kubernetes YAML configurations
Apache License 2.0
11.07k stars 2.26k forks source link

Localize plugins as Kustomizations #5277

Open annasong20 opened 1 year ago

annasong20 commented 1 year ago

Eschewed features

What would you like to have added?

The kustomize localize command should localize file references in built-in plugins, which are specified as Kustomizations.

The alpha version of the command only localizes file references in built-in plugins specified as a file or inline yaml. Built-in plugins are the Kubernetes resource versions of native Kustomize fields like patches and configMapGenerator. They can be specified under the generators, transformers, and validators Kustomization fields as the resource itself or a Kustomization that outputs said resource. When a built-in plugin is in the form of a Kustomization, the command needs to localize both the Kustomization fields that

Why is this needed?

This feature completes the set of files that kustomize localize can and needs to make available locally. This feature is implied as necessary to graduate the command to beta. See umbrella task #5125 and the command's KEP.

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

The only alternative is for the user to manually download and replace urls.

What other solutions have you considered?

The command could also blindly try to localize any values that look like file paths or urls, but this wouldn't be very safe for the user. Kustomize would then be checking the user's file system and making network requests in an unauthorized manner.

Anything else we should know?

This feature will likely need a code design discussion before implementation due to its complexity.

Feature ownership

annasong20 commented 1 year ago

/triage accepted

ezzoueidi commented 1 year ago

/assign

k8s-triage-robot commented 3 months ago

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

k8s-triage-robot commented 2 days ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale