kubectl-resource-versions

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

kubectl-resource-versions

Go Report Card LICENSE Releases GitHub stars

kubectl-resource-versions - This kubectl plugin prints the API resources along with the supported API versions in the form of group/version on the server

Intro

Have you ever wondered which api group and version should be used for a specified resource on a provided kubernetes cluster?

In one deployment definition you could see this apiVersion: apps/v1beta2, and in another apiVersion: apps/v1. Which one is correct? Which you should use? How to check which are supported on your Kubernetes cluster?

It is useful to find out the API resources along with the supported API versions in the form of group/version on the server as shown below.

kubectl-resource-versions example

Install

Binary downloads of the kubectl-resource-versions can be found on the Releases page.

Unpack the kubectl-resource-versions binary and add it to your PATH and you are good to go!

If you want to use the kubectl plugins package manager Krew, just run

$ kubectl krew install resource-versions

Tips: Installing Krew is required first

Usage

$ kubectl-resource-versions --help
# or
$ kubectl resource-versions --help

Print the API resources along with the supported API versions in the form of group/version on the server

Usage:
  kubectl-resource-versions [flags]

Examples:
  # Print the API resources with the supported API versions
  kubectl-resource-versions
  # Print by kubectl plugin
  kubectl resource-versions

Flags:
  -h, --help                help for kubectl-resource-versions
      --kubeconfig string   path to the kubeconfig file to use for CLI requests (default "$HOME/.kube/config")
  -v, --version             version for kubectl-resource-versions

Reference

Kubernetes API Resources: Which Group and Version to Use?

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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