kubernetes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserMainContainerName      = "lattice-user-main"
	UserSidecarContainerPrefix = "lattice-user-sidecar-"
)
View Source
const (
	AddressControllerFinalizer  = "address." + controllerLabel + finalizerSuffix
	BuildControllerFinalizer    = "build." + controllerLabel + finalizerSuffix
	JobControllerFinalizer      = "job." + controllerLabel + finalizerSuffix
	NodePoolControllerFinalizer = "nodepool." + controllerLabel + finalizerSuffix
	ServiceControllerFinalizer  = "service." + controllerLabel + finalizerSuffix
	SystemControllerFinalizer   = "system." + controllerLabel + finalizerSuffix
)

Variables

This section is empty.

Functions

func ContainerBuilderClusterRoleName

func ContainerBuilderClusterRoleName(namespacePrefix string) string

func ContainersSemanticallyEqual

func ContainersSemanticallyEqual(container1, container2 *corev1.Container) bool

func FullyQualifiedInternalAddressSubdomain

func FullyQualifiedInternalAddressSubdomain(subdomain string, systemID v1.SystemID, latticeID v1.LatticeID, internalDNSDomain string) string

func FullyQualifiedInternalLatticeSubdomain

func FullyQualifiedInternalLatticeSubdomain(latticeID v1.LatticeID, internalDNSDomain string) string

func FullyQualifiedInternalSystemSubdomain

func FullyQualifiedInternalSystemSubdomain(systemID v1.SystemID, latticeID v1.LatticeID, internalDNSDomain string) string

func GetKubeServiceNameForLoadBalancer

func GetKubeServiceNameForLoadBalancer(name string) string

func GetKubeServiceNameForService

func GetKubeServiceNameForService(name string) string

func GetLoadBalancerNameForKubeService

func GetLoadBalancerNameForKubeService(kubeService *corev1.Service) (string, error)

func GetOwnerReference

func GetOwnerReference(obj metav1.Object, owner metav1.Object) *metav1.OwnerReference

func GetServiceNameForKubeService

func GetServiceNameForKubeService(kubeService *corev1.Service) (string, error)

func InternalAddressSubdomain

func InternalAddressSubdomain(subdomain string, systemID v1.SystemID, latticeID v1.LatticeID) string

func InternalNamespace

func InternalNamespace(namespacePrefix string) string

func InternalSystemSubdomain

func InternalSystemSubdomain(systemID v1.SystemID, latticeID v1.LatticeID) string

func LatticeNamespace

func LatticeNamespace(namespacePrefix, namespace string) string

func NewConfig

func NewConfig(kubeconfigPath, kubeContext string) (*rest.Config, error)

func NumReadyNodes

func NumReadyNodes(nodes []corev1.Node) int32

func PodTemplateSpecsSemanticallyEqual

func PodTemplateSpecsSemanticallyEqual(template1, template2 *corev1.PodTemplateSpec) bool

func SystemID

func SystemID(namespacePrefix, namespace string) (v1.SystemID, error)

func SystemNamespace

func SystemNamespace(namespacePrefix string, systemID v1.SystemID) string

func UserSidecarContainerName

func UserSidecarContainerName(sidecar string) string

func VolumesSemanticallyEqual

func VolumesSemanticallyEqual(volume1, volume2 *corev1.Volume) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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