Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Allow specifying kubecfg cluster within jsonnet files #273

Open
steeling opened this issue Nov 11, 2019 · 0 comments
Open

Allow specifying kubecfg cluster within jsonnet files #273

steeling opened this issue Nov 11, 2019 · 0 comments

Comments

@steeling
Copy link

Specifying the cluster context within jsonnet files mitigates risk of pushing the wrong file to the wrong cluster, potentially overwriting kubernetes resources in a destructive way.

This could be done in the walk method, and looking for a top level field with a specific name, or we could place metadata within a configmap in a special namespace and with a special name.

We could default the name to something like "cluster-metadata", and allow overriding via a flag.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant