cmd

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdViewServiceaccountKubeconfig

func NewCmdViewServiceaccountKubeconfig(streams genericclioptions.IOStreams) *cobra.Command

NewCmdViewServiceaccountKubeconfig provides a cobra command wrapping ViewServiceaccountKubeconfigOptions

Types

type ViewServiceaccountKubeconfigOptions

type ViewServiceaccountKubeconfigOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ViewServiceaccountKubeconfig provides information required to show the KUBECONFIG setting of serviceaccount

func NewViewServiceaccountKubeconfigOptions

func NewViewServiceaccountKubeconfigOptions(streams genericclioptions.IOStreams) *ViewServiceaccountKubeconfigOptions

NewViewServiceaccountKubeconfig provides an instance of ViewServiceaccountKubeconfig with default value

func (*ViewServiceaccountKubeconfigOptions) Complete

func (o *ViewServiceaccountKubeconfigOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for showing the KUBECONFIG setting of serviceaccount

func (*ViewServiceaccountKubeconfigOptions) Run

Run shows a kubeconfig to access the apiserver with a specified serviceaccount

func (*ViewServiceaccountKubeconfigOptions) Validate

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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