Skip to content

Commit ccfee8d

Browse files
committed
fix test
Signed-off-by: odubajDT <[email protected]>
1 parent eec8d45 commit ccfee8d

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

klt-cert-manager/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import (
1212
"k8s.io/apimachinery/pkg/runtime"
1313
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
1414
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
15-
16-
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
17-
// to ensure that exec-entrypoint and run can make use of them.
1815
_ "k8s.io/client-go/plugin/pkg/client/auth"
1916
ctrl "sigs.k8s.io/controller-runtime"
2017
"sigs.k8s.io/controller-runtime/pkg/cache"

lifecycle-operator/config/crd/bases/lifecycle.keptn.sh_keptntaskdefinitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.12.1
6+
controller-gen.kubebuilder.io/version: v0.13.0
77
name: keptntaskdefinitions.lifecycle.keptn.sh
88
spec:
99
group: lifecycle.keptn.sh

lifecycle-operator/controllers/lifecycle/keptntask/job_utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package keptntask
22

33
import (
44
"context"
5-
fakeclient "github.com/keptn/lifecycle-toolkit/lifecycle-operator/controllers/common/fake"
65
"testing"
76

87
klcv1alpha3 "github.com/keptn/lifecycle-toolkit/lifecycle-operator/apis/lifecycle/v1alpha3"
98
apicommon "github.com/keptn/lifecycle-toolkit/lifecycle-operator/apis/lifecycle/v1alpha3/common"
109
"github.com/keptn/lifecycle-toolkit/lifecycle-operator/controllers/common"
1110
controllercommon "github.com/keptn/lifecycle-toolkit/lifecycle-operator/controllers/common"
11+
fakeclient "github.com/keptn/lifecycle-toolkit/lifecycle-operator/controllers/common/fake"
1212
"github.com/stretchr/testify/require"
1313
batchv1 "k8s.io/api/batch/v1"
1414
v1 "k8s.io/api/core/v1"

lifecycle-operator/controllers/lifecycle/keptnworkloadinstance/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package keptnworkloadinstance
33
import (
44
"context"
55
"fmt"
6-
"sigs.k8s.io/controller-runtime/pkg/client"
76
"strings"
87
"testing"
98
"time"
@@ -25,6 +24,7 @@ import (
2524
"k8s.io/client-go/kubernetes/scheme"
2625
"k8s.io/client-go/tools/record"
2726
ctrl "sigs.k8s.io/controller-runtime"
27+
"sigs.k8s.io/controller-runtime/pkg/client"
2828
k8sfake "sigs.k8s.io/controller-runtime/pkg/client/fake"
2929
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3030
)

lifecycle-operator/test/component/task/task_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,12 @@ var _ = Describe("Task", Ordered, func() {
209209
Expect(err).To(BeNil())
210210

211211
Expect(createdJob.Annotations).To(Equal(map[string]string{
212-
"annotation1": "annotation2",
213-
"keptn.sh/task-name": task.Name,
214-
"keptn.sh/version": "",
215-
"keptn.sh/workload": "my-workload",
216-
"keptn.sh/app": "my-app",
212+
"annotation1": "annotation2",
213+
"keptn.sh/task-name": task.Name,
214+
"keptn.sh/version": "",
215+
"keptn.sh/workload": "my-workload",
216+
"keptn.sh/app": "my-app",
217+
"batch.kubernetes.io/job-tracking": "",
217218
}))
218219

219220
Expect(createdJob.Labels).To(Equal(map[string]string{

0 commit comments

Comments
 (0)