summaryrefslogtreecommitdiff
path: root/app/models/clusters
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'security-kubernetes-local-ssrf' into 'master'Yorick Peterse2019-03-041-1/+1
|\ | | | | | | | | Block local URLs for Kubernetes integration See merge request gitlab/gitlabhq!2901
| * Do not allow local urls in Kubernetes formThong Kuah2019-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| |
* | Merge branch 'move_ready_to_application_concern' into 'master'Stan Hu2019-02-191-5/+0
|\ \ | | | | | | | | | | | | Remove application `#ready?` See merge request gitlab-org/gitlab-ce!25128
| * | Remove #ready? method in favor of #available?Thong Kuah2019-02-151-4/+0
| | | | | | | | | | | | | | | Given https://github.com/helm/helm/issues/3338, I think that we should exclude applications that are :update_errored, :updating as well.
| * | Move common method to application concernThong Kuah2019-02-152-5/+4
| |/ | | | | | | | | | | 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-1/+1
|\ \ | | | | | | | | | | | | | | | | | | 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-1/+1
| |/
* | Rename scope to imply :installed and :updated resultJoão Cunha2019-02-152-2/+9
|/ | | | | | - 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-111-0/+1
|\ | | | | | | | | 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-081-0/+1
| | | | | | | | | | | | 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.
* | Merge branch 'remove_make_updated_cluster_applications' into 'master'Douglas Barbosa Alexandre2019-02-081-5/+0
|\ \ | | | | | | | | | | | | | | | | | | Remove #make_updated! as have #make_installed! now Closes #57374 See merge request gitlab-org/gitlab-ce!24988
| * | Remove #make_updated! as have #make_installed! nowremove_make_updated_cluster_applicationsThong Kuah2019-02-081-5/+0
| | | | | | | | | | | | | | | We can have multiple and conditional transistions in a event, so make use of that.
* | | Merge branch '57397-fixes-technical-debt-for-cluster-domain' into 'master'Grzegorz Bizon2019-02-081-1/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Fixes technical debt issues for cluster domain Closes #57397 See merge request gitlab-org/gitlab-ce!25010
| * | Fixes technical debt issues for cluster domain57397-fixes-technical-debt-for-cluster-domainMayra Cabrera2019-02-071-1/+2
| | | | | | | | | | | | | | | | | | | | | - Avoid using direct code on spec migration - Removes milestone and point to issue, to avoid making fake promises Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57397
* | | Upgrade cluster applications, starting with runnerThong Kuah2019-02-073-6/+17
|/ /
* | Merge branch '52363-ui-changes-to-cluster-and-ado-pages' into 'master'Grzegorz Bizon2019-02-072-1/+40
|\ \ | |/ |/| | | | | | | | | 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-5/+23
| | | | | | | | | | | | - Changes help text on clusters form to make it more explicit. - Removes unnecessary warnings on auto devops form - Simplifies cluster methods logic
| * Addresses backend/db review commentsMayra Cabrera2019-02-041-0/+2
| | | | | | | | | | | | | | | | | | - Fixes multiple typos on AutoDevops script - Add an alias to Clusters::Cluster#domain as base_domain, so it's more descriptive - Removes unnecessary memoization on qa specs - Changes migration to a post migration to deal better with traffic on big instances (like gitlab.com)
| * Moves domain setting to Cluster settingMayra Cabrera2019-02-042-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Update version on :installed, not :installingThong Kuah2019-02-071-5/+1
| | | | | | | | | | | | 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.
* | Update version column after application is updatedThong Kuah2019-02-061-0/+4
|/ | | | | | | Note: updating version column after :updating is not ideal in the updating -> update_erroed case. This will mean that the application now records the version as the version that failed to upgrade, not the version that it is currently on.
* 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/+2
| | | | | | | 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-1/+1
|
* Merge branch '55544-port-upgrade-command' into 'master'Kamil Trzciński2019-01-182-6/+25
|\ | | | | | | | | Port generic Helm upgrade functionality to CE See merge request gitlab-org/gitlab-ce!23924
| * Refactor some methods in Prometheus modelThong Kuah2019-01-182-14/+7
| | | | | | | | | | | | | | | | - #update_errored? method def is redundant, already defined from state machine - #update_in_progress? moved to ApplicationStatus - #ready_status becomes a constant. Previously it was extended in ee/ so maybe that was why it's a instance method
| * Port generic upgrade functionality to CE55544-port-upgrade-commandThong Kuah2019-01-151-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|\ \ | | | | | | | | | | | | 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-1/+1
| |/
* | Initial Serverless Functions detailed viewChris Baumbauer2019-01-101-2/+18
|/
* Require Knative to be installed only on an RBAC kubernetes clusterChris Baumbauer2019-01-041-0/+11
|
* Make RBAC enabled default for new clustersDylan Griffith2019-01-041-0/+2
| | | | | Many changes were also made to tests that expected this to default to false.
* Add Knative metrics to PrometheusChris Baumbauer2019-01-033-3/+14
|
* Merge branch 'use-after-transition' into 'master'Grzegorz Bizon2019-01-032-2/+2
|\ | | | | | | | | | | | | Prefer to use after_transition Closes #55306 See merge request gitlab-org/gitlab-ce!24107
| * Prefer to use after_transitionuse-after-transitionKamil Trzciński2019-01-022-2/+2
| | | | | | | | | | | | | | | | Before_transition does not play nice when used with OptimisticLocking and this can result in triggering multiple events Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55306
* | Update GitLab Runner Helm Chart to 0.1.43update-gitlab-runner-helm-chart-to-0-1-43Tomasz Maczukin2018-12-311-1/+1
|/
* Merge branch '55716-update-cert-manager-chart-from-v0-5-0-to-v0-5-2' into ↵Sean McGivern2018-12-311-1/+1
|\ | | | | | | | | | | | | | | | | '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-1/+1
| | | | | | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* | Merge branch '55551-nomethoderror-undefined-method-for-nil-nilclass' into ↵Kamil Trzciński2018-12-271-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | '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/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Rename `ClusterPlatformConfigureWorker`George Tsiolis2018-12-211-1/+1
|/
* Upgrade Knative from 0.1.3 to 0.2.2Chris Baumbauer2018-12-111-1/+1
|
* Merge branch 'cert-manager-email' into 'master'Dmitriy Zaporozhets2018-12-071-0/+4
|\ | | | | | | | | Ability to override Issuer Email for Cert Manager See merge request gitlab-org/gitlab-ce!23503
| * Allows user to override default issuer email for cert managerAmit Rathi2018-12-071-0/+4
| |
* | Update gitlab runner helm chart to 0.1.39Tomasz Maczukin2018-12-071-1/+1
| |
* | Introduce Knative Serverless TabDylan Griffith2018-12-062-2/+44
| |
* | Merge branch '34758-deployment-cluster' into 'master'Kamil Trzciński2018-12-051-5/+35
|\ \ | | | | | | | | | | | | Use group clusters when deploying (DeploymentPlatform) See merge request gitlab-org/gitlab-ce!22308
| * | Eager load clusters to prevent N+1Thong Kuah2018-12-051-1/+2
| | | | | | | | | | | | | | | | | | 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-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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