GithubHelp home page GithubHelp logo

go-kubernetes-sample's Introduction

go-kubernetes-sample

mockを作り直したい

go generate ./...
goimports -w .

テスト流したい

go test -v ./...

or 

go test -v github.com/sataga/go-kubernetes-sample/domain/updateconfigmap

go-kubernetes-sample's People

Contributors

sataga avatar

Watchers

James Cloos avatar  avatar

go-kubernetes-sample's Issues

first commit の動作ログ

コマンドデスクリプション

 t-sataga@MBA  ~/go/src/github.com/sataga/go-kubernetes-sample   master 
-> % go run main.go                                                                                                            23:25:28 - 23:25:42
usage: go-kubernetes-sample [global options] subcommand [subcommand options]

subcommands:
update-cm:    update user k8s configmaps
  -dry-run
        This option to just show what would be done
  -target string
        update ConfigMap target (e.g. prometheus-cm) (default "default")
2021/03/16 23:25:44 specify subcommand
exit status 1

新規作成ログ

 t-sataga@MBA  ~/go/src/github.com/sataga/go-kubernetes-sample   master 
-> % kl get cm                                                                                                                 23:25:25 - 23:25:27
No resources found in default namespace.

 t-sataga@MBA  ~/go/src/github.com/sataga/go-kubernetes-sample   master 
-> % go run main.go update-cm -target tmp-logging-agent                                                                        23:27:13 - 23:27:37
Host:https://192.168.64.5:8443
get configmap default/tmp-logging-agent: configmaps "tmp-logging-agent" not found
Updated configmap 'tmp-logging-agent'
tmp-logging-agent is created.
Finished!
 t-sataga@MBA  ~/go/src/github.com/sataga/go-kubernetes-sample   master 
-> % kl get cm                                                                                                                 23:27:39 - 23:27:45
NAME                DATA   AGE
tmp-logging-agent   0      6s

更新ログ

API server listening at: 127.0.0.1:5977
Host:https://192.168.64.5:8443
Updated configmap 'tmp-logging-agent'
tmp-logging-agent is updated.
Finished!

スルーログ

API server listening at: 127.0.0.1:40352
Host:https://192.168.64.5:8443
no-forward-images exists.
Finished!
(⎈ |minikube:default) t-sataga@MBA  ~ 
-> % kl describe cm tmp-logging-agent        05:46:54 - 05:47:16
Name:         tmp-logging-agent
Namespace:    default
Labels:       <none>
Annotations:  <none>

Data
====
no-forward-images:
----
nghttpx-ingress-controller
Events:  <none>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.