Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-21Remove legacy Kubernetes #actual_namespaceTiger
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).
2019-05-03Add gitlab-managed option to clusters formMayra Cabrera
When this option is enabled, GitLab will create namespaces and service accounts as usual. When disabled, GitLab wont create any project specific kubernetes resources Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
2019-04-29Remove superfluous navigator operatorPeter Leitzen
2019-04-29Use correct k8s namespace in Prometheus queriesPeter Leitzen
Before this commit the wrong namespace could have been used in Prometheus queries for group-level installations.
2019-04-23Upgrade Rails to 5.1.6.1Jasper Maes
Model.new.attributes now also returns encrypted attributes.
2019-03-29Renames Cluster#managed? to provided_by_user?Mayra Cabrera
This will allow to user the term managed? on https://gitlab.com/gitlab-org/gitlab-ce/issues/56557. Managed? will be used to distinct clusters that are automatically managed by GitLab
2019-03-28Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas
2019-03-21Update dashboards to additionally use new environment selectorJames Fargher
Deploy boards now will check for app.gitlab.com/env and app.gitlab.com/app
2019-03-07Resolve "Mask the existing variables"Matija Čupić
2019-02-21Do not allow local urls in Kubernetes formThong Kuah
Use existing `public_url` validation to block various local urls. Note that this validation will allow local urls if the "Allow requests to the local network from hooks and services" admin setting is enabled. Block KubeClient from using local addresses It will also respect `allow_local_requests_from_hooks_and_services` so if that is enabled KubeClinet will allow local addresses
2019-02-11Merge branch '55447-validate-k8s-ca-cert' into 'master'Dmitriy Zaporozhets
Validate k8s CA certificate at cluster creation See merge request gitlab-org/gitlab-ce!24990
2019-02-08Validate kubernetes cluster CA certificateTiger
No certificate is still accepted, but if one is provided it must be valid. Only run validation if the certificate has changed to avoid making existing records invalid.
2019-02-04Moves domain setting to Cluster settingMayra Cabrera
Changes domain field to be on the Cluster page show, removing it from Auto DevOps setting. Also injects the new environment variable KUBE_INGRESS_BASE_DOMAIN into kubernetes#predefined_variables. Migration to move the information from ProjectAutoDevops#domain to Clusters::Cluster#domain. As well as necessary modifications to qa selectors Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
2019-01-24Enable the Layout/ExtraSpacing copRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-04Make RBAC enabled default for new clustersDylan Griffith
Many changes were also made to tests that expected this to default to false.
2018-12-27Merge branch '55551-nomethoderror-undefined-method-for-nil-nilclass' into ↵Kamil Trzciński
'master' Handle nil terminals in Clusters::Platforms::Kubernetes Closes #55551 See merge request gitlab-org/gitlab-ce!23925
2018-12-21Rename `ClusterPlatformConfigureWorker`George Tsiolis
2018-12-19Handle nil terminals in Clusters::Platforms::KubernetesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-05Merge branch 'set-kubeconfig-nil-when-token-nil' into 'master'Dmitriy Zaporozhets
Make KUBECONFIG nil if KUBE_TOKEN is nil See merge request gitlab-org/gitlab-ce!23414
2018-12-04Fallback to admin token for project clusters onlyThong Kuah
We do not want group level clusters to fall back to what was old behaviour for project level clusters. So instead we will not return any KUBE_TOKEN if we cannot find a suitable kubernetes_namespace for the project, in the group level cluster case. Add test cases to assert above
2018-11-30Make KUBECONFIG nil if KUBE_TOKEN is nilDylan Griffith
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.
2018-11-13Show HTTP response code for Kubernetes errorsThong Kuah
2018-11-13Fix deployment jobs using nil tokenThong Kuah
2018-11-08Still raise if there's no #actual_namespaceThong Kuah
However, we only need to raise for project_type clusters to maintain previous behaviour. In all probablity this requirement to have actual_namespace came from KubernetesService and will no longer be required soon.
2018-11-08Consolidate how we allow user defined namespaceThong Kuah
Use model method as single source of truth instead of splitting between presenter and Kubernetes model
2018-11-08Only project clusters has Project Namespace fieldThong Kuah
Group clusters should not allow Project Namespace so don't show that field input too
2018-11-08Group clusters will have no actual_namespaceThong Kuah
Remove the requirement to have actual_namespace before using kubeclient.
2018-11-03Merge branch 'master' into triggermesh-phase1-knativeChris Baumbauer
2018-11-02Incorporates Kubernetes Namespace into Cluster's flowThong Kuah
2018-11-02Merge branch 'master' into triggermesh-phase1-knativeChris Baumbauer
2018-10-25Update helm version 1.7.2 -> 2.11.0Chris Baumbauer
2018-10-23Store version within SUPPORTED_API_GROUPS hashThong Kuah
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.
2018-10-23Update all usages of KubeClientThong Kuah
Find and replace everywhere we pass in `api_groups` to KubeClient, as no longer needed
2018-10-22Add Clusters::KubernetesNamespace modelMayra Cabrera
This model will be used to persist into database Kubernetes properties, such as namespace, service account name and service account token.
2018-09-06Enable Kubernetes RBAC for GitLab Managed Apps for existing clustersThong Kuah
2018-08-03Enable frozen string for app/models/**/*.rbgfyoung
Partially addresses #47424.
2018-06-02Fix attr_encryption key settingsStan Hu
attr_encrypted does different things with `key` depending on what mode you are using: 1. In `:per_attribute_iv_and_salt` mode, it generates a hash with the salt: https://github.com/attr-encrypted/encryptor/blob/c3a62c4a9e74686dd95e0548f9dc2a361fdc95d1/lib/encryptor.rb#L77. There is no need to truncate the key to 32 bytes here. 2. In `:per_attribute_iv` mode, it sets the key directly to the password, so truncation to 32 bytes is necessary. Closes #47166
2018-05-30Upgrade to Ruby 2.4.4Stan Hu
Fixes that make this work: * A change in Ruby (https://github.com/ruby/ruby/commit/ce635262f53b760284d56bb1027baebaaec175d1) requires passing in the exact required length for OpenSSL keys and IVs. * Ensure the secrets.yml is generated before any prepended modules are loaded. This is done by renaming the `secret_token.rb` initializer to `01_secret_token.rb`, which is a bit ugly but involves the least impact on other files.
2018-03-17Merge branch 'master' into 'update-kubeclient'Grzegorz Bizon
Conflicts: Gemfile.lock
2018-03-15Replace KubeException with Kubeclient::HttpError (kubeclient 3.0)Pirate Praveen
2018-03-14DRY remaining instances of predefined variablesGrzegorz Bizon
2018-02-06Replace "cluster" with "Kubernetes cluster"Winnie Hellmann
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2017-12-05Second iteration of Move Kubernetes from service to Cluster pageFilipa Lacerda
2017-11-28Fix static analysysShinya Maeda
2017-11-28Fix unit testsShinya Maeda
2017-11-28Remove logic which glues with KubernetesService, from Platforms::KubernetesShinya Maeda
2017-11-28Check diff between KubernetesService and Platforms::Kubernetes. Synchronize ↵Shinya Maeda
again.
2017-11-28Revert KubernetesService logic in Platforms::KubernetesShinya Maeda
2017-11-06Add active? to Platforms::KubernetesKamil Trzcinski