v1alpha1

package
v0.0.0-...-5718153 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the agill.apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=agill.apps.eks-fargate-controller

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "agill.apps.eks-fargate-controller", 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 FargateProfile

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

	Spec   FargateProfileSpec   `json:"spec,omitempty"`
	Status FargateProfileStatus `json:"status,omitempty"`
}

FargateProfile is the Schema for the fargateprofiles API +kubebuilder:subresource:status +kubebuilder:printcolumn:name="selectors",type=string,JSONPath=`.spec.selectors` +kubebuilder:printcolumn:name="phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*FargateProfile) DeepCopy

func (in *FargateProfile) DeepCopy() *FargateProfile

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

func (*FargateProfile) DeepCopyInto

func (in *FargateProfile) DeepCopyInto(out *FargateProfile)

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

func (*FargateProfile) DeepCopyObject

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

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

func (*FargateProfile) WithCreateIn

func (in *FargateProfile) WithCreateIn() *eks.CreateFargateProfileInput

func (*FargateProfile) WithDeleteIn

func (in *FargateProfile) WithDeleteIn() *eks.DeleteFargateProfileInput

type FargateProfileList

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

FargateProfileList contains a list of FargateProfile

func (*FargateProfileList) DeepCopy

func (in *FargateProfileList) DeepCopy() *FargateProfileList

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

func (*FargateProfileList) DeepCopyInto

func (in *FargateProfileList) DeepCopyInto(out *FargateProfileList)

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

func (*FargateProfileList) DeepCopyObject

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

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

type FargateProfileSelector

type FargateProfileSelector struct {
	// The Kubernetes labels that the selector should match. A pod must contain
	// all of the labels that are specified in the selector for it to be considered
	// a match.
	Labels    map[string]string `json:"labels"`
	Namespace string            `json:"namespace,required"`
}

func (*FargateProfileSelector) DeepCopy

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

func (*FargateProfileSelector) DeepCopyInto

func (in *FargateProfileSelector) DeepCopyInto(out *FargateProfileSelector)

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

type FargateProfileSpec

type FargateProfileSpec struct {
	Region string `json:"region,required"`

	// The name of the Amazon EKS cluster to apply the Fargate profile to.
	// ClusterName is a required field
	ClusterName string `json:"clusterName,required"`

	// The Amazon Resource Name (ARN) of the pod execution role to use for pods
	// that match the selectors in the Fargate profile. The pod execution role allows
	// Fargate infrastructure to register with your cluster as a node, and it provides
	// read access to Amazon ECR image repositories. For more information, see Pod
	// Execution Role (https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html)
	// in the Amazon EKS User Guide.
	// PodExecutionRoleArn is a required field
	PodExecutionRoleArn string `json:"podExecutionRoleArn,required"`

	// An object representing an AWS Fargate profile selector ( can include 5 at max ).
	// +kubebuilder:validation:MaxItems=5
	// +kubebuilder:validation:MinItems=1
	Selectors []FargateProfileSelector `json:"selectors"`

	// The IDs of subnets to launch your pods into. At this time, pods running on
	// Fargate are not assigned public IP addresses, so only private subnets (with
	// no direct route to an Internet Gateway) are accepted for this parameter.
	// TODO: add validation in each reconcile to make sure subnets provided are private
	Subnets []string `json:"subnets"`

	// The metadata to apply to the Fargate profile to assist with categorization
	// and organization. Each tag consists of a key and an optional value, both
	// of which you define. Fargate profile tags do not propagate to any other resources
	// associated with the Fargate profile, such as the pods that are scheduled
	// with it.
	// +optional
	Tags map[string]string `json:"tags"`
}

FargateProfileSpec defines the desired state of FargateProfile

func (*FargateProfileSpec) DeepCopy

func (in *FargateProfileSpec) DeepCopy() *FargateProfileSpec

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

func (*FargateProfileSpec) DeepCopyInto

func (in *FargateProfileSpec) DeepCopyInto(out *FargateProfileSpec)

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

type FargateProfileStatus

type FargateProfileStatus struct {
	Phase Phase `json:"phase"`
}

FargateProfileStatus defines the observed state of FargateProfile

func (*FargateProfileStatus) DeepCopy

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

func (*FargateProfileStatus) DeepCopyInto

func (in *FargateProfileStatus) DeepCopyInto(out *FargateProfileStatus)

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

type Phase

type Phase string
const (
	Ready             Phase = "Ready"
	Creating          Phase = "Creating"
	Deleting          Phase = "Deleting"
	Failed            Phase = "Failed"
	PendingEvaluation Phase = "Pending-Evaluation"
)

Jump to

Keyboard shortcuts

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