1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

update short names, scope

This commit is contained in:
Shuting Zhao 2020-12-01 12:52:17 -08:00
parent 2ec5a0fa42
commit 45dd5b736d
3 changed files with 5 additions and 4 deletions

View file

@ -2374,6 +2374,8 @@ spec:
kind: ReportChangeRequest
listKind: ReportChangeRequestList
plural: reportchangerequests
shortNames:
- rcr
singular: reportchangerequest
scope: Namespaced
versions:

View file

@ -13,10 +13,8 @@ spec:
kind: ClusterReportChangeRequest
listKind: ClusterReportChangeRequestList
plural: clusterreportchangerequests
shortNames:
- crcr
singular: clusterreportchangerequest
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind

View file

@ -30,7 +30,7 @@ import (
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +genclient:nonNamespaced
// +kubebuilder:object:root=true
// +kubebuilder:resource:path=clusterreportchangerequests,scope="Cluster"
// +kubebuilder:resource:path=clusterreportchangerequests
// +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=`.scope.kind`,priority=1
// +kubebuilder:printcolumn:name="Name",type=string,JSONPath=`.scope.name`,priority=1
// +kubebuilder:printcolumn:name="Pass",type=integer,JSONPath=`.summary.pass`
@ -40,6 +40,7 @@ import (
// +kubebuilder:printcolumn:name="Skip",type=integer,JSONPath=`.summary.skip`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:shortName=crcr
// +kubebuilder:resource:scope=Cluster
type ClusterReportChangeRequest struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`