v1alpha1

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Overview

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

Index

Constants

View Source
const SinkEmission clusterv1beta1.ConditionType = "SinkEmission"

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 ConditionType

type ConditionType string

ConditionType is a valid value for Condition.Type.

const HelmChartDeployedCondition ConditionType = "HelmChartDeployed"

HelmChartDeployedCondition defines whether the helm chart was installed/pulled/upgraded correctly.

type HelmChart

type HelmChart struct {
	Name                  string `json:"name" yaml:"name"`
	Repository            string `json:"repository" yaml:"repository"`
	Version               string `json:"version" yaml:"version"`
	CaFile                string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
	InsecureSkipTlsVerify bool   `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty"`
	AuthSecretName        string `json:"authSecretName,omitempty" yaml:"authSecretName,omitempty"`
}

func (*HelmChart) DeepCopy

func (in *HelmChart) DeepCopy() *HelmChart

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

func (*HelmChart) DeepCopyInto

func (in *HelmChart) DeepCopyInto(out *HelmChart)

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

type HelmRelease

type HelmRelease struct {
	Chart  HelmChart `json:"chart" yaml:"chart"`
	Values string    `json:"values" yaml:"values"`
}

func (*HelmRelease) DeepCopy

func (in *HelmRelease) DeepCopy() *HelmRelease

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

func (*HelmRelease) DeepCopyInto

func (in *HelmRelease) DeepCopyInto(out *HelmRelease)

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

type Sink

type Sink struct {
	// +kubebuilder:validation:Enum=alertmanager;slack
	Type string `json:"type" yaml:"type"`
	// Name of a K8s secret containing configuration details for the sink
	SecretName string `json:"secretName" yaml:"secretName"`
}

func (*Sink) DeepCopy

func (in *Sink) DeepCopy() *Sink

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

func (*Sink) DeepCopyInto

func (in *Sink) DeepCopyInto(out *Sink)

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

type SinkEmitState added in v0.0.37

type SinkEmitState string
const (
	SinkEmitNA        SinkEmitState = "SinkEmitNA"
	SinkEmitFailed    SinkEmitState = "SinkEmitFailed"
	SinkEmitSucceeded SinkEmitState = "SinkEmitSucceeded"
)

type ValidationCondition

type ValidationCondition struct {
	// Unique, one-word description of the validation type associated with the condition.
	ValidationType string `json:"validationType"`
	// Unique, one-word description of the validation rule associated with the condition.
	ValidationRule string `json:"validationRule"`
	// Human-readable message indicating details about the last transition.
	Message string `json:"message,omitempty"`
	// Human-readable messages indicating additional details for the last transition.
	Details []string `json:"details,omitempty"`
	// Human-readable messages indicating additional failure details for the last transition.
	Failures []string `json:"failures,omitempty"`
	// True if the validation rule succeeded, otherwise False.
	Status corev1.ConditionStatus `json:"status"`
	// Timestamp of most recent execution of the validation rule associated with the condition.
	LastValidationTime metav1.Time `json:"lastValidationTime"`
}

func DefaultValidationCondition

func DefaultValidationCondition() ValidationCondition

DefaultValidationCondition returns a default ValidationCondition

func (*ValidationCondition) DeepCopy

func (in *ValidationCondition) DeepCopy() *ValidationCondition

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

func (*ValidationCondition) DeepCopyInto

func (in *ValidationCondition) DeepCopyInto(out *ValidationCondition)

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

type ValidationResult

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

	Spec   ValidationResultSpec   `json:"spec,omitempty"`
	Status ValidationResultStatus `json:"status,omitempty"`
}

ValidationResult is the Schema for the validationresults API

func (*ValidationResult) DeepCopy

func (in *ValidationResult) DeepCopy() *ValidationResult

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

func (*ValidationResult) DeepCopyInto

func (in *ValidationResult) DeepCopyInto(out *ValidationResult)

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

func (*ValidationResult) DeepCopyObject

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

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

func (*ValidationResult) Hash

func (r *ValidationResult) Hash() string

type ValidationResultList

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

ValidationResultList contains a list of ValidationResult

func (*ValidationResultList) DeepCopy

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

func (*ValidationResultList) DeepCopyInto

func (in *ValidationResultList) DeepCopyInto(out *ValidationResultList)

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

func (*ValidationResultList) DeepCopyObject

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

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

type ValidationResultSpec

type ValidationResultSpec struct {
	Plugin string `json:"plugin"`
	// The number of rules in the validator plugin spec, hence the number of expected ValidationResults.
	// +kubebuilder:validation:Minimum=1
	ExpectedResults int `json:"expectedResults"`
}

ValidationResultSpec defines the desired state of ValidationResult

func (*ValidationResultSpec) DeepCopy

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

func (*ValidationResultSpec) DeepCopyInto

func (in *ValidationResultSpec) DeepCopyInto(out *ValidationResultSpec)

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

type ValidationResultStatus

type ValidationResultStatus struct {
	State ValidationState `json:"state"`

	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []clusterv1beta1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	ValidationConditions []ValidationCondition `json:"validationConditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ValidationResultStatus defines the observed state of ValidationResult

func (*ValidationResultStatus) DeepCopy

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

func (*ValidationResultStatus) DeepCopyInto

func (in *ValidationResultStatus) DeepCopyInto(out *ValidationResultStatus)

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

type ValidationState

type ValidationState string
const (
	ValidationFailed     ValidationState = "Failed"
	ValidationInProgress ValidationState = "InProgress"
	ValidationSucceeded  ValidationState = "Succeeded"
)

type ValidatorConfig

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

	Spec   ValidatorConfigSpec   `json:"spec,omitempty"`
	Status ValidatorConfigStatus `json:"status,omitempty"`
}

ValidatorConfig is the Schema for the validatorconfigs API

func (*ValidatorConfig) DeepCopy

func (in *ValidatorConfig) DeepCopy() *ValidatorConfig

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

func (*ValidatorConfig) DeepCopyInto

func (in *ValidatorConfig) DeepCopyInto(out *ValidatorConfig)

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

func (*ValidatorConfig) DeepCopyObject

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

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

type ValidatorConfigList

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

ValidatorConfigList contains a list of ValidatorConfig

func (*ValidatorConfigList) DeepCopy

func (in *ValidatorConfigList) DeepCopy() *ValidatorConfigList

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

func (*ValidatorConfigList) DeepCopyInto

func (in *ValidatorConfigList) DeepCopyInto(out *ValidatorConfigList)

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

func (*ValidatorConfigList) DeepCopyObject

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

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

type ValidatorConfigSpec

type ValidatorConfigSpec struct {
	Plugins []HelmRelease `json:"plugins,omitempty" yaml:"plugins,omitempty"`
	Sink    *Sink         `json:"sink,omitempty" yaml:"sink,omitempty"`
}

ValidatorConfigSpec defines the desired state of ValidatorConfig

func (*ValidatorConfigSpec) DeepCopy

func (in *ValidatorConfigSpec) DeepCopy() *ValidatorConfigSpec

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

func (*ValidatorConfigSpec) DeepCopyInto

func (in *ValidatorConfigSpec) DeepCopyInto(out *ValidatorConfigSpec)

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

type ValidatorConfigStatus

type ValidatorConfigStatus struct {
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []ValidatorPluginCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ValidatorConfigStatus defines the observed state of ValidatorConfig

func (*ValidatorConfigStatus) DeepCopy

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

func (*ValidatorConfigStatus) DeepCopyInto

func (in *ValidatorConfigStatus) DeepCopyInto(out *ValidatorConfigStatus)

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

type ValidatorPluginCondition

type ValidatorPluginCondition struct {
	// Type of condition in CamelCase or in foo.example.com/CamelCase.
	// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
	// can be useful (see .node.status.conditions), the ability to deconflict is important.
	// +required
	Type ConditionType `json:"type"`

	// Name of the Validator plugin.
	// +required
	PluginName string `json:"pluginName"`

	// Status of the condition, one of True, False, Unknown.
	// +required
	Status corev1.ConditionStatus `json:"status"`

	// A human readable message indicating details about the transition.
	// This field may be empty.
	// +optional
	Message string `json:"message,omitempty"`

	// Last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed. If that is not known, then using the time when
	// the API field changed is acceptable.
	// +required
	LastTransitionTime metav1.Time `json:"lastUpdatedTime"`
}

func (*ValidatorPluginCondition) DeepCopy

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

func (*ValidatorPluginCondition) DeepCopyInto

func (in *ValidatorPluginCondition) DeepCopyInto(out *ValidatorPluginCondition)

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

Jump to

Keyboard shortcuts

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