Skip to content

Commit 20550b6

Browse files
authored
Merge pull request #88 from Icinga/alphabetic-menu-sort
Sort menu alphabetically
2 parents a8663ff + e14de87 commit 20550b6

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

configuration.php

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -16,37 +16,28 @@
1616
$priority = 0;
1717

1818
$section->add(
19-
N_('Nodes'),
20-
[
21-
'description' => $this->translate('Nodes'),
22-
'url' => 'kubernetes/nodes',
23-
'priority' => $priority++
24-
]
25-
);
26-
27-
$section->add(
28-
N_('Namespaces'),
19+
N_('Cluster Services'),
2920
[
30-
'description' => $this->translate('Namespaces'),
31-
'url' => 'kubernetes/namespaces',
21+
'description' => $this->translate('Cluster Services'),
22+
'url' => 'kubernetes/services?label.name=kubernetes.io%2Fcluster-service&label.value=true',
3223
'priority' => $priority++
3324
]
3425
);
3526

3627
$section->add(
37-
N_('Deployments'),
28+
N_('Config Maps'),
3829
[
39-
'description' => $this->translate('Deployments'),
40-
'url' => 'kubernetes/deployments',
30+
'description' => $this->translate('Config Maps'),
31+
'url' => 'kubernetes/configmaps',
4132
'priority' => $priority++
4233
]
4334
);
4435

4536
$section->add(
46-
N_('Replica Sets'),
37+
N_('Cron Jobs'),
4738
[
48-
'description' => $this->translate('Replica Sets'),
49-
'url' => 'kubernetes/replicasets',
39+
'description' => $this->translate('Cron Jobs'),
40+
'url' => 'kubernetes/cronjobs',
5041
'priority' => $priority++
5142
]
5243
);
@@ -61,91 +52,91 @@
6152
);
6253

6354
$section->add(
64-
N_('Stateful Sets'),
55+
N_('Deployments'),
6556
[
66-
'description' => $this->translate('Stateful Sets'),
67-
'url' => 'kubernetes/statefulsets',
57+
'description' => $this->translate('Deployments'),
58+
'url' => 'kubernetes/deployments',
6859
'priority' => $priority++
6960
]
7061
);
7162

7263
$section->add(
73-
N_('Pods'),
64+
N_('Events'),
7465
[
75-
'description' => $this->translate('Pods'),
76-
'url' => 'kubernetes/pods',
66+
'description' => $this->translate('Events'),
67+
'url' => 'kubernetes/events',
7768
'priority' => $priority++
7869
]
7970
);
8071

8172
$section->add(
82-
N_('Persistent Volumes'),
73+
N_('Ingresses'),
8374
[
84-
'description' => $this->translate('Persistent Volumes'),
85-
'url' => 'kubernetes/persistentvolumes',
75+
'description' => $this->translate('Ingresses'),
76+
'url' => 'kubernetes/ingresses',
8677
'priority' => $priority++
8778
]
8879
);
8980

9081
$section->add(
91-
N_('Persistent Volume Claims'),
82+
N_('Jobs'),
9283
[
93-
'description' => $this->translate('Persistent Volume Claims'),
94-
'url' => 'kubernetes/persistentvolumeclaims',
84+
'description' => $this->translate('Jobs'),
85+
'url' => 'kubernetes/jobs',
9586
'priority' => $priority++
9687
]
9788
);
9889

9990
$section->add(
100-
N_('Cron Jobs'),
91+
N_('Namespaces'),
10192
[
102-
'description' => $this->translate('Cron Jobs'),
103-
'url' => 'kubernetes/cronjobs',
93+
'description' => $this->translate('Namespaces'),
94+
'url' => 'kubernetes/namespaces',
10495
'priority' => $priority++
10596
]
10697
);
10798

10899
$section->add(
109-
N_('Jobs'),
100+
N_('Nodes'),
110101
[
111-
'description' => $this->translate('Jobs'),
112-
'url' => 'kubernetes/jobs',
102+
'description' => $this->translate('Nodes'),
103+
'url' => 'kubernetes/nodes',
113104
'priority' => $priority++
114105
]
115106
);
116107

117108
$section->add(
118-
N_('Services'),
109+
N_('Persistent Volume Claims'),
119110
[
120-
'description' => $this->translate('Services'),
121-
'url' => 'kubernetes/services',
111+
'description' => $this->translate('Persistent Volume Claims'),
112+
'url' => 'kubernetes/persistentvolumeclaims',
122113
'priority' => $priority++
123114
]
124115
);
125116

126117
$section->add(
127-
N_('Cluster Services'),
118+
N_('Persistent Volumes'),
128119
[
129-
'description' => $this->translate('Cluster Services'),
130-
'url' => 'kubernetes/services?label.name=kubernetes.io%2Fcluster-service&label.value=true',
120+
'description' => $this->translate('Persistent Volumes'),
121+
'url' => 'kubernetes/persistentvolumes',
131122
'priority' => $priority++
132123
]
133124
);
134125

135126
$section->add(
136-
N_('Ingresses'),
127+
N_('Pods'),
137128
[
138-
'description' => $this->translate('Ingresses'),
139-
'url' => 'kubernetes/ingresses',
129+
'description' => $this->translate('Pods'),
130+
'url' => 'kubernetes/pods',
140131
'priority' => $priority++
141132
]
142133
);
143134

144135
$section->add(
145-
N_('Config Maps'),
136+
N_('Replica Sets'),
146137
[
147-
'description' => $this->translate('Config Maps'),
148-
'url' => 'kubernetes/configmaps',
138+
'description' => $this->translate('Replica Sets'),
139+
'url' => 'kubernetes/replicasets',
149140
'priority' => $priority++
150141
]
151142
);
@@ -160,10 +151,19 @@
160151
);
161152

162153
$section->add(
163-
N_('Events'),
154+
N_('Services'),
164155
[
165-
'description' => $this->translate('Events'),
166-
'url' => 'kubernetes/events',
156+
'description' => $this->translate('Services'),
157+
'url' => 'kubernetes/services',
158+
'priority' => $priority++
159+
]
160+
);
161+
162+
$section->add(
163+
N_('Stateful Sets'),
164+
[
165+
'description' => $this->translate('Stateful Sets'),
166+
'url' => 'kubernetes/statefulsets',
167167
'priority' => $priority++
168168
]
169169
);

0 commit comments

Comments
 (0)