question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CustomObjectsApi Using yaml creation error, can give an example?

See original GitHub issue
 CustomObjectsApi apiInstance = new CustomObjectsApi();
Object result = apiInstance.createNamespacedCustomObject("monitoring.coreos.com", "v1", "monitoring", "prometheusrules", "ops-prometheus-rules", jsonObject.toString());
System.out.println(result);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cosolarcommented, Oct 31, 2019

yue9944882/java-model-gen Download very slow error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/07/07c8579cc40a5c7f09add907e55870bfdbaebd6c4cdca204fd1892f7e4f72cd8/data?verify=1572450917-CpD3jJH0srTAUC7df8tEEuTAbUQ%3D: read tcp 172.17.8.17:50370->104.18.124.25:443: read: connection reset by peer reference

0reactions
brendandburnscommented, Oct 31, 2019

The YAML loading code doesn’t know how to load custom objects. You would need to manually update the relevant mapping yourself using the function here:

https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/util/Yaml.java#L149

I’m going to close this as I don’t think there is much more we can do. Please feel free to re-open with the /reopen command if you have more info or need more help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python/CustomObjectsApi.md at master - kubernetes - GitHub
ApiClient(configuration) as api_client: # Create an instance of the API class ... An invalid or unrecognized dryRun directive will result in an error ......
Read more >
Python Examples of kubernetes.client.CustomObjectsApi
This page shows Python examples of kubernetes.client.CustomObjectsApi.
Read more >
Python Kubernetes Client: equivalent of kubectl get [custom ...
So how do I go about getting the same information back but then with the kubernetes client? Yaml looks like this for example:...
Read more >
Experimental: Configure your applications with ZAPP files - IBM
Then, at some point we would like to provide extensibility APIs and open ... ZAPP file as a YAML file or as a...
Read more >
My Journey With Spark On Kubernetes... In Python (3/3)
kubectl create -f k8s/python-client-sa-rbac.yaml ... With the Kubernetes Python Client, you can create and manage Kubernetes objects ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found