v1alpha1

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 is a generic package for DTOs. No versioning for now.

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=atro.xyz

Index

Constants

This section is empty.

Variables

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

func MergeDictValues added in v0.0.39

func MergeDictValues(dst, src interface{}) (interface{}, error)

Types

type AppBundle

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

	Spec   AppBundleSpec   `json:"spec,omitempty"`
	Status AppBundleStatus `json:"status,omitempty"`
}

AppBundle is the Schema for the appbundles API

func (*AppBundle) DeepCopy

func (in *AppBundle) DeepCopy() *AppBundle

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

func (*AppBundle) DeepCopyInto

func (in *AppBundle) DeepCopyInto(out *AppBundle)

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

func (*AppBundle) DeepCopyObject

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

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

func (AppBundle) GetLastReconciliation

func (ab AppBundle) GetLastReconciliation() (bool, string)

func (AppBundle) GetSpecHash

func (ab AppBundle) GetSpecHash() (string, error)

rxhash.HashStruct(ab.Spec)

func (AppBundle) ID

func (ab AppBundle) ID() string

ID returns the unique ID of the appbundle

func (*AppBundle) OwnerReference

func (ab *AppBundle) OwnerReference() metav1.OwnerReference

type AppBundleBase

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

	Spec   AppBundleBaseSpec   `json:"spec,omitempty"`
	Status AppBundleBaseStatus `json:"status,omitempty"`
}

AppBundleBase is the Schema for the appbundlebases API

func (*AppBundleBase) DeepCopy

func (in *AppBundleBase) DeepCopy() *AppBundleBase

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

func (*AppBundleBase) DeepCopyInto

func (in *AppBundleBase) DeepCopyInto(out *AppBundleBase)

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

func (*AppBundleBase) DeepCopyObject

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

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

func (AppBundleBase) GetLastReconciliation

func (abb AppBundleBase) GetLastReconciliation() (bool, string)

func (AppBundleBase) GetSpecHash

func (abb AppBundleBase) GetSpecHash() (string, error)

rxhash.HashStruct(ab.Spec)

func (AppBundleBase) ID

func (abb AppBundleBase) ID() string

ID returns the unique ID of the appbundle

func (AppBundleBase) ToAppBundle added in v0.0.39

func (abb AppBundleBase) ToAppBundle() (*AppBundle, error)

ToAppBundle converts AppBundleBase to AppBundle. Note it is important that we pass abb by value not by reference as copier can modify the object

type AppBundleBaseList

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

AppBundleBaseList contains a list of AppBundleBase

func (*AppBundleBaseList) DeepCopy

func (in *AppBundleBaseList) DeepCopy() *AppBundleBaseList

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

func (*AppBundleBaseList) DeepCopyInto

func (in *AppBundleBaseList) DeepCopyInto(out *AppBundleBaseList)

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

func (*AppBundleBaseList) DeepCopyObject

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

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

type AppBundleBaseSpec

type AppBundleBaseSpec struct {
	Base           *string                        `json:"base,omitempty" copier:"-"`
	Image          *AppBundleImage                `json:"image,omitempty"`
	NodeSelector   *map[string]string             `json:"nodeSelector,omitempty"`
	UseNvidia      *bool                          `json:"useNvidia,omitempty"`
	Replicas       *int32                         `json:"replicas,omitempty"`
	Resources      *v1.ResourceRequirements       `json:"resources,omitempty"`
	Envs           map[string]string              `json:"envs,omitempty"`
	SecretStoreRef *string                        `json:"secretStoreRef,omitempty"`
	SourcedEnvs    map[string]AppBundleSourcedEnv `json:"sourcedEnvs,omitempty"`
	ServiceType    *v1.ServiceType                `json:"serviceType,omitempty"`
	Routes         map[string]AppBundleRoute      `json:"routes,omitempty"`
	Homepage       *AppBundleHomePage             `json:"homepage,omitempty"`
	Volumes        map[string]AppBundleVolume     `json:"volumes,omitempty"`
	Backup         *AppBundleVolumeLonghornBackup `json:"backup,omitempty"`
	Selector       *metav1.LabelSelector          `json:"selector,omitempty"`
	LivenessProbe  *v1.Probe                      `json:"livenessProbe,omitempty"`
	ReadinessProbe *v1.Probe                      `json:"readinessProbe,omitempty"`
	StartupProbe   *v1.Probe                      `json:"startupProbe,omitempty"`
	Command        []*string                      `json:"command,omitempty"`
	Args           []*string                      `json:"args,omitempty"`
	Configs        map[string]AppBundleConfig     `json:"configs,omitempty"`
}

