Documentation ¶
Index ¶
- Constants
- func ErrorResourcesModifiedExternally() error
- func FindFromObjectMeta(cfg *config.Config, objectMeta *metav1.ObjectMeta) *config.Service
- func GetK8sName(service *config.Service, cfg *config.Config) string
- func InitCommonLabels(cfg *config.Config, composeService *config.Service, labels map[string]string) map[string]string
- func InitObjectMeta(cfg *config.Config, objectMeta *metav1.ObjectMeta, ...)
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 ¶
FindFromObjectMeta finds a docker compose service from resource metadata.
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.
Click to show internal directories.
Click to hide internal directories.