Skip to content

Commit

Permalink
Merge pull request #88 from Icinga/alphabetic-menu-sort
Browse files Browse the repository at this point in the history
Sort menu alphabetically
  • Loading branch information
lippserd authored Sep 26, 2024
2 parents a8663ff + e14de87 commit 20550b6
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,28 @@
$priority = 0;

$section->add(
N_('Nodes'),
[
'description' => $this->translate('Nodes'),
'url' => 'kubernetes/nodes',
'priority' => $priority++
]
);

$section->add(
N_('Namespaces'),
N_('Cluster Services'),
[
'description' => $this->translate('Namespaces'),
'url' => 'kubernetes/namespaces',
'description' => $this->translate('Cluster Services'),
'url' => 'kubernetes/services?label.name=kubernetes.io%2Fcluster-service&label.value=true',
'priority' => $priority++
]
);

$section->add(
N_('Deployments'),
N_('Config Maps'),
[
'description' => $this->translate('Deployments'),
'url' => 'kubernetes/deployments',
'description' => $this->translate('Config Maps'),
'url' => 'kubernetes/configmaps',
'priority' => $priority++
]
);

$section->add(
N_('Replica Sets'),
N_('Cron Jobs'),
[
'description' => $this->translate('Replica Sets'),
'url' => 'kubernetes/replicasets',
'description' => $this->translate('Cron Jobs'),
'url' => 'kubernetes/cronjobs',
'priority' => $priority++
]
);
Expand All @@ -61,91 +52,91 @@
);

$section->add(
N_('Stateful Sets'),
N_('Deployments'),
[
'description' => $this->translate('Stateful Sets'),
'url' => 'kubernetes/statefulsets',
'description' => $this->translate('Deployments'),
'url' => 'kubernetes/deployments',
'priority' => $priority++
]
);

$section->add(
N_('Pods'),
N_('Events'),
[
'description' => $this->translate('Pods'),
'url' => 'kubernetes/pods',
'description' => $this->translate('Events'),
'url' => 'kubernetes/events',
'priority' => $priority++
]
);

$section->add(
N_('Persistent Volumes'),
N_('Ingresses'),
[
'description' => $this->translate('Persistent Volumes'),
'url' => 'kubernetes/persistentvolumes',
'description' => $this->translate('Ingresses'),
'url' => 'kubernetes/ingresses',
'priority' => $priority++
]
);

$section->add(
N_('Persistent Volume Claims'),
N_('Jobs'),
[
'description' => $this->translate('Persistent Volume Claims'),
'url' => 'kubernetes/persistentvolumeclaims',
'description' => $this->translate('Jobs'),
'url' => 'kubernetes/jobs',
'priority' => $priority++
]
);

$section->add(
N_('Cron Jobs'),
N_('Namespaces'),
[
'description' => $this->translate('Cron Jobs'),
'url' => 'kubernetes/cronjobs',
'description' => $this->translate('Namespaces'),
'url' => 'kubernetes/namespaces',
'priority' => $priority++
]
);

$section->add(
N_('Jobs'),
N_('Nodes'),
[
'description' => $this->translate('Jobs'),
'url' => 'kubernetes/jobs',
'description' => $this->translate('Nodes'),
'url' => 'kubernetes/nodes',
'priority' => $priority++
]
);

$section->add(
N_('Services'),
N_('Persistent Volume Claims'),
[
'description' => $this->translate('Services'),
'url' => 'kubernetes/services',
'description' => $this->translate('Persistent Volume Claims'),
'url' => 'kubernetes/persistentvolumeclaims',
'priority' => $priority++
]
);

$section->add(
N_('Cluster Services'),
N_('Persistent Volumes'),
[
'description' => $this->translate('Cluster Services'),
'url' => 'kubernetes/services?label.name=kubernetes.io%2Fcluster-service&label.value=true',
'description' => $this->translate('Persistent Volumes'),
'url' => 'kubernetes/persistentvolumes',
'priority' => $priority++
]
);

$section->add(
N_('Ingresses'),
N_('Pods'),
[
'description' => $this->translate('Ingresses'),
'url' => 'kubernetes/ingresses',
'description' => $this->translate('Pods'),
'url' => 'kubernetes/pods',
'priority' => $priority++
]
);

$section->add(
N_('Config Maps'),
N_('Replica Sets'),
[
'description' => $this->translate('Config Maps'),
'url' => 'kubernetes/configmaps',
'description' => $this->translate('Replica Sets'),
'url' => 'kubernetes/replicasets',
'priority' => $priority++
]
);
Expand All @@ -160,10 +151,19 @@
);

$section->add(
N_('Events'),
N_('Services'),
[
'description' => $this->translate('Events'),
'url' => 'kubernetes/events',
'description' => $this->translate('Services'),
'url' => 'kubernetes/services',
'priority' => $priority++
]
);

$section->add(
N_('Stateful Sets'),
[
'description' => $this->translate('Stateful Sets'),
'url' => 'kubernetes/statefulsets',
'priority' => $priority++
]
);
Expand Down

0 comments on commit 20550b6

Please sign in to comment.