v1alpha1

package
v0.0.0-...-8c29f88 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tools.opdev.io", 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 CheckOptions

type CheckOptions struct {
	ContainerOptions *ContainerOptions `json:"containerOptions,omitempty"`
	OperatorOptions  *OperatorOptions  `json:"operatorOptions,omitempty"`
}

+kubebuilder:validation:MaxProperties:=1

func (*CheckOptions) DeepCopy

func (in *CheckOptions) DeepCopy() *CheckOptions

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

func (*CheckOptions) DeepCopyInto

func (in *CheckOptions) DeepCopyInto(out *CheckOptions)

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

type ContainerOptions

type ContainerOptions struct {
	CertificationProjectID *string `json:"certificationProjectID,omitempty"`
	// +kubebuilder:validation:MinLength:=1
	PyxisAPITokenSecretRef string `json:"pyxisAPITokenSecretRef,omitempty"`
}

func (*ContainerOptions) DeepCopy

func (in *ContainerOptions) DeepCopy() *ContainerOptions

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

func (*ContainerOptions) DeepCopyInto

func (in *ContainerOptions) DeepCopyInto(out *ContainerOptions)

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

type OperatorOptions

type OperatorOptions struct {
	KubeconfigSecretRef     string `json:"kubeconfigSecretRef"`
	IndexImage              string `json:"indexImage"`
	ScorecardServiceAccount string `json:"scorecardServiceAccount,omitempty"`
	ScorecardNamespace      string `json:"scorecardNamespace,omitempty"`
	ScorecardWaitTime       string `json:"scorecardWaitTime,omitempty"`
	DeploymentChannel       string `json:"deploymentChannel,omitempty"`
}

func (*OperatorOptions) DeepCopy

func (in *OperatorOptions) DeepCopy() *OperatorOptions

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

func (*OperatorOptions) DeepCopyInto

func (in *OperatorOptions) DeepCopyInto(out *OperatorOptions)

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

type PreflightCheck

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

	Spec   PreflightCheckSpec   `json:"spec,omitempty"`
	Status PreflightCheckStatus `json:"status,omitempty"`
}

PreflightCheck is the Schema for the preflightchecks API

func (*PreflightCheck) CheckType

func (pc *PreflightCheck) CheckType() string

func (*PreflightCheck) DeepCopy

func (in *PreflightCheck) DeepCopy() *PreflightCheck

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

func (*PreflightCheck) DeepCopyInto

func (in *PreflightCheck) DeepCopyInto(out *PreflightCheck)

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

func (*PreflightCheck) DeepCopyObject

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

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

func (*PreflightCheck) GenerateJob

func (pc *PreflightCheck) GenerateJob() batchv1.Job

type PreflightCheckJobGenerator

type PreflightCheckJobGenerator struct {
	// contains filtered or unexported fields
}

PreflightCheckJobGenerator generates a batchv1.Job for a given PreflightCheck

func (*PreflightCheckJobGenerator) DeepCopy

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

func (*PreflightCheckJobGenerator) DeepCopyInto

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

func (*PreflightCheckJobGenerator) Generate

func (g *PreflightCheckJobGenerator) Generate() batchv1.Job

Generate returns a batchv1.Job based on the input g.PreflightCheck.

type PreflightCheckList

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

PreflightCheckList contains a list of PreflightCheck

func (*PreflightCheckList) DeepCopy

func (in *PreflightCheckList) DeepCopy() *PreflightCheckList

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

func (*PreflightCheckList) DeepCopyInto

func (in *PreflightCheckList) DeepCopyInto(out *PreflightCheckList)

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

func (*PreflightCheckList) DeepCopyObject

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

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

type PreflightCheckSpec

type PreflightCheckSpec struct {
	// Image is the container image to run preflight against.
	Image string `json:"image"`

	// LogLevel represents the preflight log level.
	// +kubebuilder:validation:Enum=Info;Warn;Debug;Trace
	LogLevel string `json:"logLevel,omitempty"`

	// DockerConfigSecretRef is a secret containing a key config.json with a dockerconfig.json
	// as its contents.
	// +kubebuilder:validation:MinLength:=1
	DockerConfigSecretRef string `json:"dockerConfigSecretRef,omitempty"`

	// PreflightImage overrides the default preflight stable container image.
	PreflightImage *string `json:"preflightImage,omitempty"`

	CheckOptions CheckOptions `json:"checkOptions"`
}

PreflightCheckSpec defines the desired state of PreflightCheck

func (*PreflightCheckSpec) DeepCopy

func (in *PreflightCheckSpec) DeepCopy() *PreflightCheckSpec

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

func (*PreflightCheckSpec) DeepCopyInto

func (in *PreflightCheckSpec) DeepCopyInto(out *PreflightCheckSpec)

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

type PreflightCheckStatus

type PreflightCheckStatus struct {
	Jobs      []string `json:"jobs,omitempty"`
	Completed bool     `json:"completed"`
	Type      string   `json:"type,omitempty"`
}

PreflightCheckStatus defines the observed state of PreflightCheck

func (*PreflightCheckStatus) DeepCopy

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

func (*PreflightCheckStatus) DeepCopyInto

func (in *PreflightCheckStatus) DeepCopyInto(out *PreflightCheckStatus)

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