kubeconfig

package
v2.1.1-fix+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "kubeconfig"
)

Variables

This section is empty.

Functions

func IsInvalidConfigError

func IsInvalidConfigError(err error) bool

IsInvalidConfigError asserts invalidConfigError.

func IsTimeout

func IsTimeout(err error) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

Types

type Config

type Config struct {
	CertsSearcher certs.Interface
	K8sClient     kubernetes.Interface
	Logger        micrologger.Logger
}

Config represents the configuration used to create a new kubeconfig resource.

type Resource added in v0.23.7

type Resource struct {
	// contains filtered or unexported fields
}

Resource implements the kubeconfig resource.

func New

func New(config Config) (*Resource, error)

New creates a new configured secret state getter resource managing kube configs.

https://godoc.org/github.com/giantswarm/operatorkit/resource/k8s/secretresource#StateGetter

func (*Resource) GetCurrentState added in v0.23.7

func (r *Resource) GetCurrentState(ctx context.Context, obj interface{}) ([]*corev1.Secret, error)

func (*Resource) GetDesiredState added in v0.23.7

func (r *Resource) GetDesiredState(ctx context.Context, obj interface{}) ([]*corev1.Secret, error)

Jump to

Keyboard shortcuts

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