Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanhans/go4k8s


https://github.com/stefanhans/go4k8s

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/stefanhans/Go4k8s/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/stefanhans/Go4k8s)](https://goreportcard.com/report/github.com/Go4k8s)

# Go4k8s - Work in Progress

The [Showcase directory](./Showcase) refers to the talk "[K8s API & Go Programming](http://go-talks.appspot.com/github.com/stefanhans/go-present/slides/Kubernetes/IntroductionIntoClient-Go.slide#1)".

The [Examples directory](./Examples) serves as playground with the official examples from [kubernetes/client-go](https://github.com/kubernetes/client-go).

### Lessons Learned

- FYI: To find out what kubectl is doing under the hood you can use "--v=10" for instance. Then, all calls of glog.V(level) are displayed together with some more information.

- FYI: The Go tool godoc is a nice CLI for GoDoc and code comments, respectively. It has a html version for the browser and interesting outputs in the terminal.

godoc -http=:6060 -index # let you search at localhost:6060

Probably better is it with index file:

godoc -index_files index.file -write_index # one time preparation

godoc -http=:6060 -index -index_files index.file
or
godoc -index -index_files index.file -q ServiceInterface

### Further Use

Under Showcase/Deployments you find some directories related to drone plugin development.