kubectl-emit-event

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README ΒΆ

kubectl-emit-event

kubectl-emit-event is a kubectl plugin that emits event for requested object.

Usage

start the minikube cluster (skip if you are using an existing cluster)

➜  kubectl-emit-event git:(master) minikube start
πŸ˜„  minikube v1.10.1 on Darwin 10.15.5
✨  Using the hyperkit driver based on existing profile
πŸ‘  Starting control plane node minikube in cluster minikube
πŸ”„  Restarting existing hyperkit VM for "minikube" ...
πŸŽ‰  minikube 1.12.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.12.1
πŸ’‘  To disable this notice, run: 'minikube config set WantUpdateNotification false'

🐳  Preparing Kubernetes v1.18.2 on Docker 19.03.8 ...
🌟  Enabled addons: default-storageclass, ingress, storage-provisioner
πŸ„  Done! kubectl is now configured to use "minikube"

Run kubectl emit-event daemonset/kube-proxy -n kube-system --reason "foo-reason" --message "bar-message"

  ## emit event
  ➜  kubectl emit-event daemonset/kube-proxy -n kube-system --reason "foo-reason" --message "bar-message"

  ## verify event
  ➜  kubectl describe daemonset/kube-proxy -n kube-system

Name:           kube-proxy
Selector:       k8s-app=kube-proxy
Node-Selector:  beta.kubernetes.io/os=linux
Labels:         k8s-app=kube-proxy
Annotations:    deprecated.daemonset.template.generation: 1
.
.
.
.
.
Events:
  Type    Reason      Age    From                Message
  ----    ------      ----   ----                -------
  Normal  foo-reason  13s    kubectl-emit-event  bar-message

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
pkg
cmd
k8s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL