resource

package
v2.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AgentInjectorSvc = injectorSvc(0)
View Source
const AgentInjectorWebhook = injectorWebhook(0)
View Source
const MutatorWebhookSecret = mwhSecret(0)
View Source
const TrafficManagerClusterRoleBinding = tmClusterRoleBinding(0)
View Source
const TrafficManagerNamespace = nsResource(0)
View Source
const TrafficManagerNamespaceKeep = nsResource(1)
View Source
const TrafficManagerRoleBinding = tmRoleBinding(0)
View Source
const TrafficManagerServiceAccount = tmServiceAccount(0)
View Source
const TrafficManagerSvc = tmSvc(0)

Variables

This section is empty.

Functions

func DeleteTrafficManager

func DeleteTrafficManager(ctx context.Context, client *kates.Client, namespace string, env *cl.Env) error

func Ensure

func Ensure(ctx context.Context, r Instance) error

Ensure checks if the given resource exists in which case an attempt will be made to update. The resource is created if it doesn't exist.

func EnsureTrafficManager

func EnsureTrafficManager(ctx context.Context, client *kates.Client, namespace, clusterID string, env *cl.Env) error

Types

type Instance

type Instance interface {
	Create(context.Context) error
	Exists(context.Context) (bool, error)
	Update(context.Context) error
	Delete(context.Context) error
}

An Instance exposes CRUD operations for a k8s resource such as a Service.

func NewTrafficManagerClusterRole added in v2.3.2

func NewTrafficManagerClusterRole() Instance

func NewTrafficManagerDeployment

func NewTrafficManagerDeployment() Instance

func NewTrafficManagerRole added in v2.3.2

func NewTrafficManagerRole() Instance

type Instances

type Instances []Instance

func GetTrafficManagerResources

func GetTrafficManagerResources() Instances

func (Instances) Delete

func (is Instances) Delete(ctx context.Context) error

Delete deletes the resources in the reverse order of how they were added.

func (Instances) Ensure

func (is Instances) Ensure(ctx context.Context) error

Ensure ensures that all resources are present

Jump to

Keyboard shortcuts

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