obj-ref

command module
v0.0.0-...-2fbf774 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 13 Imported by: 0

README

obj-ref

figures out a fully qualified reference to a Kubernetes object.

$ obj-ref pipeline test
apiVersion: tekton.dev/v1beta1
kind: Pipeline
name: test

or

$ obj-ref -o line pipeline test
pipelines.tekton.dev test

why

sometimes, you need to provide the equivalent of a corev1.ObjectReference to fields in Kubernetes custom resources.

having a little cli that can do that for me makes things easier, e.g., by using vim's :read command, I can, in the middle of a piece of YAML that I'm working on:

:r! obj-ref pipeline test

and then boom! you have the object reference right there.

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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