-
Notifications
You must be signed in to change notification settings - Fork 550
how to run patch commands on deployment? #515
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
Comments
Please have a look at the example here: If you still need assistance please reply to this issue. |
Thanks for the quick reply and the example code @brendanburns I was hoping there was a Deployment level patch command in the API. |
I was also looking at |
There are equivalent |
Also, there has been some discussion w/ the Godady folks, and one PR that got semi-abandoned. We'd welcome more of a merger, but at the same time having multiple clients provides choice which is a good thing too, so if they'd prefer to stay separate that's great as well. |
I'm going to close this issue since I think the question is answered, please use |
What is the structure of the patch object? Are there docs on that? Is it kubernetes specific or part of this library? EDIT: It appears that is a Kubernetes construct independent of this library: And it wasn't clear to me but it appears that the code to automatically use one of the headers doesn't work by default but I managed to make it work like this:
Using the strategic merge I was able to just pass in parts of the simple deployment object and it strategically merges the objects. The trick was just that the header is not set without manually specifying which type of merge I wanted. |
There are three patch types supported: |
Uh oh!
There was an error while loading. Please reload this page.
I've looked at the examples and can't find the kubectl equivalent to patch a deployment (restart all pods in a deployment):
kubectl patch deployment my-test-deployment -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"date\":\"$(date +%s)\"}}}}}
and patch status which report which pods are terminated /rolled out
I've found these.. but doesn't seem to work with these params:
Any help would be appreciated.
Ruben
The text was updated successfully, but these errors were encountered: