From a2b80f89f3a4962b303710649026b9303e21aa36 Mon Sep 17 00:00:00 2001 From: Romanas Sonkinas Date: Tue, 14 Mar 2023 15:18:20 +0000 Subject: [PATCH] Updated CRD to show the CPU requests and limits. --- CHANGES.rst | 2 ++ .../templates/cratedbs-cloud-crate-io.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 4486e119..eb16166d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Unreleased * Fixed a missing permission that was causing a warning on kopf startup. +* Updated CRD to show the CPU requests and limits. + 2.23.0 (2023-02-28) ------------------- diff --git a/deploy/charts/crate-operator-crds/templates/cratedbs-cloud-crate-io.yaml b/deploy/charts/crate-operator-crds/templates/cratedbs-cloud-crate-io.yaml index b472dba5..7a2bdae7 100644 --- a/deploy/charts/crate-operator-crds/templates/cratedbs-cloud-crate-io.yaml +++ b/deploy/charts/crate-operator-crds/templates/cratedbs-cloud-crate-io.yaml @@ -28,6 +28,16 @@ spec: jsonPath: .spec.nodes.data[?(@.name == "hot")].replicas name: Nodes type: number + - description: CPU Requests + jsonPath: .spec.nodes.data[?(@.name == "hot")].resources.requests.cpu + name: CPU_REQ + type: number + - description: CPU Limits + jsonPath: .spec.nodes.data[?(@.name == "hot")].resources.limits.cpu + name: CPU_LIM + type: number + # Only shown in wide mode (-o wide) + priority: 1 - jsonPath: .metadata.creationTimestamp name: Age type: date