forked from LaconicNetwork/kompose
commit
f671ca9377
@ -159,7 +159,7 @@ func (k *Kubernetes) InitSvc(name string, service kobject.ServiceConfig) *api.Se
|
|||||||
return svc
|
return svc
|
||||||
}
|
}
|
||||||
|
|
||||||
// InitConfigMap initialized a ConfigMap object
|
// InitConfigMap initializes a ConfigMap object
|
||||||
func (k *Kubernetes) InitConfigMap(name string, service kobject.ServiceConfig, opt kobject.ConvertOptions, envFile string) *api.ConfigMap {
|
func (k *Kubernetes) InitConfigMap(name string, service kobject.ServiceConfig, opt kobject.ConvertOptions, envFile string) *api.ConfigMap {
|
||||||
|
|
||||||
envs, err := GetEnvsFromFile(envFile, opt)
|
envs, err := GetEnvsFromFile(envFile, opt)
|
||||||
|
|||||||
@ -72,7 +72,7 @@ const TIMEOUT = 300
|
|||||||
// by keeping record if already saw this key in another service
|
// by keeping record if already saw this key in another service
|
||||||
var unsupportedKey = map[string]bool{}
|
var unsupportedKey = map[string]bool{}
|
||||||
|
|
||||||
// initImageStream initialize ImageStream object
|
// initImageStream initializes ImageStream object
|
||||||
func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig, opt kobject.ConvertOptions) *imageapi.ImageStream {
|
func (o *OpenShift) initImageStream(name string, service kobject.ServiceConfig, opt kobject.ConvertOptions) *imageapi.ImageStream {
|
||||||
|
|
||||||
// Retrieve tags and image name for mapping
|
// Retrieve tags and image name for mapping
|
||||||
@ -171,7 +171,7 @@ func initBuildConfig(name string, service kobject.ServiceConfig, repo string, br
|
|||||||
return bc, nil
|
return bc, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// initDeploymentConfig initialize OpenShifts DeploymentConfig object
|
// initDeploymentConfig initializes OpenShifts DeploymentConfig object
|
||||||
func (o *OpenShift) initDeploymentConfig(name string, service kobject.ServiceConfig, replicas int) *deployapi.DeploymentConfig {
|
func (o *OpenShift) initDeploymentConfig(name string, service kobject.ServiceConfig, replicas int) *deployapi.DeploymentConfig {
|
||||||
containerName := []string{name}
|
containerName := []string{name}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ type Push struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
PushImage push a Docker image via the Docker API. Takes the image name,
|
PushImage pushes a Docker image via the Docker API. Takes the image name,
|
||||||
parses the URL details and then push based on environment authentication
|
parses the URL details and then push based on environment authentication
|
||||||
credentials.
|
credentials.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user