diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline/seed/deployment.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/deployment.rb b/lib/gitlab/ci/pipeline/seed/deployment.rb index 624189acc8a..69dfd6be8d5 100644 --- a/lib/gitlab/ci/pipeline/seed/deployment.rb +++ b/lib/gitlab/ci/pipeline/seed/deployment.rb @@ -23,12 +23,12 @@ module Gitlab # non-environment job. return unless deployment.valid? && deployment.environment.persisted? - if cluster_id = deployment.environment.deployment_platform&.cluster_id + if cluster = deployment.environment.deployment_platform&.cluster # double write cluster_id until 12.9: https://gitlab.com/gitlab-org/gitlab/issues/202628 - deployment.cluster_id = cluster_id + deployment.cluster_id = cluster.id deployment.deployment_cluster = ::DeploymentCluster.new( - cluster_id: cluster_id, - kubernetes_namespace: deployment.environment.deployment_namespace + cluster_id: cluster.id, + kubernetes_namespace: cluster.kubernetes_namespace_for(deployment.environment, deployable: job) ) end |