v1alpha1

package
v0.0.0-...-907faa4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kubeflow.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type PodDefault

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

	Spec   PodDefaultSpec   `json:"spec,omitempty"`
	Status PodDefaultStatus `json:"status,omitempty"`
}

PodDefault is the Schema for the poddefaults API +k8s:openapi-gen=true +kubebuilder:resource:path=poddefaults +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;watch;list;update +kubebuilder:rbac:groups=,resources=events,verbs=create;patch;update +kubebuilder:informers:group=apps,version=v1,kind=Deployment

func (*PodDefault) DeepCopy

func (in *PodDefault) DeepCopy() *PodDefault

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

func (*PodDefault) DeepCopyInto

func (in *PodDefault) DeepCopyInto(out *PodDefault)

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

func (*PodDefault) DeepCopyObject

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

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

type PodDefaultList

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

PodDefaultList contains a list of PodDefault

func (*PodDefaultList) DeepCopy

func (in *PodDefaultList) DeepCopy() *PodDefaultList

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

func (*PodDefaultList) DeepCopyInto

func (in *PodDefaultList) DeepCopyInto(out *PodDefaultList)

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

func (*PodDefaultList) DeepCopyObject

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

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

type PodDefaultSpec

type PodDefaultSpec struct {

	// Selector is a label query over a set of resources, in this case pods.
	// Required.
	Selector metav1.LabelSelector `json:"selector"`

	// Human readable description of poddefault
	// todo: not sure if Spec is the right place for this (move to meta..)
	// Can be used by UI to show users avaialble options for poddefaults.
	// +optional
	Desc string `json:"desc,omitempty"`

	// Env defines the collection of EnvVar to inject into containers.
	// +optional
	Env []v1.EnvVar `json:"env,omitempty"`

	// EnvFrom defines the collection of EnvFromSource to inject into containers.
	// +optional
	EnvFrom []v1.EnvFromSource `json:"envFrom,omitempty"`

	// Volumes defines the collection of Volume to inject into the pod.
	// +optional
	Volumes []v1.Volume `json:"volumes,omitempty"`

	// VolumeMounts defines the collection of VolumeMount to inject into containers.
	// +optional
	VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"`

	// Annotations defines the annotations to inject into the pod.
	Annotations map[string]string `json:"annotations,omitempty"`

	// Labels defines the labels to inject into the pod.
	Labels map[string]string `json:"labels,omitempty"`

	Tolerations []v1.Toleration `json:"tolerations,omitempty"`
}

PodDefaultSpec defines the desired state of PodDefault

func (*PodDefaultSpec) DeepCopy

func (in *PodDefaultSpec) DeepCopy() *PodDefaultSpec

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

func (*PodDefaultSpec) DeepCopyInto

func (in *PodDefaultSpec) DeepCopyInto(out *PodDefaultSpec)

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

type PodDefaultStatus

type PodDefaultStatus struct {
}

PodDefaultStatus defines the observed state of PodDefault

func (*PodDefaultStatus) DeepCopy

func (in *PodDefaultStatus) DeepCopy() *PodDefaultStatus

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

func (*PodDefaultStatus) DeepCopyInto

func (in *PodDefaultStatus) DeepCopyInto(out *PodDefaultStatus)

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