k8sconsts

package
v0.0.0-...-f942f97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelApplication      = "app"
	LabelServiceId        = "serviceId"
	LabelApp              = "app"
	KindApplication       = "Application"
	APIVersionApplication = "applicationconnector.kyma-project.io/v1alpha1"
)

Variables

This section is empty.

Functions

func CreateOwnerReferenceForApplication

func CreateOwnerReferenceForApplication(applicationName string, applicationUID types.UID) []v1.OwnerReference

Types

type NameResolver

type NameResolver interface {
	// GetResourceName returns resource name with given ID
	GetResourceName(application, id string) string
	// GetGatewayUrl return gateway url with given ID
	GetGatewayUrl(application, id string) string
	// GetCentralGatewayUrl return central gateway url
	GetCentralGatewayUrl(applicationName, serviceDisplayName string) string
	// ExtractServiceId extracts service ID from given host
	ExtractServiceId(applicaton, host string) string
}

NameResolver provides names for Kubernetes resources

func NewNameResolver

func NewNameResolver(namespace, centralGatewayUrl string) NameResolver

NewNameResolver creates NameResolver that uses application name and namespace.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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