Providing shortName tnt for Tenant (#45)

This commit is contained in:
Dario Tranchitella
2020-08-07 12:12:28 +02:00
committed by GitHub
parent 38cd3be71a
commit 272bbf261e
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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"
@@ -30,6 +30,8 @@ spec:
kind: Tenant
listKind: TenantList
plural: tenants
shortNames:
- tnt
singular: tenant
scope: Cluster
subresources: