forked from LaconicNetwork/kompose
feat: migrate from libcompose to compose-go (#1547)
* feat: migrate from libcompose to compose-go libcompose has been deprecated since summer 2021 in favor of https://github.com/compose-spec/compose-go. Kompose should now be able to load all versions of compose. * chore: replace golint with staticcheck golint has been deprecated. Recommended replacement is staticcheck.
This commit is contained in:
@@ -36,8 +36,8 @@ func newServiceConfig() kobject.ServiceConfig {
|
||||
return kobject.ServiceConfig{
|
||||
ContainerName: "myfoobarname",
|
||||
Image: "image",
|
||||
Environment: []kobject.EnvVar{kobject.EnvVar{Name: "env", Value: "value"}},
|
||||
Port: []kobject.Ports{kobject.Ports{HostPort: 123, ContainerPort: 456, Protocol: string(corev1.ProtocolTCP)}},
|
||||
Environment: []kobject.EnvVar{{Name: "env", Value: "value"}},
|
||||
Port: []kobject.Ports{{HostPort: 123, ContainerPort: 456, Protocol: string(corev1.ProtocolTCP)}},
|
||||
Command: []string{"cmd"},
|
||||
WorkingDir: "dir",
|
||||
Args: []string{"arg1", "arg2"},
|
||||
@@ -125,7 +125,7 @@ func TestKomposeConvertRoute(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
//Test getting git remote url for a directory
|
||||
// Test getting git remote url for a directory
|
||||
func TestGetGitRemote(t *testing.T) {
|
||||
var output string
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user