How to create a versionedclientset? #4379
Unanswered
mensylisir
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I met the some problem! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Using the client created by monitoringclient.New(client.DiscoveryClient.RESTClient()) will report a notRegiste error when calling, but I use monitoringclient.NewForConfig(config) and it is normal. Haven't found the reason yet example |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now, I have a Kubernetes.Clientset, It is generated through Kubernetes Bearer Token and the token has cluster-admin permission. It can normally operate all kubernetes non CRD resources, then, I create a versioned.Clientset ,as follow:
The monitoringClient cannot get prometheusrule, err is not null
Beta Was this translation helpful? Give feedback.
All reactions