v1alpha1

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +k8s:deepcopy-gen=package +kubebuilder:object:generate=true +groupName=kyverno.io

Package v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=kyverno.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "kyverno.io", Version: "v1alpha1"}

	// 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 v1alpha1 contains API Schema definitions for the policy v1alpha1 API group +kubebuilder:object:generate=true +groupName=kyverno.io

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterReportChangeRequest added in v1.3.0

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: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 added in v1.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterReportChangeRequest.

func (*ClusterReportChangeRequest) DeepCopyInto added in v1.3.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterReportChangeRequest) DeepCopyObject added in v1.3.0

func (in *ClusterReportChangeRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterReportChangeRequestList added in v1.3.0

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 added in v1.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterReportChangeRequestList.

func (*ClusterReportChangeRequestList) DeepCopyInto added in v1.3.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterReportChangeRequestList) DeepCopyObject added in v1.3.0

func (in *ClusterReportChangeRequestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReportChangeRequest added in v1.3.0

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: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 added in v1.3.0

func (in *ReportChangeRequest) DeepCopy() *ReportChangeRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportChangeRequest.

func (*ReportChangeRequest) DeepCopyInto added in v1.3.0

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 added in v1.3.0

func (in *ReportChangeRequest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReportChangeRequestList added in v1.3.0

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 added in v1.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportChangeRequestList.

func (*ReportChangeRequestList) DeepCopyInto added in v1.3.0

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 added in v1.3.0

func (in *ReportChangeRequestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL