Class: GroupClusterablePresenter
Instance Method Summary
collapse
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
#can_add_cluster?, #can_admin_cluster?, #can_create_cluster?, #connect_path, #create_user_clusters_path, #environments_cluster_path, fabricate, #index_path, #new_cluster_docs_path
#initialize
#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!
#__subject__, #can?, #declarative_policy_delegate, #is_a?, #path_with_line_numbers, #present, #url_builder, #web_path, #web_url
#can?, #can_all?, #can_any?
includes_helpers, redirect_legacy_paths, url_helpers
Instance Method Details
#clear_cluster_cache_path(cluster) ⇒ Object
14
15
16
|
# File 'app/presenters/group_clusterable_presenter.rb', line 14
def clear_cluster_cache_path(cluster)
clear_cache_group_cluster_path(clusterable, cluster)
end
|
#cluster_path(cluster, params = {}) ⇒ Object
29
30
31
|
# File 'app/presenters/group_clusterable_presenter.rb', line 29
def cluster_path(cluster, params = {})
group_cluster_path(clusterable, cluster, params)
end
|
#cluster_status_cluster_path(cluster, params = {}) ⇒ Object
9
10
11
|
# File 'app/presenters/group_clusterable_presenter.rb', line 9
def cluster_status_cluster_path(cluster, params = {})
cluster_status_group_cluster_path(clusterable, cluster, params)
end
|
#create_cluster_migration_path(cluster) ⇒ Object
19
20
21
|
# File 'app/presenters/group_clusterable_presenter.rb', line 19
def create_cluster_migration_path(cluster)
migrate_group_cluster_path(clusterable, cluster)
end
|
#empty_state_help_text ⇒ Object
34
35
36
|
# File 'app/presenters/group_clusterable_presenter.rb', line 34
def empty_state_help_text
s_('ClusterIntegration|Adding an integration to your group will share the cluster across all your projects.')
end
|
#learn_more_link ⇒ Object
44
45
46
|
# File 'app/presenters/group_clusterable_presenter.rb', line 44
def learn_more_link
ApplicationController.helpers.link_to(s_('ClusterIntegration|Learn more about group Kubernetes clusters'), help_page_path('user/group/clusters/_index.md'), target: '_blank', rel: 'noopener noreferrer')
end
|
39
40
41
|
# File 'app/presenters/group_clusterable_presenter.rb', line 39
def
s_('ClusterIntegration|Connect your group to a Kubernetes cluster with the GitLab agent and share the connection across multiple projects. Use review apps, deploy your applications, and easily run your pipelines for all projects using the same cluster.')
end
|
#update_cluster_migration_path(cluster) ⇒ Object
24
25
26
|
# File 'app/presenters/group_clusterable_presenter.rb', line 24
def update_cluster_migration_path(cluster)
update_migration_group_cluster_path(clusterable, cluster)
end
|