You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or a Pull Request
No
Scope of your request
We use kustomize for kustomizing K8s resources, but also for other related declarative configuration that is K8s'ish, like kuttl TestSuite. I tried to do the same with our k3d config files without success.
There is an old Kustomize issue, that actually got worse in later versions of Kustomize, requiring all Kustomize resources to have a metadata.name property, and there seems to be no workaround at present. Trying to add metadata.name to the k3d config-file results in the following error: FATA[0000] Schema Validation failed for config file k3d-config.yml: - (root): Additional property metadata is not allowed , which makes a lot of sense.
To mend this, I would like to "please" kustomize and somehow allow metadata.name to be included in k3d config-files.
Describe the solution you'd like
What I suggest, is to move the existing name property to metadata.name in the k3d-config file format. It will definitely be a breaking change, but since the configuration is already versioned K8s'ish with apiVersion , this could work out.
Apply a JSON 6902 patch moving metadata.name to name in the last layer of my kustomization, but that does not work either. At least not in recent versions of Kustomize.
The text was updated successfully, but these errors were encountered:
Hi @erikgb , thanks for opening this issue!
As discussed via Slack, I introduced v1alpha4 now (see #944).
For adding this change yourself, you need to touch (at least) the following files:
I'm really curious about the way you use the config file with kustomize. Is it with the template command to dump a file, or is there any other tooling around it to automatically create a local cluster?
Is your feature request related to a problem or a Pull Request
No
Scope of your request
We use
kustomize
for kustomizing K8s resources, but also for other related declarative configuration that is K8s'ish, like kuttl TestSuite. I tried to do the same with our k3d config files without success.There is an old Kustomize issue, that actually got worse in later versions of Kustomize, requiring all Kustomize resources to have a
metadata.name
property, and there seems to be no workaround at present. Trying to addmetadata.name
to the k3d config-file results in the following error:FATA[0000] Schema Validation failed for config file k3d-config.yml: - (root): Additional property metadata is not allowed
, which makes a lot of sense.To mend this, I would like to "please"
kustomize
and somehow allowmetadata.name
to be included in k3d config-files.Describe the solution you'd like
What I suggest, is to move the existing
name
property tometadata.name
in the k3d-config file format. It will definitely be a breaking change, but since the configuration is already versioned K8s'ish withapiVersion
, this could work out.So:
instead of
Describe alternatives you've considered
metadata.name
toname
in the last layer of my kustomization, but that does not work either. At least not in recent versions of Kustomize.The text was updated successfully, but these errors were encountered: