From 14a38cef671e9a5e056610b8f6692cf8eae258a4 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Wed, 7 Jun 2023 11:01:12 +0200 Subject: [PATCH] fix(operator): use new RuntimeSpec instead of FunctionSpec Signed-off-by: odubajDT --- .../lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go b/operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go index efd372c307..b0db12eca9 100644 --- a/operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go +++ b/operator/apis/lifecycle/v1alpha3/keptntaskdefinition_webhook_test.go @@ -15,7 +15,7 @@ import ( func TestKeptnTaskDefinition_ValidateFields(t *testing.T) { specWithFunctionAndContainer := KeptnTaskDefinitionSpec{ - Function: &FunctionSpec{}, + Function: &RuntimeSpec{}, Container: &ContainerSpec{}, } @@ -59,7 +59,7 @@ func TestKeptnTaskDefinition_ValidateFields(t *testing.T) { { name: "with-function-only", spec: KeptnTaskDefinitionSpec{ - Function: &FunctionSpec{}, + Function: &RuntimeSpec{}, }, verb: "create", },