k8smeta

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationName = "kube-compose/service"

AnnotationName is the name of an annotation added by kube compose to resources, so that resources can be mapped back to their docker compose service.

Variables

This section is empty.

Functions

func ErrorResourcesModifiedExternally

func ErrorResourcesModifiedExternally() error

ErrorResourcesModifiedExternally returns an error indicating that resources managed by kube-compose have been modified externally.

func FindFromObjectMeta

func FindFromObjectMeta(cfg *config.Config, objectMeta *metav1.ObjectMeta) *config.Service

FindFromObjectMeta finds a docker compose service from resource metadata.

func GetK8sName

func GetK8sName(service *config.Service, cfg *config.Config) string

func InitCommonLabels

func InitCommonLabels(cfg *config.Config, composeService *config.Service, labels map[string]string) map[string]string

InitCommonLabels adds the labels for the specified docker compose service to the string map.

func InitObjectMeta

func InitObjectMeta(cfg *config.Config, objectMeta *metav1.ObjectMeta, composeService *config.Service)

InitObjectMeta sets the name, labels and annotations of a resource for the specified docker compose service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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