v1alpha1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the infrastructure v1alpha1 API group +kubebuilder:object:generate=true +groupName=infrastructure.crit.sh

Index

Constants

View Source
const (
	MachineFinalizer = "awsmachine.infrastructure.crit.sh"

	NodeOwnerLabelName = "infrastructure.crit.sh/awsmachine"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.crit.sh", 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 AWSBlockDeviceMapping

type AWSBlockDeviceMapping struct {
	DeviceName string `json:"deviceName,omitempty"`
	VolumeSize int64  `json:"volumeSize,omitempty"`
	VolumeType string `json:"volumeType,omitempty"`
	// +optional
	Encrypted bool `json:"encrypted,omitempty"`
}

func (*AWSBlockDeviceMapping) DeepCopy

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

func (*AWSBlockDeviceMapping) DeepCopyInto

func (in *AWSBlockDeviceMapping) DeepCopyInto(out *AWSBlockDeviceMapping)

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

type AWSInfrastructureProvider

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

	Spec   AWSInfrastructureProviderSpec   `json:"spec,omitempty"`
	Status AWSInfrastructureProviderStatus `json:"status,omitempty"`
}

AWSInfrastructureProvider is the Schema for the awsinfrastructureproviders API

func (*AWSInfrastructureProvider) DeepCopy

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

func (*AWSInfrastructureProvider) DeepCopyInto

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

func (*AWSInfrastructureProvider) DeepCopyObject

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

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

type AWSInfrastructureProviderList

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

InfrastructureProviderList contains a list of AWSInfrastructureProvider

func (*AWSInfrastructureProviderList) DeepCopy

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

func (*AWSInfrastructureProviderList) DeepCopyInto

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

func (*AWSInfrastructureProviderList) DeepCopyObject

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

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

type AWSInfrastructureProviderSpec

type AWSInfrastructureProviderSpec struct {
	Region string `json:"region"`
}

AWSInfrastructureProviderSpec defines the desired state of AWSInfrastructureProvider

func (*AWSInfrastructureProviderSpec) DeepCopy

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

func (*AWSInfrastructureProviderSpec) DeepCopyInto

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

type AWSInfrastructureProviderStatus

type AWSInfrastructureProviderStatus struct {
	Ready       bool        `json:"ready"`
	LastUpdated metav1.Time `json:"lastUpdated"`
}

InfrastructureProviderStatus defines the observed state of AWSInfrastructureProvider

func (*AWSInfrastructureProviderStatus) DeepCopy

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

func (*AWSInfrastructureProviderStatus) DeepCopyInto

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

type AWSMachine

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

	Spec   AWSMachineSpec   `json:"spec,omitempty"`
	Status AWSMachineStatus `json:"status,omitempty"`
}

AWSMachine is the Schema for the awsmachines API

func (*AWSMachine) DeepCopy

func (in *AWSMachine) DeepCopy() *AWSMachine

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

func (*AWSMachine) DeepCopyInto

func (in *AWSMachine) DeepCopyInto(out *AWSMachine)

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

func (*AWSMachine) DeepCopyObject

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

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

type AWSMachineList

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

AWSMachineList contains a list of AWSMachine

func (*AWSMachineList) DeepCopy

func (in *AWSMachineList) DeepCopy() *AWSMachineList

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

func (*AWSMachineList) DeepCopyInto

func (in *AWSMachineList) DeepCopyInto(out *AWSMachineList)

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

func (*AWSMachineList) DeepCopyObject

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

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

type AWSMachineSpec

type AWSMachineSpec struct {
	// +optional
	ProviderID   *string                 `json:"providerID"`
	AMI          string                  `json:"ami,omitempty"`
	BlockDevices []AWSBlockDeviceMapping `json:"blockDevices,omitempty"`
	InstanceType string                  `json:"instanceType,omitempty"`
	// +optional
	IAMInstanceProfile string `json:"iamInstanceProfile,omitempty"`
	// +optional
	KeyName string `json:"keyName,omitempty"`
	// +optional
	Tags map[string]string `json:"tags,omitempty"`
	// +optional
	SecurityGroupIDs []string `json:"securityGroupIDs,omitempty"`
	// +optional
	SecurityGroupNames []string `json:"securityGroupNames,omitempty"`
	// +optional
	AvailabilityZone string `json:"availabilityZone,omitempty"`
	// +optional
	Region string `json:"region,omitempty"`
	// +optional
	SubnetIDs []string `json:"subnetIDs,omitempty"`
	// +optional
	PublicIP bool `json:"publicIP,omitempty"`
	// +optional
	VPCID string `json:"vpcID,omitempty"`
	// +optional
	SecretRef *corev1.ObjectReference `json:"secretRef,omitempty"`

	// TODO(chrism): needs to be implemented
	// FailureDomain is the failure domain unique identifier this Machine
	// should be attached to, as defined in Cluster API. For this
	// infrastructure provider, the ID is equivalent to an AWS Availability
	// Zone. If multiple subnets are matched for the availability zone, the
	// first one returned is picked.
	FailureDomain *string `json:"failureDomain,omitempty"`
}

AWSMachineSpec defines the desired state of AWSMachine

func (*AWSMachineSpec) DeepCopy

func (in *AWSMachineSpec) DeepCopy() *AWSMachineSpec

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

func (*AWSMachineSpec) DeepCopyInto

func (in *AWSMachineSpec) DeepCopyInto(out *AWSMachineSpec)

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

type AWSMachineStatus

type AWSMachineStatus struct {
	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Addresses contains the AWS instance associated addresses.
	Addresses     machinev1.MachineAddresses `json:"addresses,omitempty"`
	InstanceState string                     `json:"instanceState,omitempty"`
	// FailureReason will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a succinct value suitable
	// for machine interpretation.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureReason *mapierrors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty"`
}

AWSMachineStatus defines the observed state of AWSMachine

func (*AWSMachineStatus) DeepCopy

func (in *AWSMachineStatus) DeepCopy() *AWSMachineStatus

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

func (*AWSMachineStatus) DeepCopyInto

func (in *AWSMachineStatus) DeepCopyInto(out *AWSMachineStatus)

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

func (*AWSMachineStatus) SetFailure

func (m *AWSMachineStatus) SetFailure(err mapierrors.MachineStatusError, msg string)

Jump to

Keyboard shortcuts

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