Skip to content

EE: Use group clusters when deploying (DeploymentPlatform)

Thong Kuah requested to merge ee-34758-deployment-cluster into master

What does this MR do?

Updates DeploymentPlatform to use group level clusters (EE counterpart to CE Merge Request)

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/34758, https://gitlab.com/gitlab-org/gitlab-ce/issues/53592

Tasks

  • ee/app/models/concerns/ee/deployment_platform.rb
  • tests

Manual QA

  • Turn on CI_DEBUG_TRACE
  • Make two group cluster, * and review/*
    • Namespace and SA for project is created in each cluster
    • Add a group CI variables for AUTO_DEVOPS_DOMAIN
    • Run auto devops pipeline on master a project in the group - Expect deploy to * group clusters (check kubernetes pods)
    • Run auto devops pipeline on branch a project in the group - Expect deploy to review/* group clusters (check kubernetes pods)
    • check KUBE_TOKEN sent is restricted SA
  • make two project clusters, * and review/*
    • Namespace and SA for project is created in each cluster
    • set AUTO_DEVOPS_DOMAIN variable at project level
    • Run auto devops pipeline on master - Expect deploy to project * clusters (check kubernetes pods)
    • Run auto devops pipeline on branch - Expect deploy to project review/* clusters (check kubernetes pods)
    • check KUBE_TOKEN sent is restricted SA
  • Disable project review/* cluster
    • Run auto devops pipeline - Expect deploy to project * cluster (check kubernetes pods)
  • Disable project * cluster
    • Run auto devops pipeline - Expect deploy to group review/* cluster (check kubernetes pods)

Deploying to * group cluster: Screen_Shot_2018-12-04_at_10.02.49_PM

Does this MR meet the acceptance criteria?

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading