@@ -42,7 +42,7 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
...
@@ -42,7 +42,7 @@ class Projects::Clusters::GcpController < Projects::ApplicationController
when'true'
when'true'
return
return
when'false'
when'false'
flash[:alert]=_('Please <a href=%{link_to_billing} target="_blank" rel="noopener noreferrer">enable billing for one of your projects to be able to create a cluster</a>, then try again.').html_safe%{link_to_billing: "https://console.cloud.google.com/freetrial?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral"}
flash[:alert]=_('Please <a href=%{link_to_billing} target="_blank" rel="noopener noreferrer">enable billing for one of your projects to be able to create a Kubernetes cluster</a>, then try again.').html_safe%{link_to_billing: "https://console.cloud.google.com/freetrial?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral"}
else
else
flash[:alert]=_('We could not verify that one of your projects on GCP has billing enabled. Please try again.')
flash[:alert]=_('We could not verify that one of your projects on GCP has billing enabled. Please try again.')
@@ -152,9 +152,10 @@ class KubernetesService < DeploymentService
...
@@ -152,9 +152,10 @@ class KubernetesService < DeploymentService
end
end
defdeprecation_message
defdeprecation_message
content=<<-MESSAGE.strip_heredoc
content=_("Kubernetes service integration has been deprecated. %{deprecated_message_content} your Kubernetes clusters using the new <a href=\"%{url}\"/>Kubernetes Clusters</a> page")%{
Kubernetes service integration has been deprecated. #{deprecated_message_content} your clusters using the new <a href=\'#{Gitlab::Routing.url_helpers.project_clusters_path(project)}'/>Clusters</a> page
=s_("ClusterIntegration|Remove this cluster's configuration from this project. This will not delete your actual cluster.")
=s_("ClusterIntegration|Remove this Kubernetes cluster's configuration from this project. This will not delete your actual Kubernetes cluster.")
=link_to(s_('ClusterIntegration|Remove integration'),namespace_project_cluster_path(@project.namespace,@project,@cluster.id),method: :delete,class: 'btn btn-danger',data: {confirm: s_("ClusterIntegration|Are you sure you want to remove this cluster's integration? This will not delete your actual cluster.")})
=link_to(s_('ClusterIntegration|Remove integration'),namespace_project_cluster_path(@project.namespace,@project,@cluster.id),method: :delete,class: 'btn btn-danger',data: {confirm: s_("ClusterIntegration|Are you sure you want to remove this Kubernetes cluster's integration? This will not delete your actual Kubernetes cluster.")})
=s_('ClusterIntegration|Cluster was successfully created on Google Kubernetes Engine. Refresh the page to see cluster\'s details')
=s_("ClusterIntegration|Kubernetes cluster was successfully created on Google Kubernetes Engine. Refresh the page to see Kubernetes cluster's details")
%p=s_('ClusterIntegration|Control how your cluster integrates with GitLab')
%p=s_('ClusterIntegration|Control how your Kubernetes cluster integrates with GitLab')
=link_to(s_('ClusterIntegration|Create cluster on Google Kubernetes Engine'),gcp_new_namespace_project_clusters_path(@project.namespace,@project))
=link_to(s_('ClusterIntegration|Create Kubernetes cluster on Google Kubernetes Engine'),gcp_new_namespace_project_clusters_path(@project.namespace,@project))
%li
%li
=link_to(s_('ClusterIntegration|Add an existing cluster'),user_new_namespace_project_clusters_path(@project.namespace,@project))
=link_to(s_('ClusterIntegration|Add an existing Kubernetes cluster'),user_new_namespace_project_clusters_path(@project.namespace,@project))
-link_to_help_page=link_to(s_('ClusterIntegration|Learn more about Clusters'),help_page_path('user/project/clusters/index'),target: '_blank',rel: 'noopener noreferrer')
-link_to_help_page=link_to(s_('ClusterIntegration|Learn more about Kubernetes'),help_page_path('user/project/clusters/index'),target: '_blank',rel: 'noopener noreferrer')
%p=s_('ClusterIntegration|Clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way. %{link_to_help_page}').html_safe%{link_to_help_page: link_to_help_page}
%p=s_('ClusterIntegration|Kubernetes clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way. %{link_to_help_page}').html_safe%{link_to_help_page: link_to_help_page}
=s_('ClusterIntegration|Cluster integration is enabled for this project. Disabling this integration will not affect your cluster, it will only temporarily turn off GitLab\'s connection to it.')
=s_('ClusterIntegration|Kubernetes cluster integration is enabled for this project. Disabling this integration will not affect your Kubernetes cluster, it will only temporarily turn off GitLab\'s connection to it.')
-else
-else
=s_('ClusterIntegration|Cluster integration is enabled for this project.')
=s_('ClusterIntegration|Kubernetes cluster integration is enabled for this project.')
-else
-else
=s_('ClusterIntegration|Cluster integration is disabled for this project.')
=s_('ClusterIntegration|Kubernetes cluster integration is disabled for this project.')
=s_('ClusterIntegration|With a cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.')
=s_('ClusterIntegration|With a Kubernetes cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way.')
=s_('ClusterIntegration|Enter the details for your cluster')
=s_('ClusterIntegration|Enter the details for your Kubernetes cluster')
%p
%p
=s_('ClusterIntegration|Please make sure that your Google account meets the following requirements:')
=s_('ClusterIntegration|Please make sure that your Google account meets the following requirements:')
%ul
%ul
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
=s_('ClusterIntegration|Your account must have %{link_to_kubernetes_engine}').html_safe%{link_to_kubernetes_engine: link_to_kubernetes_engine}
=s_('ClusterIntegration|Your account must have %{link_to_kubernetes_engine}').html_safe%{link_to_kubernetes_engine: link_to_kubernetes_engine}
%li
%li
-link_to_requirements=link_to(s_('ClusterIntegration|meets the requirements'),'https://cloud.google.com/kubernetes-engine/docs/quickstart?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral',target: '_blank',rel: 'noopener noreferrer')
-link_to_requirements=link_to(s_('ClusterIntegration|meets the requirements'),'https://cloud.google.com/kubernetes-engine/docs/quickstart?utm_campaign=2018_cpanel&utm_source=gitlab&utm_medium=referral',target: '_blank',rel: 'noopener noreferrer')
=s_('ClusterIntegration|Make sure your account %{link_to_requirements} to create clusters').html_safe%{link_to_requirements: link_to_requirements}
=s_('ClusterIntegration|Make sure your account %{link_to_requirements} to create Kubernetes clusters').html_safe%{link_to_requirements: link_to_requirements}
=s_('ClusterIntegration|This account must have permissions to create a cluster in the %{link_to_container_project} specified below').html_safe%{link_to_container_project: link_to_container_project}
=s_('ClusterIntegration|This account must have permissions to create a Kubernetes cluster in the %{link_to_container_project} specified below').html_safe%{link_to_container_project: link_to_container_project}
=s_('ClusterIntegration|Please enter access information for your cluster. If you need help, you can read our %{link_to_help_page} on clusters').html_safe%{link_to_help_page: link_to_help_page}
=s_('ClusterIntegration|Please enter access information for your Kubernetes cluster. If you need help, you can read our %{link_to_help_page} on Kubernetes').html_safe%{link_to_help_page: link_to_help_page}
=link_tos_("ClusterIntegration|Add cluster"),new_project_cluster_path(project),class: "btn btn-success btn-add-cluster disabled has-tooltip js-add-cluster",title: s_("ClusterIntegration|Multiple clusters are available in GitLab Enterprise Edition Premium and Ultimate")
=link_tos_("ClusterIntegration|Add Kubernetes cluster"),new_project_cluster_path(project),class: "btn btn-success btn-add-cluster disabled has-tooltip js-add-cluster",title: s_("ClusterIntegration|Multiple Kubernetes clusters are available in GitLab Enterprise Edition Premium and Ultimate")
msgid "ClusterIntegration|Cluster integration is enabled for this project."
msgid "ClusterIntegration|Copy Token"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Cluster integration is enabled for this project. Disabling this integration will not affect your cluster, it will only temporarily turn off GitLab's connection to it."
msgid "ClusterIntegration|Cluster is being created on Google Kubernetes Engine..."
msgid "ClusterIntegration|Create Kubernetes cluster on Google Kubernetes Engine"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Cluster name"
msgid "ClusterIntegration|Create a new Kubernetes cluster on Google Kubernetes Engine right from GitLab"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Cluster was successfully created on Google Kubernetes Engine. Refresh the page to see cluster's details"
msgid "ClusterIntegration|Create on GKE"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way. %{link_to_help_page}"
msgid "ClusterIntegration|Enter the details for an existing Kubernetes cluster"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Clusters can be used to deploy applications and to provide Review Apps for this project"
msgid "ClusterIntegration|Enter the details for your Kubernetes cluster"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Control how your cluster integrates with GitLab"
msgid "ClusterIntegration|Kubernetes cluster integration is disabled for this project."
msgstr ""
msgstr ""
msgid "ClusterIntegration|Helm Tiller"
msgid "ClusterIntegration|Kubernetes cluster integration is enabled for this project."
msgstr ""
msgstr ""
msgid "ClusterIntegration|Ingress"
msgid "ClusterIntegration|Kubernetes cluster integration is enabled for this project. Disabling this integration will not affect your Kubernetes cluster, it will only temporarily turn off GitLab's connection to it."
msgstr ""
msgstr ""
msgid "ClusterIntegration|Install"
msgid "ClusterIntegration|Kubernetes cluster is being created on Google Kubernetes Engine..."
msgid "ClusterIntegration|Kubernetes cluster was successfully created on Google Kubernetes Engine. Refresh the page to see Kubernetes cluster's details"
msgid "ClusterIntegration|Kubernetes clusters allow you to use review apps, deploy your applications, run your pipelines, and much more in an easy way. %{link_to_help_page}"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Integration status"
msgid "ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Learn more about %{link_to_documentation}"
msgid "ClusterIntegration|Learn more about %{link_to_documentation}"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Learn more about Clusters"
msgid "ClusterIntegration|Learn more about Kubernetes"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Learn more about environments"
msgid "ClusterIntegration|Learn more about environments"
...
@@ -779,13 +788,13 @@ msgstr ""
...
@@ -779,13 +788,13 @@ msgstr ""
msgid "ClusterIntegration|Machine type"
msgid "ClusterIntegration|Machine type"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Make sure your account %{link_to_requirements} to create clusters"
msgid "ClusterIntegration|Make sure your account %{link_to_requirements} to create Kubernetes clusters"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Manage your cluster by visiting %{link_gke}"
msgid "ClusterIntegration|Manage your Kubernetes cluster by visiting %{link_gke}"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Multiple clusters are available in GitLab Enterprise Edition Premium and Ultimate"
msgid "ClusterIntegration|Multiple Kubernetes clusters are available in GitLab Enterprise Edition Premium and Ultimate"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Note:"
msgid "ClusterIntegration|Note:"
...
@@ -794,7 +803,7 @@ msgstr ""
...
@@ -794,7 +803,7 @@ msgstr ""
msgid "ClusterIntegration|Number of nodes"
msgid "ClusterIntegration|Number of nodes"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Please enter access information for your cluster. If you need help, you can read our %{link_to_help_page} on clusters"
msgid "ClusterIntegration|Please enter access information for your Kubernetes cluster. If you need help, you can read our %{link_to_help_page} on Kubernetes"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Please make sure that your Google account meets the following requirements:"
msgid "ClusterIntegration|Please make sure that your Google account meets the following requirements:"
...
@@ -812,16 +821,16 @@ msgstr ""
...
@@ -812,16 +821,16 @@ msgstr ""
msgid "ClusterIntegration|Prometheus"
msgid "ClusterIntegration|Prometheus"
msgstr ""
msgstr ""
msgid "ClusterIntegration|Read our %{link_to_help_page} on cluster integration."
msgid "ClusterIntegration|Read our %{link_to_help_page} on Kubernetes cluster integration."
msgid "ClusterIntegration|With a cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way."
msgid "ClusterIntegration|With a Kubernetes cluster associated to this project, you can use review apps, deploy your applications, run your pipelines, and much more in an easy way."
msgstr ""
msgstr ""
msgid "ClusterIntegration|Your account must have %{link_to_kubernetes_engine}"
msgid "ClusterIntegration|Your account must have %{link_to_kubernetes_engine}"
...
@@ -881,9 +893,6 @@ msgstr ""
...
@@ -881,9 +893,6 @@ msgstr ""
msgid "ClusterIntegration|check the pricing here"
msgid "ClusterIntegration|check the pricing here"
msgstr ""
msgstr ""
msgid "ClusterIntegration|cluster"
msgstr ""
msgid "ClusterIntegration|documentation"
msgid "ClusterIntegration|documentation"
msgstr ""
msgstr ""
...
@@ -1299,6 +1308,9 @@ msgstr ""
...
@@ -1299,6 +1308,9 @@ msgstr ""
msgid "Error fetching contributors data."
msgid "Error fetching contributors data."
msgstr ""
msgstr ""
msgid "Error fetching labels."
msgstr ""
msgid "Error fetching network graph."
msgid "Error fetching network graph."
msgstr ""
msgstr ""
...
@@ -1311,6 +1323,9 @@ msgstr ""
...
@@ -1311,6 +1323,9 @@ msgstr ""
msgid "Error occurred when toggling the notification subscription"
msgid "Error occurred when toggling the notification subscription"
msgstr ""
msgstr ""
msgid "Error saving label update."
msgstr ""
msgid "Error updating status for all todos."
msgid "Error updating status for all todos."
msgstr ""
msgstr ""
...
@@ -1365,6 +1380,9 @@ msgstr ""
...
@@ -1365,6 +1380,9 @@ msgstr ""
msgid "February"
msgid "February"
msgstr ""
msgstr ""
msgid "Fields on this page are now uneditable, you can configure"
msgstr ""
msgid "File name"
msgid "File name"
msgstr ""
msgstr ""
...
@@ -1547,6 +1565,9 @@ msgstr ""
...
@@ -1547,6 +1565,9 @@ msgstr ""
msgid "Google authentication is not %{link_to_documentation}. Ask your GitLab administrator if you want to use this service."
msgid "Google authentication is not %{link_to_documentation}. Ask your GitLab administrator if you want to use this service."
msgstr ""
msgstr ""
msgid "Got it!"
msgstr ""
msgid "GroupSettings|Prevent sharing a project within %{group} with other groups"
msgid "GroupSettings|Prevent sharing a project within %{group} with other groups"
msgstr ""
msgstr ""
...
@@ -1665,6 +1686,9 @@ msgid_plural "Instances"
...
@@ -1665,6 +1686,9 @@ msgid_plural "Instances"
msgstr[0] ""
msgstr[0] ""
msgstr[1] ""
msgstr[1] ""
msgid "Instance does not support multiple Kubernetes clusters"
msgstr ""
msgid "Interested parties can even contribute by pushing commits if they want to."
msgid "Interested parties can even contribute by pushing commits if they want to."
msgstr ""
msgstr ""
...
@@ -1716,6 +1740,27 @@ msgstr ""
...
@@ -1716,6 +1740,27 @@ msgstr ""
msgid "June"
msgid "June"
msgstr ""
msgstr ""
msgid "Kubernetes"
msgstr ""
msgid "Kubernetes Cluster"
msgstr ""
msgid "Kubernetes cluster creation time exceeds timeout; %{timeout}"
msgstr ""
msgid "Kubernetes cluster integration was not removed."
msgstr ""
msgid "Kubernetes cluster integration was successfully removed."
msgstr ""
msgid "Kubernetes cluster was successfully updated."
msgstr ""
msgid "Kubernetes service integration has been deprecated. %{deprecated_message_content} your Kubernetes clusters using the new <a href=\"%{url}\"/>Kubernetes Clusters</a> page"
msgstr ""
msgid "LFSStatus|Disabled"
msgid "LFSStatus|Disabled"
msgstr ""
msgstr ""
...
@@ -1859,14 +1904,17 @@ msgstr ""
...
@@ -1859,14 +1904,17 @@ msgstr ""
msgid "Multiple issue boards"
msgid "Multiple issue boards"
msgstr ""
msgstr ""
msgid "New Cluster"
msgstr ""
msgid "New Issue"
msgid "New Issue"
msgid_plural "New Issues"
msgid_plural "New Issues"
msgstr[0] ""
msgstr[0] ""
msgstr[1] ""
msgstr[1] ""
msgid "New Kubernetes Cluster"
msgstr ""
msgid "New Kubernetes cluster"
msgstr ""
msgid "New Pipeline Schedule"
msgid "New Pipeline Schedule"
msgstr ""
msgstr ""
...
@@ -2161,7 +2209,7 @@ msgstr ""
...
@@ -2161,7 +2209,7 @@ msgstr ""
msgid "Play"
msgid "Play"
msgstr ""
msgstr ""
msgid "Please <a href=%{link_to_billing} target=\"_blank\" rel=\"noopener noreferrer\">enable billing for one of your projects to be able to create a cluster</a>, then try again."
msgid "Please <a href=%{link_to_billing} target=\"_blank\" rel=\"noopener noreferrer\">enable billing for one of your projects to be able to create a Kubernetes cluster</a>, then try again."
msgstr ""
msgstr ""
msgid "Please solve the reCAPTCHA"
msgid "Please solve the reCAPTCHA"
...
@@ -2371,6 +2419,9 @@ msgstr ""
...
@@ -2371,6 +2419,9 @@ msgstr ""
msgid "PrometheusService|View environments"
msgid "PrometheusService|View environments"
msgstr ""
msgstr ""
msgid "Protip:"
msgstr ""
msgid "Public - The group and any public projects can be viewed without any authentication."
msgid "Public - The group and any public projects can be viewed without any authentication."
msgstr ""
msgstr ""
...
@@ -3416,6 +3467,9 @@ msgstr ""
...
@@ -3416,6 +3467,9 @@ msgstr ""
msgid "You'll need to use different branch names to get a valid comparison."
msgid "You'll need to use different branch names to get a valid comparison."
msgstr ""
msgstr ""
msgid "Your Kubernetes cluster information on this page is still editable, but you are advised to disable and reconfigure"
msgstr ""
msgid "Your comment will not be visible to the public."
msgid "Your comment will not be visible to the public."
expect(document.querySelector('.js-cluster-application-notice .flash-text').textContent.trim()).toEqual('Helm Tiller was successfully installed on your cluster');
expect(document.querySelector('.js-cluster-application-notice .flash-text').textContent.trim()).toEqual('Helm Tiller was successfully installed on your Kubernetes cluster');
});
});
it('shows an alert when multiple things gets newly installed',()=>{
it('shows an alert when multiple things gets newly installed',()=>{
expect(document.querySelector('.js-cluster-application-notice .flash-text').textContent.trim()).toEqual('Helm Tiller, Ingress was successfully installed on your cluster');
expect(document.querySelector('.js-cluster-application-notice .flash-text').textContent.trim()).toEqual('Helm Tiller, Ingress was successfully installed on your Kubernetes cluster');