Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the tools v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=tools.hybridapp.io
Package v1alpha1 contains API Schema definitions for the tools v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=tools.hybridapp.io
Index ¶
Constants ¶
const ( // DefaultDeployerType is the default type of a deployer, used when no explicit deployer type is provided DefaultDeployerType = "kubernetes" // HybridDiscoveryCreateAssembler indicates whether the application assembler should be created during application reconciliation HybridDiscoveryCreateAssembler = "true" //AssemblerCreationCompleted indicates the process of creating the assembler CR has finished successfully AssemblerCreationCompleted = "completed" // GeneratedDeployableNameLength is the max length of a generated name for a deployable. GeneratedDeployableNameLength = 63 )
Variables ¶
var ( // AnnotationCreateAssembler defines the annotation used to indicate whether the discovery process should also create an application assembler CR. AnnotationCreateAssembler = SchemeGroupVersion.Group + "/hybrid-discovery-create-assembler" // LabelApplicationPrefix defines the label prefix used as component selector LabelApplicationPrefix = SchemeGroupVersion.Group + "/application-" //HybridDeployableGK represents the GroupVersionKind structure for a hybrid deployable HybridDeployableGK = metav1.GroupKind{ Group: hdplv1alpha1.SchemeGroupVersion.Group, Kind: "Deployable", } //DeployableGVK represents the GroupVersionKind structure for a deployable DeployableGVK = schema.GroupVersionKind{ Group: dplv1.SchemeGroupVersion.Group, Version: dplv1.SchemeGroupVersion.Version, Kind: "Deployable", } )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "tools.hybridapp.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type ApplicationAssembler ¶
type ApplicationAssembler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationAssemblerSpec `json:"spec,omitempty"` Status ApplicationAssemblerStatus `json:"status,omitempty"` }
ApplicationAssembler is the Schema for the applicationassemblers API +kubebuilder:subresource:status +kubebuilder:resource:path=applicationassemblers,scope=Namespaced +kubebuilder:resource:path=applicationassemblers,shortName=appasm
func (*ApplicationAssembler) DeepCopy ¶
func (in *ApplicationAssembler) DeepCopy() *ApplicationAssembler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationAssembler.
func (*ApplicationAssembler) DeepCopyInto ¶
func (in *ApplicationAssembler) DeepCopyInto(out *ApplicationAssembler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationAssembler) DeepCopyObject ¶
func (in *ApplicationAssembler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationAssemblerList ¶
type ApplicationAssemblerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationAssembler `json:"items"` }
ApplicationAssemblerList contains a list of ApplicationAssembler
func (*ApplicationAssemblerList) DeepCopy ¶
func (in *ApplicationAssemblerList) DeepCopy() *ApplicationAssemblerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationAssemblerList.
func (*ApplicationAssemblerList) DeepCopyInto ¶
func (in *ApplicationAssemblerList) DeepCopyInto(out *ApplicationAssemblerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationAssemblerList) DeepCopyObject ¶
func (in *ApplicationAssemblerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationAssemblerPhase ¶
type ApplicationAssemblerPhase string
ApplicationAssemblerPhase defines the application assembler phase
const ( // ApplicationAssemblerPhaseUnknown means not processed by controller yet ApplicationAssemblerPhaseUnknown ApplicationAssemblerPhase = "" // ApplicationAssemblerPhaseCompleted means successfully generated hybrid application resources ApplicationAssemblerPhaseCompleted ApplicationAssemblerPhase = "Completed" // ApplicationAssemblerPhaseFailed means failed to generate hybrid application resources ApplicationAssemblerPhaseFailed ApplicationAssemblerPhase = "Failed" )
type ApplicationAssemblerSpec ¶
type ApplicationAssemblerSpec struct { // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html HubComponents []*corev1.ObjectReference `json:"hubComponents,omitempty"` ManagedClustersComponents []*ClusterComponent `json:"managedClustersComponents,omitempty"` }
ApplicationAssemblerSpec defines the desired state of ApplicationAssembler
func (*ApplicationAssemblerSpec) DeepCopy ¶
func (in *ApplicationAssemblerSpec) DeepCopy() *ApplicationAssemblerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationAssemblerSpec.
func (*ApplicationAssemblerSpec) DeepCopyInto ¶
func (in *ApplicationAssemblerSpec) DeepCopyInto(out *ApplicationAssemblerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationAssemblerStatus ¶
type ApplicationAssemblerStatus struct { Phase ApplicationAssemblerPhase `json:"phase"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"` HybridDeployables []*corev1.ObjectReference `json:"hybridDeployables,omitempty"` }
ApplicationAssemblerStatus defines the observed state of ApplicationAssembler
func (*ApplicationAssemblerStatus) DeepCopy ¶
func (in *ApplicationAssemblerStatus) DeepCopy() *ApplicationAssemblerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationAssemblerStatus.
func (*ApplicationAssemblerStatus) DeepCopyInto ¶
func (in *ApplicationAssemblerStatus) DeepCopyInto(out *ApplicationAssemblerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterComponent ¶
type ClusterComponent struct { // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html Cluster string `json:"cluster"` Components []*corev1.ObjectReference `json:"components,omitempty"` }
ClusterComponent defines a list of components for a managed cluster identified by its namespace
func (*ClusterComponent) DeepCopy ¶
func (in *ClusterComponent) DeepCopy() *ClusterComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterComponent.
func (*ClusterComponent) DeepCopyInto ¶
func (in *ClusterComponent) DeepCopyInto(out *ClusterComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.