Commit 4b76dda5 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'jivanvl-move-cluster-health-frontend-core' into 'master'

Move cluster_health frontend files to core

See merge request gitlab-org/gitlab!35198
parents a0017e52 5a6191b3
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
import initClusterHealth from '~/pages/projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
new ClustersBundle(); // eslint-disable-line no-new new ClustersBundle(); // eslint-disable-line no-new
initClusterHealth();
}); });
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
import initClusterHealth from '~/pages/projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
new ClustersBundle(); // eslint-disable-line no-new new ClustersBundle(); // eslint-disable-line no-new
initClusterHealth();
}); });
import initCeBundle from '~/monitoring/monitoring_app'; import monitoringApp from '~/monitoring/monitoring_app';
export default () => { export default () => {
const el = document.getElementById('prometheus-graphs'); const el = document.getElementById('prometheus-graphs');
if (el && el.dataset) { if (el && el.dataset) {
initCeBundle({ monitoringApp({
...el.dataset, ...el.dataset,
showLegend: false, showLegend: false,
showHeader: false, showHeader: false,
......
import ClustersBundle from '~/clusters/clusters_bundle'; import ClustersBundle from '~/clusters/clusters_bundle';
import initGkeNamespace from '~/create_cluster/gke_cluster_namespace'; import initGkeNamespace from '~/create_cluster/gke_cluster_namespace';
import initClusterHealth from './cluster_health';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
new ClustersBundle(); // eslint-disable-line no-new new ClustersBundle(); // eslint-disable-line no-new
initGkeNamespace(); initGkeNamespace();
initClusterHealth();
}); });
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
%ul.nav-links.mobile-separator.nav.nav-tabs{ role: 'tablist' } %ul.nav-links.mobile-separator.nav.nav-tabs{ role: 'tablist' }
= render 'details_tab' = render 'details_tab'
= render_if_exists 'clusters/clusters/environments_tab' = render_if_exists 'clusters/clusters/environments_tab'
= render_if_exists 'clusters/clusters/health_tab' = render 'clusters/clusters/health_tab'
= render 'applications_tab' = render 'applications_tab'
= render 'advanced_settings_tab' = render 'advanced_settings_tab'
......
import '~/pages/admin/clusters/show';
import initClusterHealth from '../../../projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', initClusterHealth);
import '~/pages/projects/clusters/show';
import initClusterHealth from '../../../projects/clusters/show/cluster_health';
document.addEventListener('DOMContentLoaded', initClusterHealth);
import '~/pages/projects/clusters/show';
import initClusterHealth from './cluster_health';
document.addEventListener('DOMContentLoaded', initClusterHealth);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment