Documentation ¶
Index ¶
- Constants
- func GetAbsBuildContext(context string) (string, error)
- func GetGitCurrentBranch(composeFileDir string) (string, error)
- func GetGitCurrentRemoteURL(composeFileDir string) (string, error)
- func GetImageTag(image string) string
- func HasGitBinary() bool
- type OpenShift
- func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) error
- func (o *OpenShift) InitNamespace(name string) *kapi.Namespace
- func (o *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) ([]runtime.Object, error)
- func (o *OpenShift) Undeploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []error
Constants ¶
const TIMEOUT = 300
TIMEOUT is how long we'll wait for the termination of OpenShift resource to be successful used when undeploying resources from OpenShift
Variables ¶
This section is empty.
Functions ¶
func GetAbsBuildContext ¶
GetAbsBuildContext returns build context relative to project root dir
func GetGitCurrentBranch ¶
GetGitCurrentBranch gets current git branch name for the current git repo
func GetGitCurrentRemoteURL ¶
GetGitCurrentRemoteURL gets current git remote URI for the current git repo
func GetImageTag ¶
GetImageTag get tag name from image name if no tag is specified return 'latest'
func HasGitBinary ¶
func HasGitBinary() bool
HasGitBinary checks if the 'git' binary is available on the system
Types ¶
type OpenShift ¶
type OpenShift struct { // Anonymous field allows for inheritance. We are basically inheriting // all of kubernetes.Kubernetes Methods and variables here. We'll overwrite // some of those methods with our own for openshift. kubernetes.Kubernetes }
OpenShift implements Transformer interface and represents OpenShift transformer
func (*OpenShift) Deploy ¶
func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) error
Deploy transforms and deploys kobject to OpenShift
func (*OpenShift) InitNamespace ¶
InitNamespace initializes Namespace object
func (*OpenShift) Transform ¶
func (o *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) ([]runtime.Object, error)
Transform maps komposeObject to openshift objects returns objects that are already sorted in the way that Services are first
func (*OpenShift) Undeploy ¶
func (o *OpenShift) Undeploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []error
Undeploy removes deployed artifacts from OpenShift cluster