go generate ./...
goimports -w .
go test -v ./...
or
go test -v github.com/sataga/go-kubernetes-sample/domain/updateconfigmap
コマンドデスクリプション
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>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.