Operation returned an invalid status code 'Unauthorized' while trying to do json patch for custom resource objects #1025
srinivasmummareddy
started this conversation in
General
Replies: 1 comment
-
could you please test with kubectl auth can-i? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following is the stack trace of exception
"Error","@x":"k8s.Autorest.HttpOperationException: Operation returned an invalid status code 'Unauthorized'\n at k8s.Kubernetes.SendRequestRaw(String requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken)\n at k8s.AbstractKubernetes.k8s.ICustomObjectsOperations.PatchNamespacedCustomObjectWithHttpMessagesAsync(Object body, String group, String version, String namespaceParameter, String plural, String name, String dryRun, String fieldManager, Nullable1 force, IReadOnlyDictionary2 customHeaders, CancellationToken cancellationToken)\n at k8s.CustomObjectsOperationsExtensions.PatchNamespacedCustomObjectAsync(ICustomObjectsOperations operations, Object body, String group, String version, String namespaceParameter, String plural, String name, String dryRun, String fieldManager, Nullable`1 force, CancellationToken cancellationToken)
Note: The particular pod has a service account which has permission to patch the crd.
Not able to figure out the exact reason
I'm using Kubernetes client : 8.0.68
Beta Was this translation helpful? Give feedback.
All reactions