providerconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "aws.cluster.k8s.io"

GroupName is group name of the cluster kinds

Variables

View Source
var (
	// SchemeBuilder with scheme builder
	SchemeBuilder runtime.SchemeBuilder
	// AddToScheme is method for adding objects to the scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is scheme group version of the cluster kinds

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind returns group kind for a given kind/object

func Resource

func Resource(resource string) schema.GroupResource

Resource returns group resource for a given resource

Types

type AWSClusterProviderConfig

type AWSClusterProviderConfig struct {
	metav1.TypeMeta
}

AWSClusterProviderConfig is aws speific configuration +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AWSClusterProviderConfig) DeepCopy

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

func (*AWSClusterProviderConfig) DeepCopyInto

func (in *AWSClusterProviderConfig) DeepCopyInto(out *AWSClusterProviderConfig)

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

func (*AWSClusterProviderConfig) DeepCopyObject

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

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

type AWSClusterProviderStatus

type AWSClusterProviderStatus struct {
	metav1.TypeMeta
}

AWSClusterProviderStatus is AWS specific status +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AWSClusterProviderStatus) DeepCopy

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

func (*AWSClusterProviderStatus) DeepCopyInto

func (in *AWSClusterProviderStatus) DeepCopyInto(out *AWSClusterProviderStatus)

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

func (*AWSClusterProviderStatus) DeepCopyObject

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

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

type AWSMachineProviderCondition

type AWSMachineProviderCondition struct {
	// Type is the type of the condition.
	Type AWSMachineProviderConditionType
	// Status is the status of the condition.
	Status corev1.ConditionStatus
	// LastProbeTime is the last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time
	// Reason is a unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string
	// Message is a human-readable message indicating details about last transition.
	// +optional
	Message string
}

AWSMachineProviderCondition is a condition in a AWSMachineProviderStatus

func (*AWSMachineProviderCondition) DeepCopy

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

func (*AWSMachineProviderCondition) DeepCopyInto

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

type AWSMachineProviderConditionType

type AWSMachineProviderConditionType string

AWSMachineProviderConditionType is a valid value for AWSMachineProviderCondition.Type

const (
	// MachineCreation indicates whether the machine has been created or not. If not,
	// it should include a reason and message for the failure.
	MachineCreation AWSMachineProviderConditionType = "MachineCreation"
)

Valid conditions for an AWS machine instance

type AWSMachineProviderConfig

type AWSMachineProviderConfig struct {
	metav1.TypeMeta

	// AMI is the reference to the AMI from which to create the machine instance.
	AMI AWSResourceReference

	// InstanceType is the type of instance to create. Example: m4.xlarge
	InstanceType string

	// Tags is the set of tags to add to apply to an instance, in addition to the ones
	// added by default by the actuator. These tags are additive. The actuator will ensure
	// these tags are present, but will not remove any other tags that may exist on the
	// instance.
	Tags []TagSpecification

	// IAMInstanceProfile is a reference to an IAM role to assign to the instance
	IAMInstanceProfile *AWSResourceReference

	// UserDataSecret contains a local reference to a secret that contains the
	// UserData to apply to the instance
	UserDataSecret *corev1.LocalObjectReference

	// CredentialsSecret is a reference to the secret with AWS credentials. Otherwise, defaults to permissions
	// provided by attached IAM role where the actuator is running.
	CredentialsSecret *corev1.LocalObjectReference

	// KeyName is the name of the KeyPair to use for SSH
	KeyName *string

	// DeviceIndex is the index of the device on the instance for the network interface attachment.
	// Defaults to 0.
	DeviceIndex int64

	// PublicIP specifies whether the instance should get a public IP. If not present,
	// it should use the default of its subnet.
	PublicIP *bool

	// SecurityGroups is an array of references to security groups that should be applied to the
	// instance.
	SecurityGroups []AWSResourceReference

	// Subnet is a reference to the subnet to use for this instance
	Subnet AWSResourceReference

	// Placement specifies where to create the instance in AWS
	Placement Placement

	// LoadBalancerIDs is the IDs of the load balancers to which the new instance
	// should be added once it is created.
	LoadBalancerIDs []AWSResourceReference
}

AWSMachineProviderConfig is the type that will be embedded in a Machine.Spec.ProviderConfig field for an AWS instance. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AWSMachineProviderConfig) DeepCopy

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

func (*AWSMachineProviderConfig) DeepCopyInto

func (in *AWSMachineProviderConfig) DeepCopyInto(out *AWSMachineProviderConfig)

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

func (*AWSMachineProviderConfig) DeepCopyObject

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

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

type AWSMachineProviderStatus

type AWSMachineProviderStatus struct {
	metav1.TypeMeta

	// InstanceID is the instance ID of the machine created in AWS
	InstanceID *string

	// InstanceState is the state of the AWS instance for this machine
	InstanceState *string

	// Conditions is a set of conditions associated with the Machine to indicate
	// errors or other status
	Conditions []AWSMachineProviderCondition
}

AWSMachineProviderStatus is the type that will be embedded in a Machine.Status.ProviderStatus field. It containsk AWS-specific status information. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*AWSMachineProviderStatus) DeepCopy

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

func (*AWSMachineProviderStatus) DeepCopyInto

func (in *AWSMachineProviderStatus) DeepCopyInto(out *AWSMachineProviderStatus)

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

func (*AWSMachineProviderStatus) DeepCopyObject

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

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

type AWSResourceReference

type AWSResourceReference struct {
	// ID of resource
	ID *string

	// ARN of resource
	ARN *string

	// Filters is a set of filters used to identify a resource
	Filters []Filter
}

AWSResourceReference is a reference to a specific AWS resource by ID, ARN, or filters. Only one of ID, ARN or Filters may be specified. Specifying more than one will result in a validation error.

func (*AWSResourceReference) DeepCopy

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

func (*AWSResourceReference) DeepCopyInto

func (in *AWSResourceReference) DeepCopyInto(out *AWSResourceReference)

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

type Filter

type Filter struct {
	// Name of the filter. Filter names are case-sensitive.
	Name string

	// Values includes one or more filter values. Filter values are case-sensitive.
	Values []string
}

Filter is a filter used to identify an AWS resource

func (*Filter) DeepCopy

func (in *Filter) DeepCopy() *Filter

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

func (*Filter) DeepCopyInto

func (in *Filter) DeepCopyInto(out *Filter)

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

type Placement

type Placement struct {
	// Region is the region to use to create the instance
	Region string

	// AvailabilityZone is the availability zone of the instance
	AvailabilityZone string
}

Placement indicates where to create the instance in AWS

func (*Placement) DeepCopy

func (in *Placement) DeepCopy() *Placement

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

func (*Placement) DeepCopyInto

func (in *Placement) DeepCopyInto(out *Placement)

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

type TagSpecification

type TagSpecification struct {
	// Name of the tag
	Name string

	// Value of the tag
	Value string
}

TagSpecification is the name/value pair for a tag

func (*TagSpecification) DeepCopy

func (in *TagSpecification) DeepCopy() *TagSpecification

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

func (*TagSpecification) DeepCopyInto

func (in *TagSpecification) DeepCopyInto(out *TagSpecification)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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