clusterconfigmap

package
v2.0.2-1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

Types

type Config

type Config struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger

	CalicoAddress      string
	CalicoPrefixLength string
	ClusterIPRange     string
	DNSIP              string
}

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

type Resource added in v0.23.7

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

Resource implements the clusterConfigMap resource.

func New

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

New creates a new configured config map state getter resource managing cluster config maps.

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.ConfigMap, error)

func (*Resource) GetDesiredState added in v0.23.7

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

func (*Resource) Name added in v0.23.7

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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