From aa1043e5dc6d7a7e513e5ca0ebe2a77c35179c8e Mon Sep 17 00:00:00 2001 From: Philippe Merle Date: Mon, 30 Dec 2024 09:25:47 +0100 Subject: [PATCH] Add support for LimitRange resources --- README.md | 8 ++++---- bin/kube-diagrams.yaml | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cfcd1cb..45721cd 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ options: ### Kubernetes resources -Supported `kind`/`apiVersion` resource types are 27 ones: +Supported `kind`/`apiVersion` resource types are 28 ones: * ClusterRole/rbac.authorization.k8s.io/v1 * ClusterRoleBinding/rbac.authorization.k8s.io/v1 * ConfigMap/v1 @@ -75,6 +75,7 @@ Supported `kind`/`apiVersion` resource types are 27 ones: * Ingress/networking.k8s.io/v1 * IngressClass/networking.k8s.io/v1 * Job/batch/v1 +* LimitRange/v1 * Namespace/v1 * Node/v1 * PersistentVolume/v1 @@ -95,12 +96,11 @@ Supported `kind`/`apiVersion` resource types are 27 ones: **Note**: The mapping for any Kubernetes custom resources can be also defined into **KubeDiagrams** configuration files as illustrated in [examples/k0s/KubeDiagrams.yml](examples/k0s/KubeDiagrams.yml#L10). -Currently, unsupported `kind`/`apiGroup` resource types are 32 ones: +Currently, unsupported `kind`/`apiGroup` resource types are 31 ones: * Binding/ * ComponentStatus/ * Endpoints/ * Event/ -* LimitRange/ * PodTemplate/ * ReplicationController/ * ResourceQuota/ @@ -150,5 +150,5 @@ This project is licensed under the GPL-3.0 license - see the [LICENSE](LICENSE) ## Todo List * Add more examples -* Add missed Kubernetes resource types as at least Endpoint, LimitRange, NetworkPolicy, and ResourceQuota +* Add missed Kubernetes resource types as at least Endpoint, NetworkPolicy, and ResourceQuota * Make `nodes/*/edges` more declarative diff --git a/bin/kube-diagrams.yaml b/bin/kube-diagrams.yaml index 8db3395..47782d2 100644 --- a/bin/kube-diagrams.yaml +++ b/bin/kube-diagrams.yaml @@ -107,6 +107,10 @@ nodes: scope: Cluster diagram_node_classname: diagrams.k8s.group.NS # no edges + LimitRange/v1: + scope: Namespaced + diagram_node_classname: diagrams.k8s.clusterconfig.LimitRange + # no edges Node/v1: scope: Cluster diagram_node_classname: diagrams.k8s.infra.Node