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:
Lctrs
2023-01-12 15:17:22 -05:00
committed by GitHub
parent 7304bb6013
commit 2ad5745d58
57 changed files with 1407 additions and 1867 deletions
+19
View File
@@ -16,6 +16,7 @@ spec:
metadata:
creationTimestamp: null
labels:
io.kompose.network/multiple-files-default: "true"
io.kompose.service: bar
spec:
containers:
@@ -25,6 +26,22 @@ spec:
restartPolicy: Always
status: {}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
creationTimestamp: null
name: multiple-files-default
spec:
ingress:
- from:
- podSelector:
matchLabels:
io.kompose.network/multiple-files-default: "true"
podSelector:
matchLabels:
io.kompose.network/multiple-files-default: "true"
---
apiVersion: apps/v1
kind: Deployment
@@ -43,6 +60,7 @@ spec:
metadata:
creationTimestamp: null
labels:
io.kompose.network/multiple-files-default: "true"
io.kompose.service: foo
spec:
containers:
@@ -51,3 +69,4 @@ spec:
resources: {}
restartPolicy: Always
status: {}
+2
View File
@@ -16,6 +16,7 @@ spec:
metadata:
creationTimestamp: null
labels:
io.kompose.network/multiple-files-default: "true"
io.kompose.service: bar
spec:
containers:
@@ -84,6 +85,7 @@ spec:
metadata:
creationTimestamp: null
labels:
io.kompose.network/multiple-files-default: "true"
io.kompose.service: foo
spec:
containers: