-
Notifications
You must be signed in to change notification settings - Fork 294
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
How to approve generated k8s signin certificate? #814
Comments
the reason of badrequest is due to you are using old jsonpatch library #772
|
thanks for answer, simply I would like to approve csr, I don't know it should be values replaced or merge patch. 1 - it seems it is general issue with Microsoft.AspNetCore.JsonPatch ( I also tried Microsoft.AspNetCore.Mvc.Formatters version ) 2 - It was issue also in go client, and in this client I see it is UpdateApproval method which I was not able to find 3 - I also tried example from minkube-tests Installed json patch nuget and applied code like this in deployment patch but it returned And code looks like this:
Question how to properly do approve csr functionality? |
The easier thing to do is to use
Patch should work in theory, but patch is definitely harder to get right. |
Patch worked on 6x version of k8s client. After 7x it is System.Text.Json major update on client side. I described several problems and what I tried to fix. Well it is not only approve csr. |
After spending some time I found I am calling wrong method for approval. I should call below method and all works fine. Well not recommended to use Microsoft.AspNetCore.JsonPatch 1 - First it is compatible with Newtonsoft.Json Solution
|
could you please send an example PR of CSR approval? |
Made PR, please check it out |
I have method to generate signin certificate and in the end I'd like try to approve it same as approving csr in official doc
My whole code looks like:
I was not able to find put method for this so I decided to use path instead. Is it any another way for this, or what I am doing wrong?
P.S. I am getting BadRequest back as exception
The text was updated successfully, but these errors were encountered: