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 ¶
func (o *ViewServiceaccountKubeconfigOptions) Run() error
Run shows a kubeconfig to access the apiserver with a specified serviceaccount
func (*ViewServiceaccountKubeconfigOptions) Validate ¶
func (o *ViewServiceaccountKubeconfigOptions) Validate() error
Validate ensures that all required arguments and flag values are provided
Click to show internal directories.
Click to hide internal directories.