Skip to content

Incorporates Kubernetes Namespace into Cluster's flow

Thong Kuah requested to merge 51716-create-kube-namespace into master

What does this MR do?

Incorporates Clusters::KubernetesNamespace into clusters flow:

  • Create the namespace/service account in GCP Kubernetes, when creating a cluster
  • Create the namespace/service account in GCP Kubernetes, when adding a cluster
  • Create the namespace/service account in GCP Kubernetes, when modifying namespace
  • Replace KUBE_TOKEN and KUBECONFIG (passed to CI) with new credentials

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/51716

Does this MR meet the acceptance criteria?

Manual QA

ABAC Cluster

  • Add a Cluster
  • Check namespace/service account were created on kubernetes side
  • Install applications
  • Run AutoDevOps pipeline

RBAC Cluster

Creating cluster

  • Create Cluster
  • Check namespace/service account were created on kubernetes side
  • Install applications
  • Run AutoDevOps pipeline

Auto DevOps for ABAC

  • Switch to master branch
  • Create a cluster ABAC
  • Switch to this branch, restart GDK
  • Run Auto DevOps pipeline

Auto DevOps for RBAC

  • Switch to master branch
  • Create a cluster
  • Switch to this branch, restart GDK
  • Run Auto DevOps pipeline
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading