v1alpha1

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=karpenter.k8s.aws

Index

Constants

View Source
const (
	// Active is a condition implemented by all resources. It indicates that the
	// controller is able to take actions: it's correctly configured, can make
	// necessary API calls, and isn't disabled.
	Active apis.ConditionType = "Active"
)

Variables

View Source
var (
	Group              = "karpenter.k8s.aws"
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: "v1alpha1"}
	SchemeBuilder      = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error {
		scheme.AddKnownTypes(SchemeGroupVersion,
			&AWSNodeTemplate{},
			&AWSNodeTemplateList{},
		)
		metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
		return nil
	})
)

Functions

This section is empty.

Types

type AWSNodeTemplate

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

	Spec AWSNodeTemplateSpec `json:"spec,omitempty"`
}

AWSNodeTemplate is the Schema for the AWSNodeTemplate API +kubebuilder:object:root=true +kubebuilder:resource:path=awsnodetemplates,scope=Cluster,categories=karpenter +kubebuilder:subresource:status

func (*AWSNodeTemplate) DeepCopy

func (in *AWSNodeTemplate) DeepCopy() *AWSNodeTemplate

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

func (*AWSNodeTemplate) DeepCopyInto

func (in *AWSNodeTemplate) DeepCopyInto(out *AWSNodeTemplate)

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

func (*AWSNodeTemplate) DeepCopyObject

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

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

func (*AWSNodeTemplate) SetDefaults

func (a *AWSNodeTemplate) SetDefaults(ctx context.Context)

SetDefaults for the AWSNodeTemplate

func (*AWSNodeTemplate) Validate

func (a *AWSNodeTemplate) Validate(ctx context.Context) (errs *apis.FieldError)

type AWSNodeTemplateList added in v0.11.0

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

AWSNodeTemplateList contains a list of AWSNodeTemplate +kubebuilder:object:root=true

func (*AWSNodeTemplateList) DeepCopy added in v0.11.0

func (in *AWSNodeTemplateList) DeepCopy() *AWSNodeTemplateList

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

func (*AWSNodeTemplateList) DeepCopyInto added in v0.11.0

func (in *AWSNodeTemplateList) DeepCopyInto(out *AWSNodeTemplateList)

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

func (*AWSNodeTemplateList) DeepCopyObject added in v0.11.0

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

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

type AWSNodeTemplateSpec

type AWSNodeTemplateSpec struct {
	// UserData to be applied to the provisioned nodes.
	// It must be in the appropriate format based on the AMIFamily in use. Karpenter will merge certain fields into
	// this UserData to ensure nodes are being provisioned with the correct configuration.
	// +optional
	UserData     *string `json:"userData,omitempty"`
	v1alpha1.AWS `json:",inline"`
	// AMISelector discovers AMIs to be used by Amazon EC2 tags.
	// +optional
	AMISelector map[string]string `json:"amiSelector,omitempty"`
}

AWSNodeTemplateSpec is the top level specification for the AWS Karpenter Provider. This will contain configuration necessary to launch instances in AWS.

func (*AWSNodeTemplateSpec) DeepCopy

func (in *AWSNodeTemplateSpec) DeepCopy() *AWSNodeTemplateSpec

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

func (*AWSNodeTemplateSpec) DeepCopyInto

func (in *AWSNodeTemplateSpec) DeepCopyInto(out *AWSNodeTemplateSpec)

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