AppBundleBaseSpec defines the desired state of AppBundleBase

func (*AppBundleBaseSpec) DeepCopy

func (in *AppBundleBaseSpec) DeepCopy() *AppBundleBaseSpec

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

func (*AppBundleBaseSpec) DeepCopyInto

func (in *AppBundleBaseSpec) DeepCopyInto(out *AppBundleBaseSpec)

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

type AppBundleBaseStatus

type AppBundleBaseStatus struct {
	LastReconciliation *string `json:"lastReconciliation,omitempty"`
}

AppBundleBaseStatus defines the observed state of AppBundleBase

func (*AppBundleBaseStatus) DeepCopy

func (in *AppBundleBaseStatus) DeepCopy() *AppBundleBaseStatus

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

func (*AppBundleBaseStatus) DeepCopyInto

func (in *AppBundleBaseStatus) DeepCopyInto(out *AppBundleBaseStatus)

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

type AppBundleConfig

type AppBundleConfig struct {
	FileName string            `json:"fileName,omitempty"`
	Content  string            `json:"content,omitempty"`
	Existing *string           `json:"existing,omitempty"`
	Secrets  map[string]string `json:"secrets,omitempty"`
	DirPath  string            `json:"dirPath,omitempty"`
	CopyOver *bool             `json:"copyOver,omitempty"`
}

func (*AppBundleConfig) DeepCopy

func (in *AppBundleConfig) DeepCopy() *AppBundleConfig

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

func (*AppBundleConfig) DeepCopyInto

func (in *AppBundleConfig) DeepCopyInto(out *AppBundleConfig)

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

type AppBundleHomePage

type AppBundleHomePage struct {
	Description *string `json:"description,omitempty"`
	Section     *string `json:"section,omitempty"`
	Href        *string `json:"href,omitempty"`
	Icon        *string `json:"icon,omitempty"`
	Name        *string `json:"name,omitempty"`
	Groups      *string `json:"groups,omitempty"`
}

func (*AppBundleHomePage) DeepCopy

func (in *AppBundleHomePage) DeepCopy() *AppBundleHomePage

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

func (*AppBundleHomePage) DeepCopyInto

func (in *AppBundleHomePage) DeepCopyInto(out *AppBundleHomePage)

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

type AppBundleImage

type AppBundleImage struct {
	Repository *string        `json:"repository,omitempty"`
	Tag        *string        `json:"tag,omitempty"`
	PullPolicy *v1.PullPolicy `json:"pullPolicy,omitempty"`
}

func (*AppBundleImage) DeepCopy

func (in *AppBundleImage) DeepCopy() *AppBundleImage

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

func (*AppBundleImage) DeepCopyInto

func (in *AppBundleImage) DeepCopyInto(out *AppBundleImage)

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

type AppBundleList

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

AppBundleList contains a list of AppBundle

func (*AppBundleList) DeepCopy

func (in *AppBundleList) DeepCopy() *AppBundleList

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

func (*AppBundleList) DeepCopyInto

func (in *AppBundleList) DeepCopyInto(out *AppBundleList)

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

func (*AppBundleList) DeepCopyObject

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

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

type AppBundleRoute

type AppBundleRoute struct {
	Port       *int                   `json:"port,omitempty"`
	TargetPort *int                   `json:"targetPort,omitempty"`
	Protocol   *v1.Protocol           `json:"protocol,omitempty"`
	Ingress    *AppBundleRouteIngress `json:"ingress,omitempty"`
}

func (*AppBundleRoute) DeepCopy

func (in *AppBundleRoute) DeepCopy() *AppBundleRoute

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

func (*AppBundleRoute) DeepCopyInto

func (in *AppBundleRoute) DeepCopyInto(out *AppBundleRoute)

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

type AppBundleRouteIngress

type AppBundleRouteIngress struct {
	Domain *string `json:"domain,omitempty"`
	Auth   *bool   `json:"auth,omitempty"`
}

func (*AppBundleRouteIngress) DeepCopy

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

func (*AppBundleRouteIngress) DeepCopyInto

func (in *AppBundleRouteIngress) DeepCopyInto(out *AppBundleRouteIngress)

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

