v1alpha2

package
v0.0.0-...-d10fae5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the clusters v1alpha2 API group +kubebuilder:object:generate=true +groupName=clusters.ci.cilium.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "clusters.ci.cilium.io", Version: "v1alpha2"}

	// 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 CommonCondition

type CommonCondition struct {
	Type               string      `json:"type"`
	Status             string      `json:"status"`
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	Reason             string      `json:"reason,omitempty"`
	Message            string      `json:"message,omitempty"`
}

func (*CommonCondition) DeepCopy

func (in *CommonCondition) DeepCopy() *CommonCondition

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

func (*CommonCondition) DeepCopyInto

func (in *CommonCondition) DeepCopyInto(out *CommonCondition)

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

type CommonConditions

type CommonConditions []CommonCondition

func (CommonConditions) DeepCopy

func (in CommonConditions) DeepCopy() CommonConditions

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

func (CommonConditions) DeepCopyInto

func (in CommonConditions) DeepCopyInto(out *CommonConditions)

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

func (CommonConditions) HaveReadyCondition

func (c CommonConditions) HaveReadyCondition() bool

type TestClusterGKE

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

	Spec   TestClusterGKESpec   `json:"spec,omitempty"`
	Status TestClusterGKEStatus `json:"status,omitempty"`
}

TestClusterGKE is the Schema for the TestClustersGKE API

func (*TestClusterGKE) DeepCopy

func (in *TestClusterGKE) DeepCopy() *TestClusterGKE

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

func (*TestClusterGKE) DeepCopyInto

func (in *TestClusterGKE) DeepCopyInto(out *TestClusterGKE)

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

func (*TestClusterGKE) DeepCopyObject

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

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

func (*TestClusterGKE) Default

func (c *TestClusterGKE) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*TestClusterGKE) Hub

func (*TestClusterGKE) Hub()

Hub marks this type as a conversion hub.

func (*TestClusterGKE) SetupWebhookWithManager

func (c *TestClusterGKE) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*TestClusterGKE) ValidateCreate

func (c *TestClusterGKE) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*TestClusterGKE) ValidateDelete

func (c *TestClusterGKE) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*TestClusterGKE) ValidateUpdate

func (c *TestClusterGKE) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

func (*TestClusterGKE) WithoutTypeMeta

func (t *TestClusterGKE) WithoutTypeMeta() *TestClusterGKE_WithoutTypeMeta

WithoutTypeMeta returns a copy of t without TypeMeta, this is a workaround an issue with CUE (see https://github.com/cuelang/cue/discussions/439)

type TestClusterGKEJobRunnerSpec

type TestClusterGKEJobRunnerSpec struct {
	// Image that will drive the tests
	Image *string `json:"image,omitempty"`
	// Command that will be used
	Command []string `json:"command,omitempty"`
	// InitImage specifies the image used in init container
	InitImage *string `json:"initImage,omitempty"`
	// Env speficies environment variables for the runner
	Env []corev1.EnvVar `json:"env,omitempty"`
	// ConfigMap is a name of configmap of the runner
	ConfigMap *string `json:"configMap,omitempty"`
}

TestClusterGKEJobRunnerSpec is the specification of test job controll process container

func (*TestClusterGKEJobRunnerSpec) DeepCopy

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

func (*TestClusterGKEJobRunnerSpec) DeepCopyInto

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

type TestClusterGKEJobSpec

type TestClusterGKEJobSpec struct {
	// Runner specifies a container that will run control process that drives the tests
	Runner *TestClusterGKEJobRunnerSpec `json:"runner,omitempty"`
	// ImagesToTest is a set of application images that will be tested
	ImagesToTest *map[string]string `json:"imagesToTest,omitempty"`
}

TestClusterGKEJobSpec is the specification of test job

func (*TestClusterGKEJobSpec) DeepCopy

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

func (*TestClusterGKEJobSpec) DeepCopyInto

func (in *TestClusterGKEJobSpec) DeepCopyInto(out *TestClusterGKEJobSpec)

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

type TestClusterGKEList

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

TestClusterGKEList contains a list of TestClusterGKE

func (*TestClusterGKEList) DeepCopy

func (in *TestClusterGKEList) DeepCopy() *TestClusterGKEList

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

func (*TestClusterGKEList) DeepCopyInto

func (in *TestClusterGKEList) DeepCopyInto(out *TestClusterGKEList)

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

func (*TestClusterGKEList) DeepCopyObject

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

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

type TestClusterGKESpec

type TestClusterGKESpec struct {
	// Project is the name of GCP project
	Project *string `json:"project,omitempty"`
	// ConfigTemplate is the name of configuration template to use
	ConfigTemplate *string `json:"configTemplate,omitempty"`
	// Location is a GCP zone or region
	Location *string `json:"location,omitempty"`
	// Location is a GCP region (derived from location)
	// TODO: not user-settable, read-only
	Region *string `json:"region,omitempty"`
	// KubernetesVersion is the version of Kubernetes to use
	KubernetesVersion *string `json:"kubernetesVersion,omitempty"`
	// JobSpec is the specification of test job
	JobSpec *TestClusterGKEJobSpec `json:"jobSpec,omitempty"`
	// MachineType is the GCP machine type
	MachineType *string `json:"machineType,omitempty"`
	// Nodes is the number of nodes
	Nodes *int `json:"nodes,omitempty"`
}

TestClusterGKESpec defines the desired state of TestClusterGKE

func (*TestClusterGKESpec) DeepCopy

func (in *TestClusterGKESpec) DeepCopy() *TestClusterGKESpec

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

func (*TestClusterGKESpec) DeepCopyInto

func (in *TestClusterGKESpec) DeepCopyInto(out *TestClusterGKESpec)

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

type TestClusterGKEStatus

type TestClusterGKEStatus struct {
	Conditions CommonConditions `json:"conditions,omitempty"`
	// +kubebuilder:pruning:PreserveUnknownFields
	// +kubebuilder:validation:XPreserveUnknownFields
	Dependencies map[string]CommonConditions `json:"dependencyConditions,omitempty"`
	ClusterName  *string                     `json:"clusterName,omitempty"`
}

TestClusterGKEStatus defines the observed state of TestClusterGKE

func (*TestClusterGKEStatus) AllDependeciesReady

func (c *TestClusterGKEStatus) AllDependeciesReady() bool

func (*TestClusterGKEStatus) DeepCopy

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

func (*TestClusterGKEStatus) DeepCopyInto

func (in *TestClusterGKEStatus) DeepCopyInto(out *TestClusterGKEStatus)

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

func (*TestClusterGKEStatus) HasReadyCondition

func (c *TestClusterGKEStatus) HasReadyCondition() bool

type TestClusterGKE_WithoutTypeMeta

type TestClusterGKE_WithoutTypeMeta struct {
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TestClusterGKESpec   `json:"spec,omitempty"`
	Status TestClusterGKEStatus `json:"status,omitempty"`
}

func (*TestClusterGKE_WithoutTypeMeta) DeepCopy

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

func (*TestClusterGKE_WithoutTypeMeta) DeepCopyInto

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