Documentation ¶
Index ¶
- Constants
- func AssignNamespaceToObjects(objs *[]runtime.Object, namespace string)
- func BuildDockerImage(service kobject.ServiceConfig, name string) error
- func ConfigAllLabels(name string, service *kobject.ServiceConfig) map[string]string
- func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
- func ConfigLabels(name string) map[string]string
- func ConfigLabelsWithNetwork(name string, net []string) map[string]string
- func CreateNamespace(namespace string) *api.Namespace
- func CreateOutFile(out string) (*os.File, error)
- func Exists(p string) bool
- func GetComposeFileDir(inputFiles []string) (string, error)
- func ParseIngressPath(url string) (string, string)
- func ParseVolume(volume string) (name, host, container, mode string, err error)
- func Print(name, path string, trailing string, data []byte, toStdout, generateJSON bool, ...) (string, error)
- func PushDockerImageWithOpt(service kobject.ServiceConfig, serviceName string, opt kobject.ConvertOptions) error
- type EnvSort
- type Transformer
Constants ¶
const Selector = "io.kompose.service"
Selector used as labels and selector
Variables ¶
This section is empty.
Functions ¶
func AssignNamespaceToObjects ¶ added in v1.30.0
AssignNamespaceToObjects will add the namespace metadata to each object
func BuildDockerImage ¶ added in v1.0.0
func BuildDockerImage(service kobject.ServiceConfig, name string) error
BuildDockerImage builds docker image
func ConfigAllLabels ¶ added in v1.21.0
func ConfigAllLabels(name string, service *kobject.ServiceConfig) map[string]string
ConfigAllLabels creates labels with service nam and deploy labels
func ConfigAnnotations ¶
func ConfigAnnotations(service kobject.ServiceConfig) map[string]string
ConfigAnnotations configures annotations
func ConfigLabels ¶
ConfigLabels configures label name alone
func ConfigLabelsWithNetwork ¶ added in v1.20.0
ConfigLabelsWithNetwork configures label and add Network Information in labels
func CreateNamespace ¶ added in v1.30.0
CreateNamespace creates a Kubernetes namespace, which can be used in both: Openshift and Kubernetes
func CreateOutFile ¶
CreateOutFile creates the file to write to if --out is specified
func GetComposeFileDir ¶ added in v1.0.0
GetComposeFileDir returns compose file directory
func ParseIngressPath ¶ added in v1.21.0
ParseIngressPath parse path for ingress. eg. example.com/org -> example.com org
func ParseVolume ¶
ParseVolume parses a given volume, which might be [name:][host:]container[:access_mode]
func Print ¶
func Print(name, path string, trailing string, data []byte, toStdout, generateJSON bool, f *os.File, provider string) (string, error)
Print either prints to stdout or to file/s
func PushDockerImageWithOpt ¶ added in v1.24.0
func PushDockerImageWithOpt(service kobject.ServiceConfig, serviceName string, opt kobject.ConvertOptions) error
PushDockerImageWithOpt pushes docker image
Types ¶
type EnvSort ¶ added in v1.0.0
EnvSort struct
type Transformer ¶
type Transformer interface { // Transform converts KomposeObject to transformer specific objects. Transform(kobject.KomposeObject, kobject.ConvertOptions) ([]runtime.Object, error) }
Transformer interface defines transformer that is converting kobject to other resources