v1alpha1

package
v0.0.0-...-9e5282c Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "apps.cloudrobotics.com", Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type App

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

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

func (*App) DeepCopy

func (in *App) DeepCopy() *App

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

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

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

func (*App) DeepCopyObject

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

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

type AppComponent

type AppComponent struct {
	Name   string `json:"name,omitempty"`
	Inline string `json:"inline,omitempty"`
}

func (*AppComponent) DeepCopy

func (in *AppComponent) DeepCopy() *AppComponent

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

func (*AppComponent) DeepCopyInto

func (in *AppComponent) DeepCopyInto(out *AppComponent)

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

type AppComponents

type AppComponents struct {
	Cloud AppComponent `json:"cloud,omitempty"`
	Robot AppComponent `json:"robot,omitempty"`
}

func (*AppComponents) DeepCopy

func (in *AppComponents) DeepCopy() *AppComponents

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

func (*AppComponents) DeepCopyInto

func (in *AppComponents) DeepCopyInto(out *AppComponents)

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

type AppList

type AppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []App `json:"items"`
}

func (*AppList) DeepCopy

func (in *AppList) DeepCopy() *AppList

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

func (*AppList) DeepCopyInto

func (in *AppList) DeepCopyInto(out *AppList)

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

func (*AppList) DeepCopyObject

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

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

type AppRollout

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

	Spec   AppRolloutSpec   `json:"spec,omitempty"`
	Status AppRolloutStatus `json:"status,omitempty"`
}

func (*AppRollout) DeepCopy

func (in *AppRollout) DeepCopy() *AppRollout

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

func (*AppRollout) DeepCopyInto

func (in *AppRollout) DeepCopyInto(out *AppRollout)

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

func (*AppRollout) DeepCopyObject

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

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

type AppRolloutCondition

type AppRolloutCondition struct {
	Type               AppRolloutConditionType `json:"type"`
	Status             corev1.ConditionStatus  `json:"status"`
	LastUpdateTime     metav1.Time             `json:"lastUpdateTime,omitempty"`
	LastTransitionTime metav1.Time             `json:"lastTransitionTime,omitempty"`
	Message            string                  `json:"message,omitempty"`
}

func (*AppRolloutCondition) DeepCopy

func (in *AppRolloutCondition) DeepCopy() *AppRolloutCondition

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

func (*AppRolloutCondition) DeepCopyInto

func (in *AppRolloutCondition) DeepCopyInto(out *AppRolloutCondition)

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

type AppRolloutConditionType

type AppRolloutConditionType string
const (
	AppRolloutConditionSettled AppRolloutConditionType = "Settled"
	AppRolloutConditionReady   AppRolloutConditionType = "Ready"
)

type AppRolloutList

type AppRolloutList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []AppRollout `json:"items"`
}

func (*AppRolloutList) DeepCopy

func (in *AppRolloutList) DeepCopy() *AppRolloutList

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

func (*AppRolloutList) DeepCopyInto

func (in *AppRolloutList) DeepCopyInto(out *AppRolloutList)

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

func (*AppRolloutList) DeepCopyObject

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

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

type AppRolloutSpec

type AppRolloutSpec struct {
	AppName string                `json:"appName,omitempty"`
	Cloud   AppRolloutSpecCloud   `json:"cloud,omitempty"`
	Robots  []AppRolloutSpecRobot `json:"robots,omitempty"`
}

func (*AppRolloutSpec) DeepCopy

func (in *AppRolloutSpec) DeepCopy() *AppRolloutSpec

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

func (*AppRolloutSpec) DeepCopyInto

func (in *AppRolloutSpec) DeepCopyInto(out *AppRolloutSpec)

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

type AppRolloutSpecCloud

type AppRolloutSpecCloud struct {
	Values ConfigValues `json:"values,omitempty"`
}

func (*AppRolloutSpecCloud) DeepCopy

func (in *AppRolloutSpecCloud) DeepCopy() *AppRolloutSpecCloud

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

func (*AppRolloutSpecCloud) DeepCopyInto

func (in *AppRolloutSpecCloud) DeepCopyInto(out *AppRolloutSpecCloud)

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

type AppRolloutSpecRobot

type AppRolloutSpecRobot struct {
	Selector *RobotSelector `json:"selector,omitempty"`

	Values  ConfigValues `json:"values,omitempty"`
	Version string       `json:"version,omitempty"`
}

func (*AppRolloutSpecRobot) DeepCopy

func (in *AppRolloutSpecRobot) DeepCopy() *AppRolloutSpecRobot

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

func (*AppRolloutSpecRobot) DeepCopyInto

func (in *AppRolloutSpecRobot) DeepCopyInto(out *AppRolloutSpecRobot)

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

type AppRolloutStatus

type AppRolloutStatus struct {
	ObservedGeneration int64                 `json:"observedGeneration,omitempty"`
	Conditions         []AppRolloutCondition `json:"conditions,omitempty"`
	Assignments        int64                 `json:"assignments"`
	SettledAssignments int64                 `json:"settledAssignments"`
	ReadyAssignments   int64                 `json:"readyAssignments"`
	FailedAssignments  int64                 `json:"failedAssignments"`
}

func (*AppRolloutStatus) DeepCopy

func (in *AppRolloutStatus) DeepCopy() *AppRolloutStatus

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

func (*AppRolloutStatus) DeepCopyInto

func (in *AppRolloutStatus) DeepCopyInto(out *AppRolloutStatus)

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

type AppSpec

type AppSpec struct {
	Repository string        `json:"repository"`
	Version    string        `json:"version"`
	Components AppComponents `json:"components"`
}

func (*AppSpec) DeepCopy

func (in *AppSpec) DeepCopy() *AppSpec

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

func (*AppSpec) DeepCopyInto

func (in *AppSpec) DeepCopyInto(out *AppSpec)

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

type AssignedChart

type AssignedChart struct {
	Repository string       `json:"repository,omitempty"`
	Name       string       `json:"name,omitempty"`
	Version    string       `json:"version,omitempty"`
	Inline     string       `json:"inline,omitempty"`
	Values     ConfigValues `json:"values,omitempty"`
}

func (*AssignedChart) DeepCopy

func (in *AssignedChart) DeepCopy() *AssignedChart

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

func (*AssignedChart) DeepCopyInto

func (in *AssignedChart) DeepCopyInto(out *AssignedChart)

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

type ChartAssignment

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

	Spec   ChartAssignmentSpec   `json:"spec,omitempty"`
	Status ChartAssignmentStatus `json:"status,omitempty"`
}

func (*ChartAssignment) DeepCopy

func (in *ChartAssignment) DeepCopy() *ChartAssignment

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

func (*ChartAssignment) DeepCopyInto

func (in *ChartAssignment) DeepCopyInto(out *ChartAssignment)

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

func (*ChartAssignment) DeepCopyObject

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

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

type ChartAssignmentCondition

type ChartAssignmentCondition struct {
	Type               ChartAssignmentConditionType `json:"type"`
	Status             corev1.ConditionStatus       `json:"status"`
	LastUpdateTime     metav1.Time                  `json:"lastUpdateTime,omitempty"`
	LastTransitionTime metav1.Time                  `json:"lastTransitionTime,omitempty"`
	Message            string                       `json:"message,omitempty"`
}

func (*ChartAssignmentCondition) DeepCopy

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

func (*ChartAssignmentCondition) DeepCopyInto

func (in *ChartAssignmentCondition) DeepCopyInto(out *ChartAssignmentCondition)

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

type ChartAssignmentConditionType

type ChartAssignmentConditionType string
const (
	ChartAssignmentConditionSettled ChartAssignmentConditionType = "Settled"
	ChartAssignmentConditionReady   ChartAssignmentConditionType = "Ready"
)

type ChartAssignmentList

type ChartAssignmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ChartAssignment `json:"items"`
}

func (*ChartAssignmentList) DeepCopy

func (in *ChartAssignmentList) DeepCopy() *ChartAssignmentList

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

func (*ChartAssignmentList) DeepCopyInto

func (in *ChartAssignmentList) DeepCopyInto(out *ChartAssignmentList)

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

func (*ChartAssignmentList) DeepCopyObject

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

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

type ChartAssignmentPhase

type ChartAssignmentPhase string
const (
	// Accepted is set once the controller has observed the CA and started
	// taking action.
	ChartAssignmentPhaseAccepted ChartAssignmentPhase = "Accepted"
	// LoadingChart marks the begin of parsing the chart and its metadata.
	ChartAssignmentPhaseLoadingChart ChartAssignmentPhase = "LoadingChart"
	// TODO(ensonic): Installing is only used with 'helm'.
	ChartAssignmentPhaseInstalling ChartAssignmentPhase = "Installing"
	// TODO(ensonic): Updating is only used with 'synk'.
	ChartAssignmentPhaseUpdating ChartAssignmentPhase = "Updating"
	// Deleting is set when starting deletion to avoid flipping failure status
	// during turndown.
	ChartAssignmentPhaseDeleting ChartAssignmentPhase = "Deleting"
	// Settled status signals that all resources from the chart have been applied.
	ChartAssignmentPhaseSettled ChartAssignmentPhase = "Settled"
	// Deleted is set when the deletion phase finished.
	ChartAssignmentPhaseDeleted ChartAssignmentPhase = "Deleted"
	// Failed indicates that an error occured. The 'err' fields will give extra
	// information and 'retry' will indicate if the controller is trying to
	// recover from the error.
	ChartAssignmentPhaseFailed ChartAssignmentPhase = "Failed"
	// Ready status is set when all pods are running.
	// TODO(ensonic): check other resource readyness too?
	ChartAssignmentPhaseReady ChartAssignmentPhase = "Ready"
)

type ChartAssignmentSpec

type ChartAssignmentSpec struct {
	ClusterName   string        `json:"clusterName"`
	NamespaceName string        `json:"namespaceName"`
	Chart         AssignedChart `json:"chart"`
}

func (*ChartAssignmentSpec) DeepCopy

func (in *ChartAssignmentSpec) DeepCopy() *ChartAssignmentSpec

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

func (*ChartAssignmentSpec) DeepCopyInto

func (in *ChartAssignmentSpec) DeepCopyInto(out *ChartAssignmentSpec)

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

type ChartAssignmentStatus

type ChartAssignmentStatus struct {
	ObservedGeneration int64                      `json:"observedGeneration,omitempty"`
	Phase              ChartAssignmentPhase       `json:"phase,omitempty"`
	Conditions         []ChartAssignmentCondition `json:"conditions,omitempty"`
}

func (*ChartAssignmentStatus) DeepCopy

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

func (*ChartAssignmentStatus) DeepCopyInto

func (in *ChartAssignmentStatus) DeepCopyInto(out *ChartAssignmentStatus)

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

type ConfigValues

type ConfigValues map[string]interface{}

func (ConfigValues) DeepCopy

func (in ConfigValues) DeepCopy() ConfigValues

DeepCopy is an explicit override since the deepcopy generator cannot deal with empty interfaces.

func (ConfigValues) DeepCopyInto

func (in ConfigValues) DeepCopyInto(out *ConfigValues)

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

type ResourceAction

type ResourceAction string
const (
	ResourceActionNone    ResourceAction = "None"
	ResourceActionCreate  ResourceAction = "Create"
	ResourceActionUpdate  ResourceAction = "Update"
	ResourceActionReplace ResourceAction = "Replace"
)

type ResourceRef

type ResourceRef struct {
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name"`
}

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

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

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

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

type ResourceSet

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

	Spec   ResourceSetSpec   `json:"spec"`
	Status ResourceSetStatus `json:"status"`
}

