sa

package
v3.9.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 *clientcmd.Factory, out, errOut io.Writer) *cobra.Command

func NewCommandCreateKubeconfig

func NewCommandCreateKubeconfig(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCommandGetServiceAccountToken

func NewCommandGetServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCommandNewServiceAccountToken

func NewCommandNewServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command

Types

type CreateKubeconfigOptions

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

	Out io.Writer
	Err io.Writer
}

func (*CreateKubeconfigOptions) Complete

func (o *CreateKubeconfigOptions) Complete(args []string, f *clientcmd.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      kcoreclient.ServiceAccountInterface
	SecretsClient kcoreclient.SecretInterface

	Out io.Writer
	Err io.Writer
}

func (*GetServiceAccountTokenOptions) Complete

func (*GetServiceAccountTokenOptions) Run

func (*GetServiceAccountTokenOptions) Validate

func (o *GetServiceAccountTokenOptions) Validate() error

type NewServiceAccountTokenOptions

type NewServiceAccountTokenOptions struct {
	SAName        string
	SAClient      kcoreclient.ServiceAccountInterface
	SecretsClient kcoreclient.SecretInterface

	Labels map[string]string

	Timeout time.Duration

	Out io.Writer
	Err io.Writer
}

func (*NewServiceAccountTokenOptions) Complete

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

func (*NewServiceAccountTokenOptions) 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 (*NewServiceAccountTokenOptions) Validate

func (o *NewServiceAccountTokenOptions) Validate() error

Jump to

Keyboard shortcuts

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