how to change namespace #3860
-
InputStream serviceMonitorIn = new ByteArrayInputStream(serviceMonitor.get(0).getBytes(StandardCharsets.UTF_8));
CustomResourceDefinition crd = this.kubernetesClient
.inNamespace("monitoring")
.apiextensions()
.v1()
.customResourceDefinitions()
.load(serviceMonitorIn)
.get(); is my code, and the
how to change the namespace of the DefaultKubernetesClient? |
Beta Was this translation helpful? Give feedback.
Answered by
rohanKanojia
Feb 15, 2022
Replies: 1 comment
-
I think client seems to be complaining for difference in operation namespace ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devcui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think client seems to be complaining for difference in operation namespace (
inNamespace(monitoring)
) and namespace present inmetadata.namespace
content ofserviceMonitorIn