forked from LaconicNetwork/kompose
Merge pull request #254 from dustymabe/dusty-deployment-deploymentconfig
Match case with API objects when printing to terminal
This commit is contained in:
@@ -214,19 +214,19 @@ func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.Conv
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logrus.Infof("Successfully created deployment: %s", t.Name)
|
||||
logrus.Infof("Successfully created DeploymentConfig: %s", t.Name)
|
||||
case *api.Service:
|
||||
_, err := kclient.Services(namespace).Create(t)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logrus.Infof("Successfully created service: %s", t.Name)
|
||||
logrus.Infof("Successfully created Service: %s", t.Name)
|
||||
case *api.PersistentVolumeClaim:
|
||||
_, err := kclient.PersistentVolumeClaims(namespace).Create(t)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logrus.Infof("Successfully created persistentVolumeClaim: %s", t.Name)
|
||||
logrus.Infof("Successfully created PersistentVolumeClaim: %s", t.Name)
|
||||
}
|
||||
}
|
||||
fmt.Println("\nYour application has been deployed to OpenShift. You can run 'oc get dc,svc,is,pvc' for details.")
|
||||
|
||||
Reference in New Issue
Block a user