From 272bbf261eaad05de23b4d4b7f855b1232fefc32 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 7 Aug 2020 12:12:28 +0200 Subject: [PATCH] Providing shortName tnt for Tenant (#45) --- api/v1alpha1/tenant_types.go | 2 +- config/crd/bases/capsule.clastix.io_tenants.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/tenant_types.go b/api/v1alpha1/tenant_types.go index 7c22d718..d32b3bb5 100644 --- a/api/v1alpha1/tenant_types.go +++ b/api/v1alpha1/tenant_types.go @@ -50,7 +50,7 @@ type TenantStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status -// +kubebuilder:resource:scope=Cluster +// +kubebuilder:resource:scope=Cluster,shortName=tnt // +kubebuilder:printcolumn:name="Namespace quota",type="integer",JSONPath=".spec.namespaceQuota",description="The max amount of Namespaces can be created" // +kubebuilder:printcolumn:name="Namespace count",type="integer",JSONPath=".status.size",description="The total amount of Namespaces in use" // +kubebuilder:printcolumn:name="Owner",type="string",JSONPath=".spec.owner",description="The assigned Tenant owner" diff --git a/config/crd/bases/capsule.clastix.io_tenants.yaml b/config/crd/bases/capsule.clastix.io_tenants.yaml index 8e63baa3..7a3b9b63 100644 --- a/config/crd/bases/capsule.clastix.io_tenants.yaml +++ b/config/crd/bases/capsule.clastix.io_tenants.yaml @@ -30,6 +30,8 @@ spec: kind: Tenant listKind: TenantList plural: tenants + shortNames: + - tnt singular: tenant scope: Cluster subresources: