Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=core.hybridapp.io
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=core.hybridapp.io
Index ¶
- Constants
- Variables
- type Deployable
- type DeployableList
- type DeployableSpec
- type DeployableStatus
- type Deployer
- type DeployerList
- type DeployerSet
- type DeployerSetList
- type DeployerSetSpec
- type DeployerSetStatus
- type DeployerSpec
- type DeployerSpecDescriptor
- type DeployerStatus
- type DeployerStatusDescriptor
- type HybridPlacement
- type HybridTemplate
- type PerDeployerStatus
Constants ¶
const ( // HybridDiscoveryEnabled indicates whether the discovery is enabled for a resource managed by this deployable HybridDiscoveryEnabled = "enabled" // HybridDiscoveryCompleted indicates whether the discovery has been completed for resource controlled by this deployable HybridDiscoveryCompleted = "completed" )
const (
//IsDefaultDeployer defines annotation used to indicate if a deployer is considered default for a cluster
IsDefaultDeployer = "app.cp4mcm.ibm.com/is-default-deployer"
)
Variables ¶
var ( HostingHybridDeployable = SchemeGroupVersion.Group + "/hosting-hybriddeployable" ControlledBy = SchemeGroupVersion.Group + "/controlled-by" OutputOf = SchemeGroupVersion.Group + "/output-of" DependencyFrom = SchemeGroupVersion.Group + "/dependency-from" HybridDeployableController = "hybriddeployable" DefaultDeployerType = "kubernetes" )
var ( // AnnotationHybridDiscovery indicates whether a resource has been created as a result of a discovery process AnnotationHybridDiscovery = SchemeGroupVersion.Group + "/hybrid-discovery" //AnnotationClusterScope indicates whether discovery should look for resources cluster wide rather then in a specific namespace AnnotationClusterScope = SchemeGroupVersion.Group + "/hybrid-discovery-clusterscoped" SourceObject = SchemeGroupVersion.Group + "/source-object" DeployerType = SchemeGroupVersion.Group + "/deployer-type" HostingDeployer = SchemeGroupVersion.Group + "/hosting-deployer" DeployerInCluster = SchemeGroupVersion.Group + "/deployer-in-cluster" )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "core.hybridapp.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var (
DefaultKubernetesPlacementTarget = &metav1.GroupVersionResource{
Group: "clusterregistry.k8s.io",
Version: "v1alpha1",
Resource: "clusters",
}
)
Functions ¶
This section is empty.
Types ¶
type Deployable ¶
type Deployable struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DeployableSpec `json:"spec,omitempty"` Status DeployableStatus `json:"status,omitempty"` }
Deployable is the Schema for the deployables API +kubebuilder:subresource:status +kubebuilder:resource:path=deployables,scope=Namespaced +kubebuilder:resource:path=deployables,shortName=hdpl
func (*Deployable) DeepCopy ¶
func (in *Deployable) DeepCopy() *Deployable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployable.
func (*Deployable) DeepCopyInto ¶
func (in *Deployable) DeepCopyInto(out *Deployable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Deployable) DeepCopyObject ¶
func (in *Deployable) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployableList ¶
type DeployableList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Deployable `json:"items"` }
DeployableList contains a list of Deployable
func (*DeployableList) DeepCopy ¶
func (in *DeployableList) DeepCopy() *DeployableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployableList.
func (*DeployableList) DeepCopyInto ¶
func (in *DeployableList) DeepCopyInto(out *DeployableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployableList) DeepCopyObject ¶
func (in *DeployableList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployableSpec ¶
type DeployableSpec struct { HybridTemplates []HybridTemplate `json:"hybridtemplates,omitempty"` Placement *HybridPlacement `json:"placement,omitempty"` Dependencies []corev1.ObjectReference `json:"dependencies,omitempty"` }
HybridDeployableSpec defines the desired state of HybridDeployable
func (*DeployableSpec) DeepCopy ¶
func (in *DeployableSpec) DeepCopy() *DeployableSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployableSpec.
func (*DeployableSpec) DeepCopyInto ¶
func (in *DeployableSpec) DeepCopyInto(out *DeployableSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployableStatus ¶
type DeployableStatus struct {
PerDeployerStatus map[string]PerDeployerStatus `json:"perDeployerStatus,omitempty"`
}
HybridDeployableStatus defines the observed state of HybridDeployable
func (*DeployableStatus) DeepCopy ¶
func (in *DeployableStatus) DeepCopy() *DeployableStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployableStatus.
func (*DeployableStatus) DeepCopyInto ¶
func (in *DeployableStatus) DeepCopyInto(out *DeployableStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Deployer ¶
type Deployer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DeployerSpec `json:"spec,omitempty"` Status DeployerStatus `json:"status,omitempty"` }
Deployer is the Schema for the deployers API +kubebuilder:subresource:status +kubebuilder:resource:path=deployers,scope=Namespaced
func (*Deployer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployer.
func (*Deployer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Deployer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployerList ¶
type DeployerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Deployer `json:"items"` }
DeployerList contains a list of Deployer
func (*DeployerList) DeepCopy ¶
func (in *DeployerList) DeepCopy() *DeployerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerList.
func (*DeployerList) DeepCopyInto ¶
func (in *DeployerList) DeepCopyInto(out *DeployerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerList) DeepCopyObject ¶
func (in *DeployerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployerSet ¶
type DeployerSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DeployerSetSpec `json:"spec,omitempty"` Status DeployerSetStatus `json:"status,omitempty"` }
DeployerSet is the Schema for the deployersets API +kubebuilder:subresource:status +kubebuilder:resource:path=deployersets,scope=Namespaced
func (*DeployerSet) DeepCopy ¶
func (in *DeployerSet) DeepCopy() *DeployerSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSet.
func (*DeployerSet) DeepCopyInto ¶
func (in *DeployerSet) DeepCopyInto(out *DeployerSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerSet) DeepCopyObject ¶
func (in *DeployerSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployerSetList ¶
type DeployerSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DeployerSet `json:"items"` }
DeployerSetList contains a list of DeployerSet
func (*DeployerSetList) DeepCopy ¶
func (in *DeployerSetList) DeepCopy() *DeployerSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSetList.
func (*DeployerSetList) DeepCopyInto ¶
func (in *DeployerSetList) DeepCopyInto(out *DeployerSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeployerSetList) DeepCopyObject ¶
func (in *DeployerSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeployerSetSpec ¶
type DeployerSetSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // 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 DefaultDeployer string `json:"defaultDeployer,omitempty"` Deployers []DeployerSpecDescriptor `json:"deployers,omitempty"` }
DeployerSetSpec defines the desired state of DeployerSet
func (*DeployerSetSpec) DeepCopy ¶
func (in *DeployerSetSpec) DeepCopy() *DeployerSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSetSpec.
func (*DeployerSetSpec) DeepCopyInto ¶
func (in *DeployerSetSpec) DeepCopyInto(out *DeployerSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployerSetStatus ¶
type DeployerSetStatus struct {
Deployers []DeployerStatusDescriptor `json:"deployers,omitempty"`
}
DeployerSetStatus defines the observed state of DeployerSet
func (*DeployerSetStatus) DeepCopy ¶
func (in *DeployerSetStatus) DeepCopy() *DeployerSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSetStatus.
func (*DeployerSetStatus) DeepCopyInto ¶
func (in *DeployerSetStatus) DeepCopyInto(out *DeployerSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployerSpec ¶
type DeployerSpec 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 Type string `json:"type"` PlacementTarget *metav1.GroupVersionResource `json:"placementTarget,omitempty"` OperatorRef *corev1.ObjectReference `json:"operatorRef,omitempty"` Capabilities []rbacv1.PolicyRule `json:"capabilities,omitempty"` Scope apiextensions.ResourceScope `json:"scope,omitempty"` }
DeployerSpec defines the desired state of Deployer
func (*DeployerSpec) DeepCopy ¶
func (in *DeployerSpec) DeepCopy() *DeployerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSpec.
func (*DeployerSpec) DeepCopyInto ¶
func (in *DeployerSpec) DeepCopyInto(out *DeployerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployerSpecDescriptor ¶
type DeployerSpecDescriptor struct { // NamespacedName of deployer for key Key string `json:"key"` Spec DeployerSpec `json:"spec"` }
DeployerSpecDescriptor defines the deployer structure
func (*DeployerSpecDescriptor) DeepCopy ¶
func (in *DeployerSpecDescriptor) DeepCopy() *DeployerSpecDescriptor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerSpecDescriptor.
func (*DeployerSpecDescriptor) DeepCopyInto ¶
func (in *DeployerSpecDescriptor) DeepCopyInto(out *DeployerSpecDescriptor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployerStatus ¶
type DeployerStatus struct { }
DeployerStatus defines the observed state of Deployer
func (*DeployerStatus) DeepCopy ¶
func (in *DeployerStatus) DeepCopy() *DeployerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerStatus.
func (*DeployerStatus) DeepCopyInto ¶
func (in *DeployerStatus) DeepCopyInto(out *DeployerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployerStatusDescriptor ¶
type DeployerStatusDescriptor struct { // NamespacedName of deployer for key Key string `json:"key"` Status DeployerStatus `json:"status"` }
DeployerStatusDescriptor defines the deployer status
func (*DeployerStatusDescriptor) DeepCopy ¶
func (in *DeployerStatusDescriptor) DeepCopy() *DeployerStatusDescriptor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployerStatusDescriptor.
func (*DeployerStatusDescriptor) DeepCopyInto ¶
func (in *DeployerStatusDescriptor) DeepCopyInto(out *DeployerStatusDescriptor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HybridPlacement ¶
type HybridPlacement struct { Deployers []corev1.ObjectReference `json:"deployers,omitempty"` DeployerLabels *metav1.LabelSelector `json:"deployerLabels,omitempty"` PlacementRef *corev1.ObjectReference `json:"placementRef,omitempty"` }
func (*HybridPlacement) DeepCopy ¶
func (in *HybridPlacement) DeepCopy() *HybridPlacement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HybridPlacement.
func (*HybridPlacement) DeepCopyInto ¶
func (in *HybridPlacement) DeepCopyInto(out *HybridPlacement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HybridTemplate ¶
type HybridTemplate struct { DeployerType string `json:"deployerType,omitempty"` Template *runtime.RawExtension `json:"template"` }
func (*HybridTemplate) DeepCopy ¶
func (in *HybridTemplate) DeepCopy() *HybridTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HybridTemplate.
func (*HybridTemplate) DeepCopyInto ¶
func (in *HybridTemplate) DeepCopyInto(out *HybridTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PerDeployerStatus ¶
type PerDeployerStatus struct { dplv1alpha1.ResourceUnitStatus `json:",inline"` Outputs []corev1.ObjectReference `json:"outputs,omitempty"` }
func (*PerDeployerStatus) DeepCopy ¶
func (in *PerDeployerStatus) DeepCopy() *PerDeployerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PerDeployerStatus.
func (*PerDeployerStatus) DeepCopyInto ¶
func (in *PerDeployerStatus) DeepCopyInto(out *PerDeployerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.