compose

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 29 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// LabelServiceType defines the type of service to be created
	LabelServiceType = "kompose.service.type"
	// LabelServiceGroup defines the group of services in a single pod
	LabelServiceGroup = "kompose.service.group"
	// LabelNodePortPort defines the port value for NodePort service
	LabelNodePortPort = "kompose.service.nodeport.port"
	// LabelServiceExpose defines if the service needs to be made accessible from outside the cluster or not
	LabelServiceExpose = "kompose.service.expose"
	// LabelServiceExposeTLSSecret provides the name of the TLS secret to use with the Kubernetes ingress controller
	LabelServiceExposeTLSSecret = "kompose.service.expose.tls-secret"
	// LabelServiceAccountName defines the service account name to provide the credential info of the pod.
	LabelServiceAccountName = "kompose.serviceaccount-name"
	// LabelControllerType defines the type of controller to be created
	LabelControllerType = "kompose.controller.type"
	// LabelImagePullSecret defines a secret name for kubernetes ImagePullSecrets
	LabelImagePullSecret = "kompose.image-pull-secret"
	// LabelImagePullPolicy defines Kubernetes PodSpec imagePullPolicy.
	LabelImagePullPolicy = "kompose.image-pull-policy"
	// HealthCheckReadinessDisable defines readiness health check disable
	HealthCheckReadinessDisable = "kompose.service.healthcheck.readiness.disable"
	// HealthCheckReadinessTest defines readiness health check test
	HealthCheckReadinessTest = "kompose.service.healthcheck.readiness.test"
	// HealthCheckReadinessInterval defines readiness health check interval
	HealthCheckReadinessInterval = "kompose.service.healthcheck.readiness.interval"
	// HealthCheckReadinessTimeout defines readiness health check timeout
	HealthCheckReadinessTimeout = "kompose.service.healthcheck.readiness.timeout"
	// HealthCheckReadinessRetries defines readiness health check retries
	HealthCheckReadinessRetries = "kompose.service.healthcheck.readiness.retries"
	// HealthCheckReadinessStartPeriod defines readiness health check start period
	HealthCheckReadinessStartPeriod = "kompose.service.healthcheck.readiness.start_period"
	// HealthCheckReadinessHTTPGetPath defines readiness health check HttpGet path
	HealthCheckReadinessHTTPGetPath = "kompose.service.healthcheck.readiness.http_get_path"
	// HealthCheckReadinessHTTPGetPort defines readiness health check HttpGet port
	HealthCheckReadinessHTTPGetPort = "kompose.service.healthcheck.readiness.http_get_port"
	// HealthCheckReadinessTCPPort defines readiness health check tcp port
	HealthCheckReadinessTCPPort = "kompose.service.healthcheck.readiness.tcp_port"
	// HealthCheckLivenessHTTPGetPath defines liveness health check HttpGet path
	HealthCheckLivenessHTTPGetPath = "kompose.service.healthcheck.liveness.http_get_path"
	// HealthCheckLivenessHTTPGetPort defines liveness health check HttpGet port
	HealthCheckLivenessHTTPGetPort = "kompose.service.healthcheck.liveness.http_get_port"
	// HealthCheckLivenessTCPPort defines liveness health check tcp port
	HealthCheckLivenessTCPPort = "kompose.service.healthcheck.liveness.tcp_port"

	// ServiceTypeHeadless ...
	ServiceTypeHeadless = "Headless"
)

Variables

View Source
var StdinData []byte

StdinData is data bytes read from stdin

Functions

func ParseVols added in v1.1.0

func ParseVols(volNames []string, svcName string) ([]kobject.Volumes, error)

ParseVols parse volumes

func ReadFile added in v1.17.0

func ReadFile(fileName string) ([]byte, error)

ReadFile read data from file or stdin

Types

type Compose

type Compose struct {
}

Compose is docker compose file loader, implements Loader interface

func (*Compose) LoadFile

func (c *Compose) LoadFile(files []string) (kobject.KomposeObject, error)

LoadFile loads a compose file into KomposeObject

Jump to

Keyboard shortcuts

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