Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the policy v1alpha2 API group +k8s:deepcopy-gen=package +kubebuilder:object:generate=true +groupName=kyverno.io
Package v1alpha2 contains API Schema definitions for the policy v1alpha2 API group +kubebuilder:object:generate=true +groupName=kyverno.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "kyverno.io", Version: "v1alpha2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Package v1alpha2 contains API Schema definitions for the policy v1alpha2 API group +kubebuilder:object:generate=true +groupName=kyverno.io
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterReportChangeRequest ¶
type ClusterReportChangeRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Scope is an optional reference to the report scope (e.g. a Deployment, Namespace, or Node) // +optional Scope *corev1.ObjectReference `json:"scope,omitempty"` // ScopeSelector is an optional selector for multiple scopes (e.g. Pods). // Either one of, or none of, but not both of, Scope or ScopeSelector should be specified. // +optional ScopeSelector *metav1.LabelSelector `json:"scopeSelector,omitempty"` // PolicyReportSummary provides a summary of results // +optional Summary report.PolicyReportSummary `json:"summary,omitempty"` // PolicyReportResult provides result details // +optional Results []*report.PolicyReportResult `json:"results,omitempty"` }
ClusterReportChangeRequest is the Schema for the ClusterReportChangeRequests API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient:nonNamespaced +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:resource:path=clusterreportchangerequests,scope="Cluster",shortName=crcr +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` +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=`.summary.fail` +kubebuilder:printcolumn:name="Warn",type=integer,JSONPath=`.summary.warn` +kubebuilder:printcolumn:name="Error",type=integer,JSONPath=`.summary.error` +kubebuilder:printcolumn:name="Skip",type=integer,JSONPath=`.summary.skip` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
func (*ClusterReportChangeRequest) DeepCopy ¶
func (in *ClusterReportChangeRequest) DeepCopy() *ClusterReportChangeRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterReportChangeRequest.
func (*ClusterReportChangeRequest) DeepCopyInto ¶
func (in *ClusterReportChangeRequest) DeepCopyInto(out *ClusterReportChangeRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterReportChangeRequest) DeepCopyObject ¶
func (in *ClusterReportChangeRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterReportChangeRequestList ¶
type ClusterReportChangeRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterReportChangeRequest `json:"items"` }
ClusterReportChangeRequestList contains a list of ClusterReportChangeRequest +kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ClusterReportChangeRequestList) DeepCopy ¶
func (in *ClusterReportChangeRequestList) DeepCopy() *ClusterReportChangeRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterReportChangeRequestList.
func (*ClusterReportChangeRequestList) DeepCopyInto ¶
func (in *ClusterReportChangeRequestList) DeepCopyInto(out *ClusterReportChangeRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterReportChangeRequestList) DeepCopyObject ¶
func (in *ClusterReportChangeRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReportChangeRequest ¶
type ReportChangeRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Scope is an optional reference to the report scope (e.g. a Deployment, Namespace, or Node) // +optional Scope *corev1.ObjectReference `json:"scope,omitempty"` // ScopeSelector is an optional selector for multiple scopes (e.g. Pods). // Either one of, or none of, but not both of, Scope or ScopeSelector should be specified. // +optional ScopeSelector *metav1.LabelSelector `json:"scopeSelector,omitempty"` // PolicyReportSummary provides a summary of results // +optional Summary report.PolicyReportSummary `json:"summary,omitempty"` // PolicyReportResult provides result details // +optional Results []*report.PolicyReportResult `json:"results,omitempty"` }
ReportChangeRequest is the Schema for the ReportChangeRequests API +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion +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` +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=`.summary.fail` +kubebuilder:printcolumn:name="Warn",type=integer,JSONPath=`.summary.warn` +kubebuilder:printcolumn:name="Error",type=integer,JSONPath=`.summary.error` +kubebuilder:printcolumn:name="Skip",type=integer,JSONPath=`.summary.skip` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:shortName=rcr
func (*ReportChangeRequest) DeepCopy ¶
func (in *ReportChangeRequest) DeepCopy() *ReportChangeRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportChangeRequest.
func (*ReportChangeRequest) DeepCopyInto ¶
func (in *ReportChangeRequest) DeepCopyInto(out *ReportChangeRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReportChangeRequest) DeepCopyObject ¶
func (in *ReportChangeRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReportChangeRequestList ¶
type ReportChangeRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ReportChangeRequest `json:"items"` }
ReportChangeRequestList contains a list of ReportChangeRequest +kubebuilder:object:root=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ReportChangeRequestList) DeepCopy ¶
func (in *ReportChangeRequestList) DeepCopy() *ReportChangeRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportChangeRequestList.
func (*ReportChangeRequestList) DeepCopyInto ¶
func (in *ReportChangeRequestList) DeepCopyInto(out *ReportChangeRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReportChangeRequestList) DeepCopyObject ¶
func (in *ReportChangeRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.