-
Notifications
You must be signed in to change notification settings - Fork 192
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
kubectl apply -f
functionality
#64
Comments
I'm interested in looking into this @silasbw. |
RE apply, this seems to get the job done:
Though please correct me if there's a requirement I'm missing here. |
Though I suppose it has the downside of working exclusively for replace and not working for create in the way |
Yeah, what about adding a pattern to try {
await client.apis.apps.v1.namespaces.post(...);
} catch (err) {
if (err.code !== 409) throw err;
await client.apis.apps.v1.namespaces.put(...);
} I'm reluctant to include it in the |
From @therynamo:
"Another nicety would be being able to do something like kubectl apply -f, programatically. So instead of seeing, Error: deployment "insert_deployment_name_here" already exists, it would just overwrite with the new config. However, I may have yet again misread the docs."
The text was updated successfully, but these errors were encountered: