Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the capi v1alpha1 API group +kubebuilder:object:generate=true +groupName=capi.weave.works
Index ¶
Constants ¶
const BootstrappedAnnotation = "capi.weave.works/bootstrapped"
Variables ¶
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 ¶
func (in *ClusterBootstrapConfig) DeepCopy() *ClusterBootstrapConfig
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 ¶
func (in *ClusterBootstrapConfigList) DeepCopy() *ClusterBootstrapConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapConfigList.
func (*ClusterBootstrapConfigList) DeepCopyInto ¶
func (in *ClusterBootstrapConfigList) DeepCopyInto(out *ClusterBootstrapConfigList)
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 ¶
func (in *ClusterBootstrapConfigSpec) DeepCopy() *ClusterBootstrapConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapConfigSpec.
func (*ClusterBootstrapConfigSpec) DeepCopyInto ¶
func (in *ClusterBootstrapConfigSpec) DeepCopyInto(out *ClusterBootstrapConfigSpec)
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 ¶
func (in *ClusterBootstrapConfigStatus) DeepCopy() *ClusterBootstrapConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBootstrapConfigStatus.
func (*ClusterBootstrapConfigStatus) DeepCopyInto ¶
func (in *ClusterBootstrapConfigStatus) DeepCopyInto(out *ClusterBootstrapConfigStatus)
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.