Skip to content

Commit

Permalink
feat: introduce API groups in KLT (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
mowies committed Jan 9, 2023
1 parent 90bbdba commit b482d96
Show file tree
Hide file tree
Showing 124 changed files with 331 additions and 302 deletions.
8 changes: 4 additions & 4 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ vet: ## Run go vet against code.

.PHONY: test
test: manifests fmt vet generate envtest ## Run tests.
go test ./api/... -v -coverprofile cover-api.out
go test ./apis/... -v -coverprofile cover-apis.out
go test ./controllers/... -v -coverprofile cover-pkg.out
go test ./webhooks/... -v -coverprofile cover-main.out
sed -i '/mode: set/d' "cover-api.out"
sed -i '/mode: set/d' "cover-apis.out"
sed -i '/mode: set/d' "cover-pkg.out"
sed -i '/mode: set/d' "cover-main.out"
echo "mode: set" > cover.out
cat cover-main.out cover-pkg.out cover-api.out >> cover.out
rm cover-pkg.out cover-main.out cover-api.out
cat cover-main.out cover-pkg.out cover-apis.out >> cover.out
rm cover-pkg.out cover-main.out cover-apis.out

.PHONY: component-test
component-test: manifests generate envtest ## Run tests.
Expand Down
37 changes: 19 additions & 18 deletions operator/PROJECT
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
domain: keptn.sh
layout:
- go.kubebuilder.io/v3
multigroup: true
projectName: keptn-lifecycle-toolkit
repo: github.com/keptn/lifecycle-toolkit/operator
resources:
Expand All @@ -11,7 +12,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnTaskDefinition
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -20,7 +21,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnTask
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -29,7 +30,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnApp
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -38,7 +39,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnWorkload
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -47,7 +48,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnWorkloadInstance
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -56,7 +57,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnAppVersion
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -65,15 +66,15 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluationDefinition
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluationProvider
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -82,7 +83,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluation
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
Expand All @@ -91,7 +92,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnTaskDefinition
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -100,7 +101,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnTask
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -109,7 +110,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnApp
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
webhooks:
conversion: true
Expand All @@ -121,7 +122,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnWorkload
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -130,7 +131,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnWorkloadInstance
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -139,7 +140,7 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnAppVersion
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -148,15 +149,15 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluationDefinition
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
namespaced: true
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluationProvider
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
- api:
crdVersion: v1
Expand All @@ -165,6 +166,6 @@ resources:
domain: keptn.sh
group: lifecycle
kind: KeptnEvaluation
path: github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2
path: github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2
version: v1alpha2
version: "3"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"fmt"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2"
"sigs.k8s.io/controller-runtime/pkg/conversion"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2"
"github.com/stretchr/testify/require"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
v2 "sigs.k8s.io/controller-runtime/pkg/webhook/conversion/testdata/api/v2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha1
import (
"strings"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha1
import (
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha1
import (
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha1
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha1
import (
"strings"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package semconv

import (
"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha1/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha1/common"
"go.opentelemetry.io/otel/trace"
)

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha2
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha2
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package v1alpha2
import (
"time"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/trace"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v1alpha2
import (
"testing"

"github.com/keptn/lifecycle-toolkit/operator/api/v1alpha2/common"
"github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2/common"
"github.com/stretchr/testify/require"
"go.opentelemetry.io/otel/attribute"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Loading

0 comments on commit b482d96

Please sign in to comment.