From 50654f55b6b0103e4f47d7510d05bbc338912fb0 Mon Sep 17 00:00:00 2001 From: Pieszka Date: Thu, 11 Jul 2024 12:32:10 +0200 Subject: [PATCH] TODOs removed --- internal/process/provisioning/create_runtime_resource_step.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/process/provisioning/create_runtime_resource_step.go b/internal/process/provisioning/create_runtime_resource_step.go index 6d2204bef2..0dfbea94be 100644 --- a/internal/process/provisioning/create_runtime_resource_step.go +++ b/internal/process/provisioning/create_runtime_resource_step.go @@ -78,7 +78,7 @@ func (s *CreateRuntimeResourceStep) CreateResource(cr *imv1.Runtime) error { func (s *CreateRuntimeResourceStep) createRuntimeResourceObject(operation internal.Operation) (*imv1.Runtime, error) { runtime := imv1.Runtime{} runtime.ObjectMeta.Name = operation.RuntimeID - runtime.ObjectMeta.Namespace = "kcp-system" //TODO provide namespace + runtime.ObjectMeta.Namespace = operation.KymaResourceNamespace runtime.ObjectMeta.Labels = createLabelsForRuntime(operation) runtime.Spec.Shoot.Provider.Type = string(operation.ProvisioningParameters.PlatformProvider) runtime.Spec.Shoot.Provider.Workers = []gardener.Worker{} @@ -96,7 +96,7 @@ func createLabelsForRuntime(operation internal.Operation) map[string]string { "kyma-project.io/subaccount-id": operation.ProvisioningParameters.ErsContext.SubAccountID, "kyma-project.io/shoot-name": operation.ShootName, "kyma-project.io/region": *operation.ProvisioningParameters.Parameters.Region, - "operator.kyma-project.io/kyma-name": "kymaName", // TODO: provide Kyma name + "operator.kyma-project.io/kyma-name": operation.KymaResourceName, } return labels }