Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5a6191b3
Commit
5a6191b3
authored
Jun 23, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move cluster_health to core
This moves the frontend components of the cluster health feature to core
parent
cd9838f8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
15 deletions
+9
-15
app/assets/javascripts/pages/admin/clusters/show/index.js
app/assets/javascripts/pages/admin/clusters/show/index.js
+2
-0
app/assets/javascripts/pages/groups/clusters/show/index.js
app/assets/javascripts/pages/groups/clusters/show/index.js
+2
-0
app/assets/javascripts/pages/projects/clusters/show/cluster_health.js
...avascripts/pages/projects/clusters/show/cluster_health.js
+2
-2
app/assets/javascripts/pages/projects/clusters/show/index.js
app/assets/javascripts/pages/projects/clusters/show/index.js
+2
-0
app/views/clusters/clusters/show.html.haml
app/views/clusters/clusters/show.html.haml
+1
-1
ee/app/assets/javascripts/pages/admin/clusters/show/index.js
ee/app/assets/javascripts/pages/admin/clusters/show/index.js
+0
-4
ee/app/assets/javascripts/pages/groups/clusters/show/index.js
...pp/assets/javascripts/pages/groups/clusters/show/index.js
+0
-4
ee/app/assets/javascripts/pages/projects/clusters/show/index.js
.../assets/javascripts/pages/projects/clusters/show/index.js
+0
-4
No files found.
app/assets/javascripts/pages/admin/clusters/show/index.js
View file @
5a6191b3
import
ClustersBundle
from
'
~/clusters/clusters_bundle
'
;
import
initClusterHealth
from
'
~/pages/projects/clusters/show/cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ClustersBundle
();
// eslint-disable-line no-new
initClusterHealth
();
});
app/assets/javascripts/pages/groups/clusters/show/index.js
View file @
5a6191b3
import
ClustersBundle
from
'
~/clusters/clusters_bundle
'
;
import
initClusterHealth
from
'
~/pages/projects/clusters/show/cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ClustersBundle
();
// eslint-disable-line no-new
initClusterHealth
();
});
ee/
app/assets/javascripts/pages/projects/clusters/show/cluster_health.js
→
app/assets/javascripts/pages/projects/clusters/show/cluster_health.js
View file @
5a6191b3
import
initCeBundle
from
'
~/monitoring/monitoring_app
'
;
import
monitoringApp
from
'
~/monitoring/monitoring_app
'
;
export
default
()
=>
{
const
el
=
document
.
getElementById
(
'
prometheus-graphs
'
);
if
(
el
&&
el
.
dataset
)
{
initCeBundle
({
monitoringApp
({
...
el
.
dataset
,
showLegend
:
false
,
showHeader
:
false
,
...
...
app/assets/javascripts/pages/projects/clusters/show/index.js
View file @
5a6191b3
import
ClustersBundle
from
'
~/clusters/clusters_bundle
'
;
import
initGkeNamespace
from
'
~/create_cluster/gke_cluster_namespace
'
;
import
initClusterHealth
from
'
./cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
ClustersBundle
();
// eslint-disable-line no-new
initGkeNamespace
();
initClusterHealth
();
});
app/views/clusters/clusters/show.html.haml
View file @
5a6191b3
...
...
@@ -55,7 +55,7 @@
%ul
.nav-links.mobile-separator.nav.nav-tabs
{
role:
'tablist'
}
=
render
'details_tab'
=
render_if_exists
'clusters/clusters/environments_tab'
=
render
_if_exists
'clusters/clusters/health_tab'
=
render
'clusters/clusters/health_tab'
=
render
'applications_tab'
=
render
'advanced_settings_tab'
...
...
ee/app/assets/javascripts/pages/admin/clusters/show/index.js
deleted
100644 → 0
View file @
cd9838f8
import
'
~/pages/admin/clusters/show
'
;
import
initClusterHealth
from
'
../../../projects/clusters/show/cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initClusterHealth
);
ee/app/assets/javascripts/pages/groups/clusters/show/index.js
deleted
100644 → 0
View file @
cd9838f8
import
'
~/pages/projects/clusters/show
'
;
import
initClusterHealth
from
'
../../../projects/clusters/show/cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initClusterHealth
);
ee/app/assets/javascripts/pages/projects/clusters/show/index.js
deleted
100644 → 0
View file @
cd9838f8
import
'
~/pages/projects/clusters/show
'
;
import
initClusterHealth
from
'
./cluster_health
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initClusterHealth
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment