v1alpha1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the app v1alpha1 API group. +kubebuilder:object:generate=true +groupName=controller.azure.github.com

Index

Constants

View Source
const (
	AppDeploymentOwnerKey = ".appDeployment.metadata.controller"

	AppDeploymentFinalizerName = "finalizer.appdeployment.devinfra.goms.io"

	// phase types
	AppDeploymentPhaseEmpty     = ""
	AppDeploymentPhasePending   = "Pending"
	AppDeploymentPhaseDeploying = "Deploying"
	AppDeploymentPhaseReady     = "Ready"
	AppDeploymentPhaseDeleting  = "Deleting"
	AppDeploymentPhaseDeleted   = "Deleted"
)
View Source
const (
	OperationOwnerKey = ".operation.metadata.controller"

	OperationFinalizerName         = "finalizer.operation.controller.azure.com"
	OperationAcquiredAnnotationKey = "operation.controller.azure.com/acquired"

	OperationPhaseEmpty       = ""
	OperationPhaseReconciling = "Reconciling"
	OperationPhaseReconciled  = "Reconciled"
	OperationPhaseDeleting    = "Deleting"
	OperationPhaseDeleted     = "Deleted"
)
View Source
const (
	RequirementOwnerKey = ".requirement.metadata.controller"

	RequirementFinalizerName = "finalizer.requirement.devinfra.goms.io"

	RequirementConditionRequirementInitialized  = "RequirementInitialized"
	RequirementConditionCacheResourceFound      = "CacheCRFound"
	RequirementConditionCachedOperationAcquired = "CachedOpAcquired"
	RequirementConditionOperationReady          = "OperationReady"

	RequirementConditionReasonNoOperationAvailable = "NoOperationAvailable"
	RequirementConditionReasonCacheCRNotFound      = "CacheCRNotFound"
	RequirementConditionReasonCacheCRFound         = "CacheCRFound"
	RequirementConditionReasonCacheHit             = "CacheHit"
	RequirementConditionReasonCacheMiss            = "CacheMiss"

	RequirementPhaseEmpty         = ""
	RequirementPhaseCacheChecking = "CacheChecking"
	RequirementPhaseOperating     = "Operating"
	RequirementPhaseReady         = "Ready"
	RequirementPhaseDeleted       = "Deleted"
	RequirementPhaseDeleting      = "Deleting"
)
View Source
const (
	CacheOwnerKey = ".metadata.controller.cache"
)

Variables

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

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

	Spec   AppDeploymentSpec   `json:"spec,omitempty"`
	Status AppDeploymentStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Owner",type="string",JSONPath=`.metadata.ownerReferences[0].name` AppDeployment is the Schema for the appdeployments API.

func (*AppDeployment) DeepCopy

func (in *AppDeployment) DeepCopy() *AppDeployment

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

func (*AppDeployment) DeepCopyInto

func (in *AppDeployment) DeepCopyInto(out *AppDeployment)

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

func (*AppDeployment) DeepCopyObject

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

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

type AppDeploymentList

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

AppDeploymentList contains a list of AppDeployment.

func (*AppDeploymentList) DeepCopy

func (in *AppDeploymentList) DeepCopy() *AppDeploymentList

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

func (*AppDeploymentList) DeepCopyInto

func (in *AppDeploymentList) DeepCopyInto(out *AppDeploymentList)

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

func (*AppDeploymentList) DeepCopyObject

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

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

type AppDeploymentSpec

type AppDeploymentSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +kubebuilder:validation:Required
	Provision batchv1.JobSpec `json:"provision"`
	Teardown  batchv1.JobSpec `json:"teardown"`
	OpId      string          `json:"opId"`
	// +kubebuilder:validation:Optional
	Dependencies []string `json:"dependencies,omitempty"`
}

AppDeploymentSpec defines the desired state of AppDeployment.

func (*AppDeploymentSpec) DeepCopy

func (in *AppDeploymentSpec) DeepCopy() *AppDeploymentSpec

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

func (*AppDeploymentSpec) DeepCopyInto

func (in *AppDeploymentSpec) DeepCopyInto(out *AppDeploymentSpec)

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

type AppDeploymentStatus

type AppDeploymentStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Phase      string             `json:"phase"`
	Conditions []metav1.Condition `json:"conditions"`
}

AppDeploymentStatus defines the observed state of AppDeployment.

func (*AppDeploymentStatus) DeepCopy

func (in *AppDeploymentStatus) DeepCopy() *AppDeploymentStatus

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

func (*AppDeploymentStatus) DeepCopyInto

func (in *AppDeploymentStatus) DeepCopyInto(out *AppDeploymentStatus)

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

type ApplicationSpec

type ApplicationSpec struct {
	Name      string          `json:"name"`
	Provision batchv1.JobSpec `json:"provision"`
	Teardown  batchv1.JobSpec `json:"teardown"`
	// +kubebuilder:validation:Optional
	Dependencies []string `json:"dependencies,omitempty"`
}

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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

type Cache

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

	Spec   CacheSpec   `json:"spec,omitempty"`
	Status CacheStatus `json:"status,omitempty"`
}

Cache is the Schema for the caches API.

func (*Cache) DeepCopy

func (in *Cache) DeepCopy() *Cache

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

func (*Cache) DeepCopyInto

func (in *Cache) DeepCopyInto(out *Cache)

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

func (*Cache) DeepCopyObject

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

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

type CacheList

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

CacheList contains a list of Cache.

func (*CacheList) DeepCopy

func (in *CacheList) DeepCopy() *CacheList

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

func (*CacheList) DeepCopyInto

func (in *CacheList) DeepCopyInto(out *CacheList)

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

func (*CacheList) DeepCopyObject

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

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

type CacheSpec

type CacheSpec struct {
	OperationTemplate OperationSpec `json:"operationTemplate"`

	// Strategy is the cache strategy
	// +kubebuilder:validation:optional
	Strategy string `json:"strategy,omitempty"`

	// ExpireTime is the RFC3339-format time when the cache will be expired. If not set, the cache is never expired.
	// +kubebuilder:validation:optional
	// +kubebuilder:validation:Pattern:=`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$`
	ExpireTime string `json:"expireTime,omitempty"`
}

CacheSpec defines the desired state of Cache.

func (*CacheSpec) DeepCopy

func (in *CacheSpec) DeepCopy() *CacheSpec

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

func (*CacheSpec) DeepCopyInto

func (in *CacheSpec) DeepCopyInto(out *CacheSpec)

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

type CacheStatus

type CacheStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	CacheKey        string   `json:"cacheKey"`
	KeepAliveCount  int32    `json:"keepAlive"`
	AvailableCaches []string `json:"availableCaches,omitempty"`
}

CacheStatus defines the observed state of Cache.

func (*CacheStatus) DeepCopy

func (in *CacheStatus) DeepCopy() *CacheStatus

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

func (*CacheStatus) DeepCopyInto

func (in *CacheStatus) DeepCopyInto(out *CacheStatus)

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

type Operation

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

	Spec   OperationSpec   `json:"spec,omitempty"`
	Status OperationStatus `json:"status,omitempty"`
}

Operation is the Schema for the operations API.

func (*Operation) DeepCopy

func (in *Operation) DeepCopy() *Operation

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

func (*Operation) DeepCopyInto

func (in *Operation) DeepCopyInto(out *Operation)

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

func (*Operation) DeepCopyObject

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

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

type OperationList

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

OperationList contains a list of Operation.

func (*OperationList) DeepCopy

func (in *OperationList) DeepCopy() *OperationList

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

func (*OperationList) DeepCopyInto

func (in *OperationList) DeepCopyInto(out *OperationList)

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

func (*OperationList) DeepCopyObject

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

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

type OperationSpec

type OperationSpec struct {

	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	Applications []ApplicationSpec `json:"applications"`
	// +kubebuilder:validation:optional
	// +kubebuilder:validation:Pattern:=`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$`
	ExpireAt string `json:"expireAt,omitempty"`
}

OperationSpec defines the desired state of Operation.

func (*OperationSpec) DeepCopy

func (in *OperationSpec) DeepCopy() *OperationSpec

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

func (*OperationSpec) DeepCopyInto

func (in *OperationSpec) DeepCopyInto(out *OperationSpec)

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

type OperationStatus

type OperationStatus struct {

	// Conditions is a list of conditions to describe the status of the deploy
	Conditions  []metav1.Condition `json:"conditions"`
	Phase       string             `json:"phase"`
	CacheKey    string             `json:"cacheKey"`
	OperationID string             `json:"operationId"`
}

OperationStatus defines the observed state of Operation.

func (*OperationStatus) DeepCopy

func (in *OperationStatus) DeepCopy() *OperationStatus

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

func (*OperationStatus) DeepCopyInto

func (in *OperationStatus) DeepCopyInto(out *OperationStatus)

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

type Requirement

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

	Spec   RequirementSpec   `json:"spec,omitempty"`
	Status RequirementStatus `json:"status,omitempty"`
}

Requirement is the Schema for the requirements API.

func (*Requirement) DeepCopy

func (in *Requirement) DeepCopy() *Requirement

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

func (*Requirement) DeepCopyInto

func (in *Requirement) DeepCopyInto(out *Requirement)

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

func (*Requirement) DeepCopyObject

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

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

type RequirementList

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

RequirementList contains a list of Requirement.

func (*RequirementList) DeepCopy

func (in *RequirementList) DeepCopy() *RequirementList

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

func (*RequirementList) DeepCopyInto

func (in *RequirementList) DeepCopyInto(out *RequirementList)

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

func (*RequirementList) DeepCopyObject

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

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

type RequirementSpec

type RequirementSpec struct {

	// +kubebuilder:validation:Required
	Template OperationSpec `json:"template"`
	// +kubebuilder:validation:Required
	EnableCache bool `json:"enableCache"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Pattern:=`^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$`
	ExpireAt string `json:"expireAt,omitempty"`
}

RequirementSpec defines the desired state of Requirement.

func (*RequirementSpec) DeepCopy

func (in *RequirementSpec) DeepCopy() *RequirementSpec

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

func (*RequirementSpec) DeepCopyInto

func (in *RequirementSpec) DeepCopyInto(out *RequirementSpec)

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

type RequirementStatus

type RequirementStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	OperationId   string             `json:"operationId"`
	OperationName string             `json:"operationName"`
	CacheKey      string             `json:"originalCacheKey"`
	Phase         string             `json:"phase"`
	Conditions    []metav1.Condition `json:"conditions"`
}

RequirementStatus defines the observed state of Requirement.

func (*RequirementStatus) DeepCopy

func (in *RequirementStatus) DeepCopy() *RequirementStatus

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

func (*RequirementStatus) DeepCopyInto

func (in *RequirementStatus) DeepCopyInto(out *RequirementStatus)

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