Client-go: Is there a document to explain method of use.

Created on 10 Jan 2017  路  5Comments  路  Source: kubernetes/client-go

Is there a document to explain method of use, I don't know how to start锛寀rgent need to use锛孌oes anyone know锛宼hanks.

Most helpful comment

Agreed that a few more examples would be extremely helpful.

E.g, I'm looking for how to create new jobs. I found the JobInterface docs, with a Create method, but have no clue how to even get started using that, as it in itself takes Job interface, which I don't know how to create, aso aso.

Everything is so dispersed, without no seemingly clear starting point. Thus, would really much hope to see a bunch of more examples.

UPDATE Feb 15, 2017: Managed to create a job now (with this code), by studying examples of 3rd party apps, like pachyderm. Still struggling to get the volume creation right, but progressing slowly.

All 5 comments

others?example,create pods,create namespace,delete pods...@lavalamp

I don't think we have a great source. You can look at godoc, which isn't terrible, here:

https://godoc.org/k8s.io/client-go/kubernetes

Drill in for specific objects like Pods: https://godoc.org/k8s.io/client-go/kubernetes/typed/core/v1#PodInterface

Agreed that a few more examples would be extremely helpful.

E.g, I'm looking for how to create new jobs. I found the JobInterface docs, with a Create method, but have no clue how to even get started using that, as it in itself takes Job interface, which I don't know how to create, aso aso.

Everything is so dispersed, without no seemingly clear starting point. Thus, would really much hope to see a bunch of more examples.

UPDATE Feb 15, 2017: Managed to create a job now (with this code), by studying examples of 3rd party apps, like pachyderm. Still struggling to get the volume creation right, but progressing slowly.

Thanks for the feedback! #128 is tracking this now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexec picture alexec  路  5Comments

AdheipSingh picture AdheipSingh  路  5Comments

protheusfr picture protheusfr  路  3Comments

tamalsaha picture tamalsaha  路  6Comments

mheese picture mheese  路  5Comments