v1alpha1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the validation v1 API group +kubebuilder:object:generate=true +groupName=validation.spectrocloud.labs

Index

Constants

This section is empty.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type FlaggedCVE

type FlaggedCVE string

func (FlaggedCVE) Name

func (r FlaggedCVE) Name() string

type KubescapeValidator

type KubescapeValidator struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KubescapeValidatorSpec   `json:"spec,omitempty"`
	Status KubescapeValidatorStatus `json:"status,omitempty"`
}

KubescapeValidator is the Schema for the kubescapevalidators API

func (*KubescapeValidator) DeepCopy

func (in *KubescapeValidator) DeepCopy() *KubescapeValidator

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

func (*KubescapeValidator) DeepCopyInto

func (in *KubescapeValidator) DeepCopyInto(out *KubescapeValidator)

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

func (*KubescapeValidator) DeepCopyObject

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

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

type KubescapeValidatorList

type KubescapeValidatorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubescapeValidator `json:"items"`
}

KubescapeValidatorList contains a list of KubescapeValidator

func (*KubescapeValidatorList) DeepCopy

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

func (*KubescapeValidatorList) DeepCopyInto

func (in *KubescapeValidatorList) DeepCopyInto(out *KubescapeValidatorList)

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

func (*KubescapeValidatorList) DeepCopyObject

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

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

type KubescapeValidatorSpec

type KubescapeValidatorSpec struct {
	//+kubebuilder:default=kubescape
	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	// Global Severity Limit Rule
	SeverityLimitRule SeverityLimitRule `json:"severityLimitRule,omitempty" yaml:"severityLimitRule,omitempty"`
	// Global Ignore CVEs
	IgnoredCVERule []string `json:"ignoredCVERule,omitempty" yaml:"ignoredCVERule,omitempty"`
	// Rule for Flagged CVEs
	FlaggedCVERule []FlaggedCVE `json:"flaggedCVERule,omitempty" yaml:"flaggedCVERule,omitempty"`
}

KubescapeValidatorSpec defines the desired state of KubescapeValidator

func (*KubescapeValidatorSpec) DeepCopy

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

func (*KubescapeValidatorSpec) DeepCopyInto

func (in *KubescapeValidatorSpec) DeepCopyInto(out *KubescapeValidatorSpec)

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

func (KubescapeValidatorSpec) ResultCount

func (s KubescapeValidatorSpec) ResultCount() int

Increase for every rule

type KubescapeValidatorStatus

type KubescapeValidatorStatus struct {
}

KubescapeValidatorStatus defines the observed state of KubescapeValidator

func (*KubescapeValidatorStatus) DeepCopy

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

func (*KubescapeValidatorStatus) DeepCopyInto

func (in *KubescapeValidatorStatus) DeepCopyInto(out *KubescapeValidatorStatus)

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

type SeverityLimitRule

type SeverityLimitRule struct {
	Critical   *int `json:"critical,omitempty"`
	High       *int `json:"high,omitempty"`
	Medium     *int `json:"medium,omitempty"`
	Low        *int `json:"low,omitempty"`
	Negligible *int `json:"negligible,omitempty"`
	Unknown    *int `json:"unknown,omitempty"`
}

func (*SeverityLimitRule) DeepCopy

func (in *SeverityLimitRule) DeepCopy() *SeverityLimitRule

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

func (*SeverityLimitRule) DeepCopyInto

func (in *SeverityLimitRule) DeepCopyInto(out *SeverityLimitRule)

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

func (SeverityLimitRule) Name

func (r SeverityLimitRule) Name() string

Jump to

Keyboard shortcuts

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