v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the capi v1alpha1 API group +kubebuilder:object:generate=true +groupName=capi.weave.works

Index

Constants

View Source
const BootstrappedAnnotation = "capi.weave.works/bootstrapped"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "capi.weave.works", 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 ClusterBootstrapConfig

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

	Spec   ClusterBootstrapConfigSpec   `json:"spec,omitempty"`
	Status ClusterBootstrapConfigStatus `json:"status,omitempty"`
}

ClusterBootstrapConfig is the Schema for the clusterbootstrapconfigs API

func (ClusterBootstrapConfig) ClusterReadinessRequeue

func (c ClusterBootstrapConfig) ClusterReadinessRequeue() time.Duration

ClusterReadinessRequeue returns the configured ClusterReadinessBackoff or a default value if not configured.

func (*ClusterBootstrapConfig) DeepCopy

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

func (*ClusterBootstrapConfig) DeepCopyInto

func (in *ClusterBootstrapConfig) DeepCopyInto(out *ClusterBootstrapConfig)

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

func (*ClusterBootstrapConfig) DeepCopyObject

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

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

type ClusterBootstrapConfigList

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

ClusterBootstrapConfigList contains a list of ClusterBootstrapConfig

func (*ClusterBootstrapConfigList) DeepCopy

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

func (*ClusterBootstrapConfigList) DeepCopyInto

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

func (*ClusterBootstrapConfigList) DeepCopyObject

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

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

type ClusterBootstrapConfigSpec

type ClusterBootstrapConfigSpec struct {
	ClusterSelector metav1.LabelSelector `json:"clusterSelector"`
	Template        JobTemplate          `json:"jobTemplate"`

	// Wait for the remote cluster to be "ready" before creating the jobs.
	// Defaults to false.
	//+kubebuilder:default:false
	RequireClusterReady bool `json:"requireClusterReady"`
	// When checking for readiness, this is the time to wait before
	// checking again.
	//+kubebuilder:default:60s
	ClusterReadinessBackoff *metav1.Duration `json:"clusterReadinessBackoff,omitempty"`
}

ClusterBootstrapConfigSpec defines the desired state of ClusterBootstrapConfig

func (*ClusterBootstrapConfigSpec) DeepCopy

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

func (*ClusterBootstrapConfigSpec) DeepCopyInto

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

type ClusterBootstrapConfigStatus

type ClusterBootstrapConfigStatus struct {
}

ClusterBootstrapConfigStatus defines the observed state of ClusterBootstrapConfig

func (*ClusterBootstrapConfigStatus) DeepCopy

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

func (*ClusterBootstrapConfigStatus) DeepCopyInto

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

type JobTemplate

type JobTemplate struct {
	// DNS1032 compatible name used as a prefix when generating the Job from the
	// Spec.
	GenerateName string `json:"generateName"`
	// Specifies the number of retries before marking this job failed.
	// Defaults to 6
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=6
	BackoffLimit *int32 `json:"backoffLimit,optional"`
	// A batch/v1 Job is created with the Spec as the PodSpec.
	Spec corev1.PodSpec `json:"spec"`
}

JobTemplate describes a job to create

func (*JobTemplate) DeepCopy

func (in *JobTemplate) DeepCopy() *JobTemplate

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

func (*JobTemplate) DeepCopyInto

func (in *JobTemplate) DeepCopyInto(out *JobTemplate)

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