GithubHelp home page GithubHelp logo

hidetatz / kubectl-explore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keisku/kubectl-explore

0.0 1.0 1.0 1.21 MB

A plugin for kubectl to fuzzy-find and explain the field

License: MIT License

Go 100.00%

kubectl-explore's Introduction

kubectl-explore

.github/workflows/test.yaml

This is a plugin for kubectl to fuzzy-find and explain the field supported API resource.

demo

What

kubectl-explore finds and explains the field associated with each supported API resource.

Motivation

kubectl explain is already helpful, but typing the accurate path to the filed is a tedious and typo-prone.

Install

Download the binary from GitHub Releases and drop it in your $PATH.

Linux

curl -L -o kubectl-explore.tar.gz https://github.com/kei6u/kubectl-explore/releases/download/0.1.0/kubectl-explore_linux_x86_64.tar.gz
tar -xvf kubectl-explore.tar.gz
sudo mv kubectl-explore /usr/local/bin

OSX

curl -L -o kubectl-explore.tar.gz https://github.com/kei6u/kubectl-explore/releases/download/0.1.0/kubectl-explore_darwin_x86_64.tar.gz
tar -xvf kubectl-explore.tar.gz
sudo mv kubectl-explore /usr/local/bin

Source

go install github.com/kei6u/kubectl-explore
sudo mv $GOPATH/bin/kubectl-explore /usr/local/bin

Validation

Validate if kubectl explore can be executed. The Kubernetes documentation explains how to use a plugin.

$ kubectl explore --help
This command finds fields associated with each supported API resource to explain.

Fields are identified via a simple JSONPath identifier:
        <type>.<fieldName>[.<fieldName>]

Usage:
  kubectl-explore RESOURCE [options] [flags]

Examples:

# Explore pod fields.
kubectl-explore pod

# Explore "pod.spec.containers" fields.
kubectl-explore pod.spec.containers

# Explore the resource selected by interactive fuzzy-finder.
kubectl-explore


Flags:
      --api-version string   Get different explanations for particular API version (API group/version)
  -h, --help                 help for kubectl-explore

kubectl-explore's People

Contributors

keisku avatar

Watchers

 avatar

Forkers

dockercore

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.