generator

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagKeyClusterName = "kubernetes.io/cluster-name"
	TagKeyNamespace   = "kubernetes.io/namespace"
	TagKeyIngressName = "kubernetes.io/ingress-name"
	TagKeyServiceName = "kubernetes.io/service-name"
	TagKeyServicePort = "kubernetes.io/service-port"
)

Standard tag key names

View Source
const (
	V2TagKeyClusterID  = "ingress.k8s.aws/cluster"
	V2TagKeyStackID    = "ingress.k8s.aws/stack"
	V2TagKeyResourceID = "ingress.k8s.aws/resource"

	V2ResourceIDLoadBalancer           = "LoadBalancer"
	V2ResourceIDManagedLBSecurityGroup = "ManagedLBSecurityGroup"
)

Additional Tags used to be forward-compatible with V2 version.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameGenerator

type NameGenerator struct {
	ALBNamePrefix string
}

func (*NameGenerator) NameInstanceSG

func (gen *NameGenerator) NameInstanceSG(namespace string, ingressName string) string

func (*NameGenerator) NameLB

func (gen *NameGenerator) NameLB(namespace string, ingressName string) string

func (*NameGenerator) NameLBSG

func (gen *NameGenerator) NameLBSG(namespace string, ingressName string) string

func (*NameGenerator) NameTG

func (gen *NameGenerator) NameTG(namespace string, ingressName string, serviceName, servicePort string,
	targetType string, protocol string) string

type NameTagGenerator

type NameTagGenerator struct {
	NameGenerator
	TagGenerator
}

func NewNameTagGenerator

func NewNameTagGenerator(cfg config.Configuration) *NameTagGenerator

type TagGenerator

type TagGenerator struct {
	ClusterName string
	DefaultTags map[string]string
}

func (*TagGenerator) TagInstanceSG

func (gen *TagGenerator) TagInstanceSG(namespace string, ingressName string) map[string]string

func (*TagGenerator) TagLB

func (gen *TagGenerator) TagLB(namespace string, ingressName string) map[string]string

func (*TagGenerator) TagLBSG

func (gen *TagGenerator) TagLBSG(namespace string, ingressName string) map[string]string

func (*TagGenerator) TagTG

func (gen *TagGenerator) TagTG(namespace string, ingressName string, serviceName string, servicePort string) map[string]string

func (*TagGenerator) TagTGGroup

func (gen *TagGenerator) TagTGGroup(namespace string, ingressName string) map[string]string

Jump to

Keyboard shortcuts

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