summaryrefslogtreecommitdiff
path: root/spec/models/clusters
Commit message (Collapse)AuthorAgeFilesLines
* Add support for ingress hostnamesingress-hostnameswalkafwalka2019-03-074-0/+24
|
* Resolve "Mask the existing variables"Matija Čupić2019-03-072-6/+6
|
* Merge branch 'restrict-jupyter-login' of ↵Amit Rathi2019-03-071-2/+3
| | | | https://gitlab.com/amit1rrr/gitlab-ce into restrict-jupyter-login
* Merge branch '56937-edit-knative-domain' into 'master'Grzegorz Bizon2019-03-071-4/+22
|\ | | | | | | | | | | | | Edit Knative domain after it has been deployed Closes #56937 See merge request gitlab-org/gitlab-ce!25386
| * Creates Clusterss::ApplciationsController update endpointJoão Cunha2019-03-051-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Creates new route - Creates new controller action - Creates call stack: Clusterss::ApplciationsController calls --> Clusters::Applications::UpdateService calls --> Clusters::Applications::ScheduleUpdateService calls --> ClusterUpdateAppWorker calls --> Clusters::Applications::PatchService --> ClusterWaitForAppInstallationWorker DRY req params Adds gcp_cluster:cluster_update_app queue Schedule_update_service is uneeded Extract common logic to a parent class (UpdateService will need it) Introduce new UpdateService Fix rescue class namespace Fix RuboCop offenses Adds BaseService for create and update services Remove request_handler code duplication Fixes update command Move update_command to ApplicationCore so all apps can use it Adds tests for Knative update_command Adds specs for PatchService Raise error if update receives an unistalled app Adds update_service spec Fix RuboCop offense Use subject in favor of go Adds update endpoint specs for project namespace Adds update endpoint specs for group namespace
* | Merge branch 'security-kubernetes-local-ssrf' into 'master'Yorick Peterse2019-03-041-0/+16
|\ \ | |/ |/| | | | | Block local URLs for Kubernetes integration See merge request gitlab/gitlabhq!2901
| * Do not allow local urls in Kubernetes formThong Kuah2019-02-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | 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
* | Update GitLab Runner Helm Chart to 0.2.0Tomasz Maczukin2019-02-221-2/+2
| |
* | Merge branch 'move_ready_to_application_concern' into 'master'Stan Hu2019-02-191-59/+0
|\ \ | | | | | | | | | | | | Remove application `#ready?` See merge request gitlab-org/gitlab-ce!25128
| * | Move common method to application concernThong Kuah2019-02-151-59/+0
| |/ | | | | | | | | | | This could be potentially useful to all cluster applications. Address followup issue https://gitlab.com/gitlab-org/gitlab-ce/issues/56524
* | Merge branch '57650-remove-tld-validation-from-cluster' into 'master'Nick Thomas2019-02-151-3/+3
|\ \ | | | | | | | | | | | | | | | | | | Remove TLD validation from cluster domain Closes #57650 See merge request gitlab-org/gitlab-ce!25262
| * | Remove TLD validation from Cluster#domainDylan Griffith2019-02-141-3/+3
| |/
* | Rename scope to imply :installed and :updated resultJoão Cunha2019-02-155-64/+5
|/ | | | | | - Adds to specs the case where apps are also updated - Rename scope calls on Gitlab::UsageData and Clusters::Cluster - Removes a duplicated spec
* Merge branch '55447-validate-k8s-ca-cert' into 'master'Dmitriy Zaporozhets2019-02-112-2/+32
|\ | | | | | | | | Validate k8s CA certificate at cluster creation See merge request gitlab-org/gitlab-ce!24990
| * Validate kubernetes cluster CA certificate55447-validate-k8s-ca-certTiger2019-02-082-2/+32
| | | | | | | | | | | | 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.
* | Upgrade cluster applications, starting with runnerThong Kuah2019-02-076-2/+8
| |
* | Merge branch '52363-ui-changes-to-cluster-and-ado-pages' into 'master'Grzegorz Bizon2019-02-072-0/+118
|\ \ | |/ |/| | | | | | | | | Moves domain setting to Clusters page Closes #52363 See merge request gitlab-org/gitlab-ce!24580
| * Addresses UX and BE comments:52363-ui-changes-to-cluster-and-ado-pagesMayra Cabrera2019-02-061-16/+62
| | | | | | | | | | | | - Changes help text on clusters form to make it more explicit. - Removes unnecessary warnings on auto devops form - Simplifies cluster methods logic
| * Moves domain setting to Cluster settingMayra Cabrera2019-02-042-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Refactor specs to run shared parts only when usedThong Kuah2019-02-075-0/+5
| | | | | | | | | | | | | | All applications except for Jupyter have the same #set_initial_status, so create a new shared example which we include in all application specs except for juptyer_spec. Juptyer specs already have specs for it's version of #set_initial_status
* | Update version on :installed, not :installingThong Kuah2019-02-076-84/+2
|/ | | | | | This makes this consistent with :updated. And also avoids a potential issue where an install errors which means that that the recorded version won't necessarily reflect the version that is actually installed.
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add domain field into Clusters::ClusterMayra Cabrera2019-01-221-1/+26
| | | | | | | This is the 1st step for moving Auto DevOps domain into cluster settings, whether is project or group. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
* Update GitLab Runner Helm Chart to 0.1.45Tomasz Maczukin2019-01-221-3/+3
|
* Merge branch '55544-port-upgrade-command' into 'master'Kamil Trzciński2019-01-181-0/+97
|\ | | | | | | | | Port generic Helm upgrade functionality to CE See merge request gitlab-org/gitlab-ce!23924
| * Port generic upgrade functionality to CE55544-port-upgrade-commandThong Kuah2019-01-151-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | Port from EE generic upgrade related functionality used to upgrade Helm applications Remove memoization which could be incorrect It looks like we are memoizing without regard to the method's argument so this could result in an incorrect upgrade_command Remove `const_get` indirection now we are no longer in EE
* | Merge branch 'bump-ingress-chart-112' into 'master'Dmitriy Zaporozhets2019-01-141-3/+3
|\ \ | | | | | | | | | | | | Bump nginx-ingress chart to 1.1.2 See merge request gitlab-org/gitlab-ce!24203
| * | Bump nginx-ingress chart to 1.1.2Thong Kuah2019-01-101-3/+3
| |/
* | Initial Serverless Functions detailed viewChris Baumbauer2019-01-101-1/+35
|/
* Require Knative to be installed only on an RBAC kubernetes clusterChris Baumbauer2019-01-041-0/+7
|
* Make RBAC enabled default for new clustersDylan Griffith2019-01-048-51/+33
| | | | | Many changes were also made to tests that expected this to default to false.
* Add Knative metrics to PrometheusChris Baumbauer2019-01-033-0/+33
|
* Update GitLab Runner Helm Chart to 0.1.43update-gitlab-runner-helm-chart-to-0-1-43Tomasz Maczukin2018-12-311-3/+3
|
* Merge branch '55716-update-cert-manager-chart-from-v0-5-0-to-v0-5-2' into ↵Sean McGivern2018-12-311-3/+3
|\ | | | | | | | | | | | | | | | | 'master' Update cert-manager chart from v0.5.0 to v0.5.2 Closes #55716 See merge request gitlab-org/gitlab-ce!24025
| * Update cert-manager chart from v0.5.0 to v0.5.2Takuya Noguchi2018-12-251-3/+3
| | | | | | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* | Merge branch '55551-nomethoderror-undefined-method-for-nil-nilclass' into ↵Kamil Trzciński2018-12-271-1/+2
|\ \ | |/ |/| | | | | | | | | | | | | 'master' Handle nil terminals in Clusters::Platforms::Kubernetes Closes #55551 See merge request gitlab-org/gitlab-ce!23925
| * Handle nil terminals in Clusters::Platforms::KubernetesRémy Coutable2018-12-191-1/+2
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Rename `ClusterPlatformConfigureWorker`George Tsiolis2018-12-211-2/+2
|/
* Upgrade Knative from 0.1.3 to 0.2.2Chris Baumbauer2018-12-111-3/+3
|
* Update gitlab runner helm chart to 0.1.39Tomasz Maczukin2018-12-071-3/+3
|
* Introduce Knative Serverless TabDylan Griffith2018-12-061-0/+42
|
* Eager load clusters to prevent N+1Thong Kuah2018-12-051-0/+16
| | | | | | This also means we need to apply the `current_scope` otherwise this method will return all clusters associated with the groups regardless of any scopes applied to this method
* Various improvements to hierarchy sortingThong Kuah2018-12-051-10/+22
| | | | | | | | | - Rename ordered_group_clusters_for_project -> ancestor_clusters_for_clusterable - Improve name of order option. It makes much more sense to have `hierarchy_order: :asc` and `hierarchy_order: :desc` - Allow ancestor_clusters_for_clusterable for group - Re-use code already present in Project
* Create k8s namespace for project in group clustersThong Kuah2018-12-051-0/+20
| | | | | | | | | | | | | | | | | | | | AFAIK the only relevant place is Projects::CreateService, this gets called when user creates a new project, forks a new project and does those things via the api. Also create k8s namespace for new group hierarchy when transferring project between groups Uses new Refresh service to create k8s namespaces - Ensure we use Cluster#cluster_project If a project has multiple clusters (EE), using Project#cluster_project is not guaranteed to return the cluster_project for this cluster. So switch to using Cluster#cluster_project - at this stage a cluster can only have 1 cluster_project. Also, remove rescue so that sidekiq can retry
* Teach Cluster about #all_projectsThong Kuah2018-12-051-0/+25
| | | | | For project level, it's the project directly associated. For group level, it's the projects under that group.
* Deploy to clusters for a project's groupsThong Kuah2018-12-051-0/+47
| | | | | | | | | | | | | | | | | | Look for matching clusters starting from the closest ancestor, then go up the ancestor tree. Then use Ruby to get clusters for each group in order. Not that efficient, considering we will doing up to `NUMBER_OF_ANCESTORS_ALLOWED` number of queries, but it's a finite number Explicitly order query by depth This allows us to control ordering explicitly and also to reverse the order which is useful to allow us to be consistent with Clusters::Cluster.on_environment (EE) which does reverse ordering. Puts querying group clusters behind Feature Flag. Just in case we have issues with performance, we can easily disable this
* Merge branch 'check-unique-values-of-pipeline-enum' into 'master'Kamil Trzciński2018-12-043-0/+6
|\ | | | | | | | | Check the uniqueness of the values of pipeline enum See merge request gitlab-org/gitlab-ce!23504
| * Fix coding offenceShinya Maeda2018-12-042-4/+4
| |
| * fix wordingShinya Maeda2018-12-033-3/+3
| |
| * Fix the coding styleShinya Maeda2018-12-033-5/+6
| |