annotations

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NetworkTopologyModeAnnotation is the annotation indicating the network topology mode a cluster uses
	// Valid values are "GiantSwarmManaged", "CustomerManaged" and "None"
	NetworkTopologyModeAnnotation = "network-topology.giantswarm.io/mode"

	NetworkTopologyModeGiantSwarmManaged = "GiantSwarmManaged"
	NetworkTopologyModeUserManaged       = "UserManaged"
	NetworkTopologyModeNone              = "None"

	// NetworkTopologyTransitGatewayIDAnnotation contains the ID of the Transit Gateway used by the cluster.
	// This is either the user-provided TGW or the one created by this operator.
	NetworkTopologyTransitGatewayIDAnnotation = "network-topology.giantswarm.io/transit-gateway"
)

Variables

This section is empty.

Functions

func AddAnnotations

func AddAnnotations(o metav1.Object, desired map[string]string)

AddAnnotations sets the desired annotations on the object

func GetAnnotation

func GetAnnotation(o metav1.Object, annotation string) string

GetAnnotation returns the value of the specified annotation.

func GetNetworkTopologyTransitGatewayID

func GetNetworkTopologyTransitGatewayID(o metav1.Object) string

func HasNetworkTopologyMode

func HasNetworkTopologyMode(o metav1.Object) bool

func IsNetworkTopologyModeGiantSwarmManaged

func IsNetworkTopologyModeGiantSwarmManaged(o metav1.Object) bool

func IsNetworkTopologyModeNone

func IsNetworkTopologyModeNone(o metav1.Object) bool

func IsNetworkTopologyModeUserManaged

func IsNetworkTopologyModeUserManaged(o metav1.Object) bool

func SetNetworkTopologyTransitGatewayID

func SetNetworkTopologyTransitGatewayID(o metav1.Object, transitGatewayID string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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