Operation returned an invalid status code 'Unauthorized' while trying to do json patch for custom resource objects #1026
Unanswered
srinivasmummareddy
asked this question in
Q&A
Replies: 2 comments 18 replies
-
are you using |
Beta Was this translation helpful? Give feedback.
14 replies
-
check if it helps |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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, Nullable
1 force, IReadOnlyDictionary
2 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