Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Kubernetes Object only if it does not already exist #202

Open
ma-ble opened this issue Feb 20, 2024 · 1 comment
Open

Create Kubernetes Object only if it does not already exist #202

ma-ble opened this issue Feb 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ma-ble
Copy link

ma-ble commented Feb 20, 2024

We would like to be able to create & manage kubernetes resources in another cluster using the kubernetes-provider. However, not all resources are created in the other cluster via the kubernetes-provider.

In our case, for example, we would like to create namespaces in the other cluster, but only if they do not already exist in this cluster. Up to now, the kubernetes-provider works in such a way that the existing namespace is adopted.

How could such behaviour be prevented?
Would an extension - for example the managed policies "create-if-not-exists" - of the kubernetes provider be conceivable?

If you have other solutions and see solutions that could make it into the kubernetes provider, I would be very grateful for your comments.

@ma-ble ma-ble added the enhancement New feature or request label Feb 20, 2024
@wejdross
Copy link

make a call to another cluster, check if resource exists and if exists create Object.Object with ObserveOnly policy. That would be my guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants