-
- Downloads
There was an error fetching the commit references. Please try again later.
Don't use Kubernetes namespaces with no token
Whenever we are selecting a namespace to use for a deployment or to query a cluster we want to exclude Kubernetes namespace records that don't have a token set as they will not have the required permissions. However when configuring clusters, we want to use the original namespace record even if it has no token, as a namespace has to be unique on a cluster.
Showing
- app/models/clusters/cluster.rb 22 additions, 3 deletionsapp/models/clusters/cluster.rb
- changelogs/unreleased/63079-exclude-k8s-namespaces-with-no-service-account-token.yml 6 additions, 0 deletions...-exclude-k8s-namespaces-with-no-service-account-token.yml
- spec/lib/gitlab/ci/build/prerequisite/kubernetes_namespace_spec.rb 1 addition, 1 deletion...gitlab/ci/build/prerequisite/kubernetes_namespace_spec.rb
- spec/models/clusters/cluster_spec.rb 57 additions, 0 deletionsspec/models/clusters/cluster_spec.rb
- spec/models/clusters/platforms/kubernetes_spec.rb 15 additions, 1 deletionspec/models/clusters/platforms/kubernetes_spec.rb
Please register or sign in to comment