summaryrefslogtreecommitdiff
path: root/spec/models/clusters/applications
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert RestClient to Gitlab::HTTP for Prometheus MonitorDavid Wilkins2019-08-071-8/+7
| | | | | | | | | | | | | | | | | | | | | | - Closes #60024 - Change PrometheusClient.new to accept a base url instead of an already created RestClient - Use Gitlab::HTTP in PrometheusClient instead of creating RestClient in PrometheusService - Move http_options from PrometheusService to PrometheusClient (follow_redirects: false) - ensure that base urls don't have the trailing slash - Created a `PrometheusClient#url` method that might not be strictly required - Change rescued exceptions from RestClient::* to HTTParty::ResponseError where possible and StandardError for the rest
* Allow Cert-Manager to be uninstalled60664-kubernetes-applications-uninstall-cert-managerTiger2019-08-051-1/+39
| | | | | | Our current version of Cert-Manager does not uninstall cleanly, and we must manually remove custom resource definitions.
* All Kubectl command should return array by defaultJoão Cunha2019-08-022-3/+3
|
* Implement Helm ResetCommand for removing TillerDylan Griffith2019-08-021-3/+56
| | | | | | | | | | | | | Also creates specs Only allow Helm to be uninstalled if it's the only app - Remove Tiller leftovers after reser command - Fixes specs and offenses Adds changelog file Fix reset_command specs
* Merge branch '65297-fix-typo-on-clusters_applications_cert_managers-factory' ↵Thong Kuah2019-07-311-5/+5
|\ | | | | | | | | | | | | | | | | into 'master' Resolve "Fix typo on clusters_applications_cert_managers factory" Closes #65297 See merge request gitlab-org/gitlab-ce!31278
| * Remove typo from factory name65297-fix-typo-on-clusters_applications_cert_managers-factoryJoão Cunha2019-07-301-5/+5
| | | | | | | | | | - the typo in this factory name was precluding us from properly creating dynamic code to remove duplciation.
* | Allow knative do be uninstalled:João Cunha2019-07-312-2/+42
|/ | | | | | | | | | | | | | - After uninstalling the knative helm chart it's necessary to also remove some leftover resources to allow the cluster to be clean and knative to be reinstalleable. - Adds knative uninstall disclaimer - Uninstall ksvc before uninstalling knative Make list of Knative and Ingres resources explicit - To avoid deleting unwanted resources we are listing exact which resources will be deleted rather than simply deleting any resource that contains istio or knative words.
* Enable GitLabb runner to be uninstalled from clusterJoão Cunha2019-07-161-1/+32
| | | | | | - Set as uninstallable app - Update docs - Adjust specs
* Enables ingress for uninstallationJoão Cunha2019-07-021-1/+15
| | | | - JupyterHub must not be available (installed or updated)
* Allow JupyterHub to be uninstalledJoão Cunha2019-07-011-1/+1
| | | | | | - enabled uninstallation - give it a specific uninstall message - ajust specs
* Knative version bump 0.5 -> 0.6Chris Baumbauer2019-06-191-1/+1
|
* Setup Git client for JupyterAmit Rathi2019-06-051-0/+2
|
* Adapt functions to work for external KnativeJoão Cunha2019-05-291-76/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove Kn services cache from Clusters::Application::Knative Knative function can exist even if user did not installed Knative via GitLab managed apps. -> Move responsibility of finding services into the Cluster -> Responsability is inside Clusters::Cluster::KnativeServiceFinder -> Projects::Serverless::FunctionsFinder now calls depends solely on a cluster to find the Kn services. -> Detect Knative by resource presence instead of service presence -> Mock knative_installed response temporarily for frontend to develop Display loader while `installed === 'checking'` Added frontend work to determine if Knative is installed Memoize with_reactive_cache(*args, &block) to avoid race conditions When calling with_reactive_cache more than once, it's possible that the second call will already have the value populated. Therefore, in cases where we need the sequential calls to have consistent results, we'd fall under a race condition. Check knative installation via Knative resource presence Only load pods if Knative is discovered Always return a response in FunctionsController#index - Always indicate if Knative is installed, not installed or checking - Always indicate the partial response for functions. Final response is guaranteed when knative_installed is either true | false. Adds specs for Clusters::Cluster#knative_services_finder Fix method name when calling on specs Add an explicit check for functions Added an explicit check to see if there are any functions available Fix Serverless feature spec - we don't find knative installation via database anymore, rather via Knative resource Display error message for request timeouts Display an error message if the request times out Adds feature specs for when functions exist Remove a test purposed hardcoded flag Add ability to partially load functions Added the ability to partially load functions on the frontend Add frontend unit tests Added tests for the new frontend additions Generate new translations Generated new frontend translations Address review comments Cleaned up the frontend unit test. Added computed prop for `isInstalled`. Move string to constant Simplify nil to array conversion Put knative_installed states in a frozen hash for better read Pluralize list of Knative states Quey services and pods filtering name This way we don't need to filter the namespace in memory. Also, the data we get from the network is much smaller. Simplify cache_key and fix bug - Simplifies the cache_key by removing namespace duplicate - Fixes a bug with reactive_cache memoization
* Instance level kubernetes clusters adminJames Fargher2019-05-071-3/+15
| | | | | Instance level clusters were already mostly supported, this change adds admin area controllers for cluster CRUD
* Minor refactor of prometheus_specDylan Griffith2019-04-291-4/+2
|
* In Prometheus use update! instead of updateDylan Griffith2019-04-291-1/+1
| | | | | In order to not miss any errors since we are not checking the return value of update
* Deactivate any prometheus_service upon destroyThong Kuah2019-04-291-0/+17
| | | | Basically does the reverse of after_transition to :installed.
* Teach Prometheus about #uninstall_commandThong Kuah2019-04-291-0/+28
| | | | Add specs
* Expose can_uninstall in cluster_status.jsonThong Kuah2019-04-297-0/+51
| | | | | | | | Only prometheus can be uninstalled atm, the rest will be dealt with later. Presumption is that new application types will have uninstallation implmemented at the same time.
* Use constants for assertion for helm chart testSteve Azzopardi2019-04-241-2/+2
| | | | | | | We are duplicating the value from the constant `Clusters::Applications::Runner::VERSION` inside of the tests which results into developers having to update the tests as well when they want to upgrade the Helm chart used for GitLab Runner
* Update GitLab Runner Helm Chart to 0.4.0update-gitlab-runner-helm-chart-to-0-4-0Steve Azzopardi2019-04-191-2/+2
|
* Bump version of knative from 0.3 -> 0.5Chris Baumbauer2019-04-171-1/+1
|
* Autocorrect with RSpec/ExampleWording copThong Kuah2019-04-057-35/+35
| | | | | | | - rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
* Fix cert_manager_spec to not modify StringThong Kuah2019-04-011-3/+24
| | | | Also break up long string to be readable
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-017-0/+14
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Knative version bump 0.2.2 -> 0.3.0Chris Baumbauer2019-03-281-1/+1
|
* Allow runners to be installed on group clustersTiger Watson2019-03-261-11/+32
| | | | | A runner installed on a cluster will now use the cluster's `cluster_type` as its `runner_type`.
* Update GitLab Runner Helm Chart to 0.3.0Tomasz Maczukin2019-03-221-2/+2
|
* Add support for ingress hostnamesingress-hostnameswalkafwalka2019-03-073-0/+23
|
* Merge branch 'restrict-jupyter-login' of ↵Amit Rathi2019-03-071-2/+3
| | | | https://gitlab.com/amit1rrr/gitlab-ce into restrict-jupyter-login
* 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
* 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
* | 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
* Upgrade cluster applications, starting with runnerThong Kuah2019-02-076-2/+8
|
* 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.
* 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-046-30/+30
| | | | | Many changes were also made to tests that expected this to default to false.
* Add Knative metrics to PrometheusChris Baumbauer2019-01-032-0/+32
|
* Update GitLab Runner Helm Chart to 0.1.43update-gitlab-runner-helm-chart-to-0-1-43Tomasz Maczukin2018-12-311-3/+3
|
* 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>
* Upgrade Knative from 0.1.3 to 0.2.2Chris Baumbauer2018-12-111-3/+3
|