diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 09:08:30 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 09:08:30 +0300 |
commit | ab128cc125f9db0c3a1bd48845f90c3d61ef42c9 (patch) | |
tree | c3a1fc2bc7a6109b35597fd6e7a0a11089af0ec4 /lib/gitlab/ci/pipeline/seed/deployment.rb | |
parent | a6011c3d70e0e8ac318ba6629183c44f8614c4df (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/pipeline/seed/deployment.rb')
-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 |