mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add support for PodDisruptionBudgets (#452)
Signed-off-by: Dan Slinky <dan-slinky@cookpad.jp>
This commit is contained in:
1 parent
5163ede4f1
commit
81a0c432c6
11 files changed
+248
-1
No files matched your search
@@ -7,6 +7,7 @@ import { ConfigMaps, configMapsRoute, configMapsURL } from "../+config-maps";
|
||||
import { Secrets, secretsRoute, secretsURL } from "../+config-secrets";
|
||||
import { namespaceStore } from "../+namespaces/namespace.store";
|
||||
import { resourceQuotaRoute, ResourceQuotas, resourceQuotaURL } from "../+config-resource-quotas";
|
||||
import { PodDisruptionBudgets, pdbRoute, pdbURL } from "../+config-pod-disruption-budgets";
|
||||
import { configURL } from "./config.route";
|
||||
import { HorizontalPodAutoscalers, hpaRoute, hpaURL } from "../+config-autoscalers";
|
||||
import { buildURL } from "../../navigation";
|
||||
@@ -53,6 +54,14 @@ export class Config extends React.Component {
|
||||
path: hpaRoute.path,
|
||||
})
|
||||
}
|
||||
if (isAllowedResource("poddisruptionbudgets")) {
|
||||
routes.push({
|
||||
title: <Trans>Pod Disruption Budgets</Trans>,
|
||||
component: PodDisruptionBudgets,
|
||||
url: pdbURL({ query }),
|
||||
path: pdbRoute.path,
|
||||
})
|
||||
}
|
||||
return routes;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user