ingress

package
v0.0.0-...-84590b4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyStaticIP

func ApplyStaticIP(staticIPName string, ing *v1beta1.Ingress) error

ApplyStaticIP sets the static-ip annotation on the given ingress to match the given staticIPName. It sets that annotation only if it is not set already. Returns an error if static-ip annotation is set already and it does not match the desired value.

func UnmarshallAndApplyDefaults

func UnmarshallAndApplyDefaults(filename, namespace string, ing *v1beta1.Ingress) error

UnmarshallAndApplyDefaults unmarshals ingress from the given file and sets the given namespace. It sets the namespace only if the unmarshalled ingress does not have a namespace. Returns an error if the unmarshalled ingress has a namespace set and it is different than the desired value.

Types

type SyncerInterface

type SyncerInterface interface {
	EnsureIngress(ing *v1beta1.Ingress, clients map[string]kubernetes.Interface, forceUpdate bool) ([]string, error)
	DeleteIngress(ing *v1beta1.Ingress, clients map[string]kubernetes.Interface) error
}

SyncerInterface is an interface to manage ingress resources in clusters.

func NewIngressSyncer

func NewIngressSyncer() SyncerInterface

NewIngressSyncer returns a new instance of syncer.

Jump to

Keyboard shortcuts

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