From 1ab64cf7b4ff9a819ef141690be036b1dc250455 Mon Sep 17 00:00:00 2001 From: KsaweryZietara Date: Wed, 18 Dec 2024 09:57:50 +0100 Subject: [PATCH] wip --- internal/process/provisioning/apply_kyma_step.go | 1 + internal/process/provisioning/create_runtime_resource_step.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/process/provisioning/apply_kyma_step.go b/internal/process/provisioning/apply_kyma_step.go index 2a992388d2..40a0e6005b 100644 --- a/internal/process/provisioning/apply_kyma_step.go +++ b/internal/process/provisioning/apply_kyma_step.go @@ -42,6 +42,7 @@ func (a *ApplyKymaStep) Name() string { func (a *ApplyKymaStep) Run(operation internal.Operation, logger *slog.Logger) (internal.Operation, time.Duration, error) { template, err := steps.DecodeKymaTemplate(operation.KymaTemplate) + err = fmt.Errorf("technical error") if err != nil { return a.operationManager.OperationFailed(operation, "unable to create a kyma template", err, logger) } diff --git a/internal/process/provisioning/create_runtime_resource_step.go b/internal/process/provisioning/create_runtime_resource_step.go index 1ac1fd6273..c0c5c4e57e 100644 --- a/internal/process/provisioning/create_runtime_resource_step.go +++ b/internal/process/provisioning/create_runtime_resource_step.go @@ -70,8 +70,6 @@ func (s *CreateRuntimeResourceStep) Name() string { } func (s *CreateRuntimeResourceStep) Run(operation internal.Operation, log *slog.Logger) (internal.Operation, time.Duration, error) { - return s.operationManager.OperationFailed(operation, fmt.Sprintf("while updating Runtime resource object"), nil, log) - if time.Since(operation.UpdatedAt) > CreateRuntimeTimeout { log.Info(fmt.Sprintf("operation has reached the time limit: updated operation time: %s", operation.UpdatedAt)) return s.operationManager.OperationFailed(operation, fmt.Sprintf("operation has reached the time limit: %s", CreateRuntimeTimeout), nil, log)