Skip to content

Commit

Permalink
TODOs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslaw-pieszka committed Jul 11, 2024
1 parent 3409a50 commit 50654f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/process/provisioning/create_runtime_resource_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand All @@ -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
}
Expand Down

0 comments on commit 50654f5

Please sign in to comment.