forked from LaconicNetwork/kompose
Go mod (#1305)
* Use go mod instead of glide * Add `--with-kompose-annotation` flag to allow us to switch it off for tests * Remove hostpid support (since the newest sdk does not support it) * Create new test script and fixtures * Remove replicationcontroller support
This commit is contained in:
@@ -35,7 +35,8 @@ import (
|
||||
"github.com/kubernetes/kompose/pkg/version"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
|
||||
api "k8s.io/api/core/v1"
|
||||
)
|
||||
|
||||
// Selector used as labels and selector
|
||||
@@ -155,6 +156,11 @@ func ConfigAnnotations(service kobject.ServiceConfig) map[string]string {
|
||||
for key, value := range service.Annotations {
|
||||
annotations[key] = value
|
||||
}
|
||||
|
||||
if !service.WithKomposeAnnotation {
|
||||
return annotations
|
||||
}
|
||||
|
||||
annotations["kompose.cmd"] = strings.Join(os.Args, " ")
|
||||
versionCmd := exec.Command("kompose", "version")
|
||||
out, err := versionCmd.Output()
|
||||
|
||||
Reference in New Issue
Block a user