func (*ResourceSet) DeepCopy

func (in *ResourceSet) DeepCopy() *ResourceSet

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

func (*ResourceSet) DeepCopyInto

func (in *ResourceSet) DeepCopyInto(out *ResourceSet)

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

func (*ResourceSet) DeepCopyObject

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

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

type ResourceSetList

type ResourceSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ResourceSet `json:"items"`
}

func (*ResourceSetList) DeepCopy

func (in *ResourceSetList) DeepCopy() *ResourceSetList

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

func (*ResourceSetList) DeepCopyInto

func (in *ResourceSetList) DeepCopyInto(out *ResourceSetList)

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

func (*ResourceSetList) DeepCopyObject

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

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

type ResourceSetPhase

type ResourceSetPhase string
const (
	ResourceSetPhasePending ResourceSetPhase = "Pending"
	ResourceSetPhaseFailed  ResourceSetPhase = "Failed"
	ResourceSetPhaseSettled ResourceSetPhase = "Settled"
)

type ResourceSetSpec

type ResourceSetSpec struct {
	Resources []ResourceSetSpecGroup `json:"resources"`
}

func (*ResourceSetSpec) DeepCopy

func (in *ResourceSetSpec) DeepCopy() *ResourceSetSpec

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

func (*ResourceSetSpec) DeepCopyInto

func (in *ResourceSetSpec) DeepCopyInto(out *ResourceSetSpec)

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

type ResourceSetSpecGroup

type ResourceSetSpecGroup struct {
	Group   string        `json:"group,omitempty"` // Is empty for core APIs.
	Version string        `json:"version"`
	Kind    string        `json:"kind"`
	Items   []ResourceRef `json:"items"`
}

func (*ResourceSetSpecGroup) DeepCopy

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

func (*ResourceSetSpecGroup) DeepCopyInto

func (in *ResourceSetSpecGroup) DeepCopyInto(out *ResourceSetSpecGroup)

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

type ResourceSetStatus

type ResourceSetStatus struct {
	Phase      ResourceSetPhase         `json:"phase,omitempty"`
	StartedAt  metav1.Time              `json:"startedAt,omitempty"`
	FinishedAt metav1.Time              `json:"finishedAt,omitempty"`
	Applied    []ResourceSetStatusGroup `json:"applied,omitempty"`
	Failed     []ResourceSetStatusGroup `json:"failed,omitempty"`
}

func (*ResourceSetStatus) DeepCopy

func (in *ResourceSetStatus) DeepCopy() *ResourceSetStatus

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

func (*ResourceSetStatus) DeepCopyInto

func (in *ResourceSetStatus) DeepCopyInto(out *ResourceSetStatus)

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

type ResourceSetStatusGroup

type ResourceSetStatusGroup struct {
	Group   string           `json:"group,omitempty"` // Is empty for core APIs.
	Version string           `json:"version"`
	Kind    string           `json:"kind"`
	Items   []ResourceStatus `json:"items"`
}

func (*ResourceSetStatusGroup) DeepCopy

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

func (*ResourceSetStatusGroup) DeepCopyInto

func (in *ResourceSetStatusGroup) DeepCopyInto(out *ResourceSetStatusGroup)

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

type ResourceStatus

type ResourceStatus struct {
	Namespace  string         `json:"namespace,omitempty"`
	Name       string         `json:"name"`
	Action     ResourceAction `json:"action"`
	UID        string         `json:"uid,omitempty"`
	Generation int64          `json:"generation,omitempty"`
	Error      string         `json:"error,omitempty"`
}

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

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

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

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

type RobotSelector

type RobotSelector struct {
	*metav1.LabelSelector

	Any *bool `json:"any,omitempty"`
}

func (*RobotSelector) DeepCopy

func (in *RobotSelector) DeepCopy() *RobotSelector

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

func (*RobotSelector) DeepCopyInto

func (in *RobotSelector) DeepCopyInto(out *RobotSelector)

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