summaryrefslogtreecommitdiff
path: root/app/models/project_services/kubernetes_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy Kubernetes #actual_namespace61935-remove-code-left-over-from-when-clusters-were-always-project-specificTiger2019-05-211-10/+8
| | | | | | | | | | | | | | | | | | When Kubernetes clusters were originally built they could only exist at the project level, and so there was logic included that assumed there would only ever be a single Kubernetes namespace per cluster. We now support clusters at the group and instance level, which allows multiple namespaces. This change consolidates various project-specific fallbacks to generate namespaces, and hands all responsibility to the Clusters::KubernetesNamespace model. There is now no concept of a single namespace for a Clusters::Platforms::Kubernetes; to retrieve a namespace a project must now be supplied in all cases. This simplifies upcoming work to use a separate Kubernetes namespace per project environment (instead of a namespace per project).
* Also define KubernetesService#namespace_forPeter Leitzen2019-04-291-0/+4
|
* Update dashboards to additionally use new environment selectorJames Fargher2019-03-211-2/+2
| | | | | Deploy boards now will check for app.gitlab.com/env and app.gitlab.com/app
* Resolve "Mask the existing variables"Matija Čupić2019-03-071-1/+1
|
* Use OpenShift in docs and Web UI instead of OpenshiftTakuya Noguchi2019-01-021-1/+1
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Make KUBECONFIG nil if KUBE_TOKEN is nilDylan Griffith2018-11-301-3/+1
| | | | | | | | | | | | | | | | Having an invalid KUBECONFIG without a token in it is not helpful. This only became possible recently now that we are creating a separate namespace and service account (and hence token) to send to the runners. This led to somewhat surprising results when troubleshooting https://gitlab.com/gitlab-org/gitlab-ce/issues/53879 as I found that the KUBECONFIG was still being passed but KUBE_TOKEN was not. These things really should have been linked. Furthermore now that we are also using the [presence of KUBECONFIG to decide whether or not to run build steps in Auto DevOps](https://gitlab.com/gitlab-org/gitlab-ce/blob/294d15be3e9497e7b67e1f9131ce9d5c0d68406c/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml#L164) I think it makes even more sense to ensure that KUBECONFIG is a complete config if passed to a job.
* Show HTTP response code for Kubernetes errorsThong Kuah2018-11-131-3/+1
|
* Incorporates Kubernetes Namespace into Cluster's flowThong Kuah2018-11-021-1/+6
|
* Store version within SUPPORTED_API_GROUPS hashrefactor_gitlab_kube_clientThong Kuah2018-10-231-2/+1
| | | | | | This removes the ability to pass in a different version. We can instead create a new entry in the SUPPORTED_API_GROUPS hash for a different version if need be.
* Update all usages of KubeClientThong Kuah2018-10-231-3/+2
| | | | | Find and replace everywhere we pass in `api_groups` to KubeClient, as no longer needed
* Enable Kubernetes RBAC for GitLab Managed Apps for existing clustersThong Kuah2018-09-061-17/+9
|
* Enable frozen string in rest of app/models/**/*.rbgfyoung2018-08-101-0/+2
| | | | Partially addresses #47424.
* Don't consider a new inactive KubernetesService invalidDouwe Maan2018-07-051-1/+1
|
* Add validation to webhook and service URLs to ensure they are not blocked ↵Francisco Javier López2018-06-011-1/+1
| | | | because of SSRF
* Merge branch 'master' into 'update-kubeclient'Grzegorz Bizon2018-03-171-12/+12
|\ | | | | | | Conflicts: Gemfile.lock
| * DRY remaining instances of predefined variablesGrzegorz Bizon2018-03-141-8/+12
| |
| * Extract variables collection item to a separate classGrzegorz Bizon2018-03-121-3/+1
| |
| * Make variables collection to runner mapping explicitGrzegorz Bizon2018-03-071-1/+1
| |
| * Merge branch 'master' into backstage/gb/refactor-ci-cd-variables-collectionsGrzegorz Bizon2018-03-071-3/+44
| |\ | | | | | | | | | * master: (6164 commits)
| * | Introduce CI/CD variables collection classGrzegorz Bizon2017-09-221-11/+9
| | |
* | | Replace KubeException with Kubeclient::HttpError (kubeclient 3.0)Pirate Praveen2018-03-151-1/+1
| |/ |/|
* | Replace "cluster" with "Kubernetes cluster"winh-kubernetes-clustersWinnie Hellmann2018-02-061-5/+6
| |
* | use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa2018-02-021-2/+1
| | | | | | | | including/extending it
* | 41054-Disallow creation of new Kubernetes integrationsMayra Cabrera2018-01-041-0/+28
| |
* | Check diff between KubernetesService and Platforms::Kubernetes. Synchronize ↵Shinya Maeda2017-11-281-0/+5
| | | | | | | | again.
* | Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | | | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* | Improve backend structure of dataKamil Trzcinski2017-11-021-4/+2
| |
* | Merge branch 'refactor-clusters' into 38464-k8s-appsKamil Trzcinski2017-11-021-1/+4
|\ \
| * | Add KubernetesService#default_namespace testsac-k8s-namespace-validatorAlessio Caiazza2017-10-261-9/+2
| | |
| * | namespace should be lowercased in kubernetes. This is also true for the ↵Mircea Danila Dumitrescu2017-10-041-1/+11
| |/ | | | | | | scenario where the namespace is generated from the project group-name.
* | Install k8s application with helm running inside the clusterAlessio Caiazza2017-11-021-0/+6
|/
* Enfouce namespace for Kubernetes to lowercaseShinya Maeda2017-08-221-0/+6
|
* Resolve "Clarify k8s service keys"Dimitrie Hoekstra2017-07-191-10/+10
|
* Rename KUBECONFIG_FILE to KUBECONFIGLin Jen-Shin2017-07-061-1/+1
|
* Changelog entry, doc, and only pass KUBECONFIG_FILELin Jen-Shin2017-06-161-2/+1
|
* Generate KUBECONFIG in KubernetesService#predefined_variablesLin Jen-Shin2017-06-161-1/+13
|
* Backport EE changes to the Kubernetes serviceNick Thomas2017-06-141-19/+18
|
* Fix terminals support for Kubernetes serviceKamil Trzcinski2017-05-251-12/+12
| | | | It was broken, because we introduced a default namespace, which was not used by terminal methods.
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't autofill kubernetes namespaceZ.J. van de Weg2017-04-041-13/+30
|
* Make a default namespace of Kubernetes service to contain project IDdefault-kubernetes-namespaceKamil Trzcinski2017-03-061-1/+1
|
* Add KUBE_CA_PEM_FILE, deprecate KUBE_CA_PEMNick Thomas2017-03-031-1/+6
|
* Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-3/+3
| | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
* Enable Style/MultilineHashBraceLayoutDouwe Maan2017-02-231-8/+4
|
* Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-3/+3
|
* Enable Style/SpaceInsideBracketsDouwe Maan2017-02-231-2/+2
|
* Introduce maximum session time for terminal websocket connectionterminal-max-session-timeAdam Niedzielski2017-02-061-1/+10
| | | | | Store the value in application settings. Expose the value to Workhorse.
* adds test suite22974-trigger-service-events-through-apiTiago Botelho2017-01-221-8/+0
|
* adds events to services api deserializationTiago Botelho2017-01-221-1/+9
|
* Add terminals to the Kubernetes deployment serviceNick Thomas2016-12-191-11/+56
|