type AppBundleSourcedEnv

type AppBundleSourcedEnv struct {
	ExternalSecret string `json:"externalSecret,omitempty"`
	Secret         string `json:"secret,omitempty"`
	ConfigMap      string `json:"configMap,omitempty"`
	Key            string `json:"key,omitempty"`
}

func (*AppBundleSourcedEnv) DeepCopy

func (in *AppBundleSourcedEnv) DeepCopy() *AppBundleSourcedEnv

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

func (*AppBundleSourcedEnv) DeepCopyInto

func (in *AppBundleSourcedEnv) DeepCopyInto(out *AppBundleSourcedEnv)

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

type AppBundleSpec

type AppBundleSpec struct {
	Base           *string                        `json:"base,omitempty"`
	Image          *AppBundleImage                `json:"image,omitempty"`
	NodeSelector   *map[string]string             `json:"nodeSelector,omitempty"`
	UseNvidia      *bool                          `json:"useNvidia,omitempty"`
	Replicas       *int32                         `json:"replicas,omitempty"`
	Resources      *v1.ResourceRequirements       `json:"resources,omitempty"`
	Envs           map[string]string              `json:"envs,omitempty"`
	SecretStoreRef *string                        `json:"secretStoreRef,omitempty"`
	SourcedEnvs    map[string]AppBundleSourcedEnv `json:"sourcedEnvs,omitempty"`
	ServiceType    *v1.ServiceType                `json:"serviceType,omitempty"`
	Routes         map[string]AppBundleRoute      `json:"routes,omitempty"`
	Homepage       *AppBundleHomePage             `json:"homepage,omitempty"`
	Volumes        map[string]AppBundleVolume     `json:"volumes,omitempty"`
	Backup         *AppBundleVolumeLonghornBackup `json:"backup,omitempty"`
	Selector       *metav1.LabelSelector          `json:"selector,omitempty"`
	LivenessProbe  *v1.Probe                      `json:"livenessProbe,omitempty"`
	ReadinessProbe *v1.Probe                      `json:"readinessProbe,omitempty"`
	StartupProbe   *v1.Probe                      `json:"startupProbe,omitempty"`
	TailscaleName  *string                        `json:"tailscaleName,omitempty"`
	Command        []*string                      `json:"command,omitempty"`
	Args           []*string                      `json:"args,omitempty"`
	Configs        map[string]AppBundleConfig     `json:"configs,omitempty"`
}

AppBundleSpec defines the desired state of AppBundle, its the core of the AppBundle (minus metadata etc.)

func (*AppBundleSpec) DeepCopy

func (in *AppBundleSpec) DeepCopy() *AppBundleSpec

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

func (*AppBundleSpec) DeepCopyInto

func (in *AppBundleSpec) DeepCopyInto(out *AppBundleSpec)

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

type AppBundleStatus

type AppBundleStatus struct {
	LastReconciliation *string `json:"lastReconciliation,omitempty"`
}

AppBundleStatus defines the observed state of AppBundle

func (*AppBundleStatus) DeepCopy

func (in *AppBundleStatus) DeepCopy() *AppBundleStatus

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

func (*AppBundleStatus) DeepCopyInto

func (in *AppBundleStatus) DeepCopyInto(out *AppBundleStatus)

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

type AppBundleVolume

type AppBundleVolume struct {
	HostPath      *string `json:"hostPath,omitempty"`
	EmptyDir      *bool   `json:"emptyDir,omitempty"`
	Path          *string `json:"path,omitempty"`
	Size          *string `json:"size,omitempty"`
	StorageClass  *string `json:"storageClass,omitempty"`
	ExistingClaim *string `json:"existingClaim,omitempty"`
	Backup        *bool   `json:"backup,omitempty"`
}

func (*AppBundleVolume) DeepCopy

func (in *AppBundleVolume) DeepCopy() *AppBundleVolume

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

func (*AppBundleVolume) DeepCopyInto

func (in *AppBundleVolume) DeepCopyInto(out *AppBundleVolume)

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

type AppBundleVolumeLonghornBackup

type AppBundleVolumeLonghornBackup struct {
	Frequency *string `json:"frequency,omitempty"`
	Retain    *int    `json:"retain,omitempty"`
}

func (*AppBundleVolumeLonghornBackup) DeepCopy

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

func (*AppBundleVolumeLonghornBackup) DeepCopyInto

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