Kubernetes: Resource quotas as default objects (#20951)
* Fixed the lack of `resourcequotas` Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com> * Fixed the lack of `resourcequotas` Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com> * Fixed the lack of `resourcequotas` Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com> * Fixed the lack of `resourcequotas` Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com> --------- Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@backstage/plugin-kubernetes-backend': patch
|
||||
'@backstage/plugin-kubernetes-common': patch
|
||||
---
|
||||
|
||||
Fixed the lack of `resourcequotas` as part of the Default Objects to fetch from the kubernetes api
|
||||
@@ -107,6 +107,7 @@ dynatrace
|
||||
Dynatrace
|
||||
ecco
|
||||
elasticsearch
|
||||
Entra
|
||||
env
|
||||
Env
|
||||
esbuild
|
||||
@@ -196,10 +197,12 @@ Leasot
|
||||
lerna
|
||||
Lerna
|
||||
lightbox
|
||||
Lightsail
|
||||
limitranges
|
||||
LocalStack
|
||||
lockdown
|
||||
lockfile
|
||||
lookbehind
|
||||
lunr
|
||||
Luxon
|
||||
magiclink
|
||||
@@ -285,6 +288,7 @@ Podman
|
||||
posix
|
||||
postgres
|
||||
postpack
|
||||
PR
|
||||
pre
|
||||
prebaked
|
||||
preconfigured
|
||||
@@ -292,11 +296,12 @@ prepack
|
||||
Preprarer
|
||||
productional
|
||||
Protobuf
|
||||
proxying
|
||||
proxied
|
||||
proxying
|
||||
Proxying
|
||||
pseudonymized
|
||||
pubsub
|
||||
Pulumi
|
||||
pygments
|
||||
pymdownx
|
||||
rankdir
|
||||
@@ -304,6 +309,7 @@ readme
|
||||
Readme
|
||||
readonly
|
||||
rebase
|
||||
rebasing
|
||||
Recharts
|
||||
Redash
|
||||
replicasets
|
||||
@@ -312,6 +318,7 @@ Repo
|
||||
repos
|
||||
rerender
|
||||
rerenders
|
||||
resourcequotas
|
||||
reusability
|
||||
Reusability
|
||||
roadmaps
|
||||
@@ -425,8 +432,8 @@ unregistration
|
||||
untracked
|
||||
upsert
|
||||
upvote
|
||||
url
|
||||
URIs
|
||||
url
|
||||
URLs
|
||||
utils
|
||||
Valentina
|
||||
@@ -455,9 +462,3 @@ zod
|
||||
Zolotusky
|
||||
zoomable
|
||||
zsh
|
||||
Pulumi
|
||||
Lightsail
|
||||
PR
|
||||
rebasing
|
||||
lookbehind
|
||||
Entra
|
||||
@@ -452,6 +452,7 @@ Overrides for the Kubernetes object types fetched from the cluster. The default
|
||||
- services
|
||||
- configmaps
|
||||
- limitranges
|
||||
- resourcequotas
|
||||
- deployments
|
||||
- replicasets
|
||||
- horizontalpodautoscalers
|
||||
@@ -504,6 +505,7 @@ rules:
|
||||
- ingresses
|
||||
- statefulsets
|
||||
- limitranges
|
||||
- resourcequotas
|
||||
- daemonsets
|
||||
verbs:
|
||||
- get
|
||||
|
||||
@@ -341,6 +341,7 @@ export type KubernetesObjectTypes =
|
||||
| 'configmaps'
|
||||
| 'deployments'
|
||||
| 'limitranges'
|
||||
| 'resourcequotas'
|
||||
| 'replicasets'
|
||||
| 'horizontalpodautoscalers'
|
||||
| 'jobs'
|
||||
|
||||
@@ -78,6 +78,12 @@ export const DEFAULT_OBJECTS: ObjectToFetch[] = [
|
||||
plural: 'limitranges',
|
||||
objectType: 'limitranges',
|
||||
},
|
||||
{
|
||||
group: '',
|
||||
apiVersion: 'v1',
|
||||
plural: 'resourcequotas',
|
||||
objectType: 'resourcequotas',
|
||||
},
|
||||
{
|
||||
group: 'apps',
|
||||
apiVersion: 'v1',
|
||||
|
||||
@@ -95,6 +95,7 @@ export type KubernetesObjectTypes =
|
||||
| 'configmaps'
|
||||
| 'deployments'
|
||||
| 'limitranges'
|
||||
| 'resourcequotas'
|
||||
| 'replicasets'
|
||||
| 'horizontalpodautoscalers'
|
||||
| 'jobs'
|
||||
|
||||
@@ -20,6 +20,7 @@ import { V1Job } from '@kubernetes/client-node';
|
||||
import { V1LimitRange } from '@kubernetes/client-node';
|
||||
import { V1Pod } from '@kubernetes/client-node';
|
||||
import { V1ReplicaSet } from '@kubernetes/client-node';
|
||||
import { V1ResourceQuota } from '@kubernetes/client-node';
|
||||
import { V1Service } from '@kubernetes/client-node';
|
||||
import { V1StatefulSet } from '@kubernetes/client-node';
|
||||
|
||||
@@ -249,6 +250,7 @@ export type FetchResponse =
|
||||
| ConfigMapFetchResponse
|
||||
| DeploymentFetchResponse
|
||||
| LimitRangeFetchResponse
|
||||
| ResourceQuotaFetchResponse
|
||||
| ReplicaSetsFetchResponse
|
||||
| HorizontalPodAutoscalersFetchResponse
|
||||
| JobsFetchResponse
|
||||
@@ -403,6 +405,14 @@ export interface ReplicaSetsFetchResponse {
|
||||
type: 'replicasets';
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export interface ResourceQuotaFetchResponse {
|
||||
// (undocumented)
|
||||
resources: Array<V1ResourceQuota>;
|
||||
// (undocumented)
|
||||
type: 'resourcequotas';
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ResourceRef {
|
||||
// (undocumented)
|
||||
|
||||
@@ -27,6 +27,7 @@ import {
|
||||
V1LimitRange,
|
||||
V1Pod,
|
||||
V1ReplicaSet,
|
||||
V1ResourceQuota,
|
||||
V1Service,
|
||||
V1StatefulSet,
|
||||
} from '@kubernetes/client-node';
|
||||
@@ -125,6 +126,7 @@ export type FetchResponse =
|
||||
| ConfigMapFetchResponse
|
||||
| DeploymentFetchResponse
|
||||
| LimitRangeFetchResponse
|
||||
| ResourceQuotaFetchResponse
|
||||
| ReplicaSetsFetchResponse
|
||||
| HorizontalPodAutoscalersFetchResponse
|
||||
| JobsFetchResponse
|
||||
@@ -171,6 +173,12 @@ export interface LimitRangeFetchResponse {
|
||||
resources: Array<V1LimitRange>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface ResourceQuotaFetchResponse {
|
||||
type: 'resourcequotas';
|
||||
resources: Array<V1ResourceQuota>;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export interface HorizontalPodAutoscalersFetchResponse {
|
||||
type: 'horizontalpodautoscalers';
|
||||
|
||||
Reference in New Issue
Block a user