Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the validation v1alpha1 API group +kubebuilder:object:generate=true +groupName=validation.spectrocloud.labs
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
FlaggedCVE is a flagged CVE rule.
func (FlaggedCVE) Name ¶
func (r FlaggedCVE) Name() string
Name returns the formatted name of the flagged CVE.
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 ¶
func (in *KubescapeValidatorList) DeepCopy() *KubescapeValidatorList
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"`
// Rule for Flagged CVEs
FlaggedCVERule []FlaggedCVE `json:"flaggedCVERule,omitempty" yaml:"flaggedCVERule,omitempty"`
}
KubescapeValidatorSpec defines the desired state of KubescapeValidator
func (*KubescapeValidatorSpec) DeepCopy ¶
func (in *KubescapeValidatorSpec) DeepCopy() *KubescapeValidatorSpec
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
ResultCount returns the number of validation results expected for an KubescapeValidatorSpec.
type KubescapeValidatorStatus ¶
type KubescapeValidatorStatus struct {
}
KubescapeValidatorStatus defines the observed state of KubescapeValidator
func (*KubescapeValidatorStatus) DeepCopy ¶
func (in *KubescapeValidatorStatus) DeepCopy() *KubescapeValidatorStatus
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"`
}
SeverityLimitRule verifies that the number of vulnerabilities of each severity level does not exceed the specified limit.
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
Name is the name of all severity limit rules.