serviceaccounts

package
v3.11.19-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateKubeconfigRecommendedName = "create-kubeconfig"
)
View Source
const (
	GetServiceAccountTokenRecommendedName = "get-token"
)
View Source
const (
	NewServiceAccountTokenRecommendedName = "new-token"
)
View Source
const ServiceAccountsRecommendedName = "serviceaccounts"

Variables

This section is empty.

Functions

func NewCmdServiceAccounts

func NewCmdServiceAccounts(name, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCommandCreateKubeconfig

func NewCommandCreateKubeconfig(name, fullname string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCommandGetServiceAccountToken

func NewCommandGetServiceAccountToken(name, fullname string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCommandNewServiceAccountToken

func NewCommandNewServiceAccountToken(name, fullname string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

Types

type CreateKubeconfigOptions

type CreateKubeconfigOptions struct {
	SAName           string
	SAClient         corev1client.ServiceAccountInterface
	SecretsClient    corev1client.SecretInterface
	RawConfig        clientcmdapi.Config
	ContextNamespace string

	genericclioptions.IOStreams
}

func NewCreateKubeconfigOptions

func NewCreateKubeconfigOptions(streams genericclioptions.IOStreams) *CreateKubeconfigOptions

func (*CreateKubeconfigOptions) Complete

func (o *CreateKubeconfigOptions) Complete(args []string, f cmdutil.Factory, cmd *cobra.Command) error

func (*CreateKubeconfigOptions) Run

func (o *CreateKubeconfigOptions) Run() error

func (*CreateKubeconfigOptions) Validate

func (o *CreateKubeconfigOptions) Validate() error

type GetServiceAccountTokenOptions

type GetServiceAccountTokenOptions struct {
	SAName        string
	SAClient      corev1client.ServiceAccountInterface
	SecretsClient corev1client.SecretInterface

	genericclioptions.IOStreams
}

func (*GetServiceAccountTokenOptions) Complete

func (o *GetServiceAccountTokenOptions) Complete(args []string, f cmdutil.Factory, cmd *cobra.Command) error

func (*GetServiceAccountTokenOptions) Run

func (*GetServiceAccountTokenOptions) Validate

func (o *GetServiceAccountTokenOptions) Validate() error

type ServiceAccountTokenOptions

type ServiceAccountTokenOptions struct {
	SAName        string
	SAClient      corev1client.ServiceAccountInterface
	SecretsClient corev1client.SecretInterface

	Labels map[string]string

	Timeout time.Duration

	genericclioptions.IOStreams
}

func NewServiceAccountTokenOptions

func NewServiceAccountTokenOptions(streams genericclioptions.IOStreams) *ServiceAccountTokenOptions

func (*ServiceAccountTokenOptions) Complete

func (o *ServiceAccountTokenOptions) Complete(args []string, requestedLabels string, f cmdutil.Factory, cmd *cobra.Command) error

func (*ServiceAccountTokenOptions) Run

Run creates a new token secret, waits for the service account token controller to fulfill it, then adds the token to the service account

func (*ServiceAccountTokenOptions) Validate

func (o *ServiceAccountTokenOptions) Validate() error

Jump to

Keyboard shortcuts

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