Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the deploy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=deploy.hybridapp.io
Package v1alpha1 contains API Schema definitions for the deploy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=deploy.hybridapp.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ContainerEnvVarKeyWATCHNAMESPACE = "WATCH_NAMESPACE" ContainerEnvVarKeyPODNAME = "POD_NAME" ContainerEnvVarKeyOPERATORNAME = "OPERATOR_NAME" DefaultPodServiceAccountName = "ham-deploy" DefaultReplicas = int32(1) )
var ( DefaultDeployableEnablement = true DefaultDeployableContainerName = "deployable" DefaultDeployableContainerImage = "quay.io/hybridappio/ham-deployable-operator" DefaultDeployableContainerImagePullPolicy = corev1.PullAlways DefaultDeployableContainerResources = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ "cpu": resource.MustParse("100m"), "memory": resource.MustParse("512Mi"), }, Requests: corev1.ResourceList{ "cpu": resource.MustParse("50m"), "memory": resource.MustParse("64Mi"), }, } DefaultDeployableContainerCommand = []string{"ham-deployable-operator"} )
var ( DefaultAssmeblerEnablement = true DefaultAssemblerContainerName = "assembler" DefaultAssemblerContainerImage = "quay.io/hybridappio/ham-application-assembler" DefaultAssemblerContainerImagePullPolicy = corev1.PullAlways DefaultAssemblerContainerResources = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ "cpu": resource.MustParse("100m"), "memory": resource.MustParse("512Mi"), }, Requests: corev1.ResourceList{ "cpu": resource.MustParse("50m"), "memory": resource.MustParse("64Mi"), }, } DefaultAssemblerContainerCommand = []string{"ham-application-assembler"} )
var ( DefaultDiscovererEnablement = false DefaultDiscovererContainerName = "discoverer" DefaultDiscovererContainerImage = "quay.io/hybridappio/ham-resource-discoverer" DefaultDiscovererContainerImagePullPolicy = corev1.PullAlways DefaultDiscovererContainerResources = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ "cpu": resource.MustParse("100m"), "memory": resource.MustParse("512Mi"), }, Requests: corev1.ResourceList{ "cpu": resource.MustParse("50m"), "memory": resource.MustParse("64Mi"), }, } DefaultDiscovererContainerCommand = []string{"ham-resource-discoverer"} DefaultPodVolumeNameHubConnection = "hub-connection-config" )
var ( ContainerEnvVarKeyCLUSTERNAME = "CLUSTERNAME" ContainerEnvVarKeyCLUSTERNAMESPACE = "CLUSTERNAMESPACE" ContainerEnvVarKeyHUBKUBECONFIG = "HUBCLUSTERCONFIGFILE" )
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "deploy.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 ApplicationAssemblerSpec ¶
type ApplicationAssemblerSpec struct {
GenericContainerSpec `json:",inline"`
}
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 CoreSpec ¶
type CoreSpec struct {
DeployableOperatorSpec *DeployableOperatorSpec `json:"deployable,omitempty"`
}
func (*CoreSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreSpec.
func (*CoreSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeployableOperatorSpec ¶
type DeployableOperatorSpec struct {
GenericContainerSpec `json:",inline"`
}
func (*DeployableOperatorSpec) DeepCopy ¶
func (in *DeployableOperatorSpec) DeepCopy() *DeployableOperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeployableOperatorSpec.
func (*DeployableOperatorSpec) DeepCopyInto ¶
func (in *DeployableOperatorSpec) DeepCopyInto(out *DeployableOperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GenericContainerSpec ¶
type GenericContainerSpec struct { Enabled *bool `json:"enabled,omitempty"` Name *string `json:"name,omitempty"` Image *string `json:"image,omitempty"` ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"` Resources *corev1.ResourceRequirements `json:"resources,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` }
func (*GenericContainerSpec) DeepCopy ¶
func (in *GenericContainerSpec) DeepCopy() *GenericContainerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericContainerSpec.
func (*GenericContainerSpec) DeepCopyInto ¶
func (in *GenericContainerSpec) DeepCopyInto(out *GenericContainerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HubConnectionConfig ¶
type HubConnectionConfig struct { KubeConfig *string `json:"kubeconfig,omitempty"` MountPath string `json:"mountpath"` SecretRef corev1.LocalObjectReference `json:"secretRef"` }
func (*HubConnectionConfig) DeepCopy ¶
func (in *HubConnectionConfig) DeepCopy() *HubConnectionConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HubConnectionConfig.
func (*HubConnectionConfig) DeepCopyInto ¶
func (in *HubConnectionConfig) DeepCopyInto(out *HubConnectionConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseSpec ¶
type LicenseSpec struct { // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors=true // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.displayName="Accept terms and conditions" // +operator-sdk:gen-csv:customresourcedefinitions.specDescriptors.x-descriptors="urn:alm:descriptor:com.tectonic.ui:booleanSwitch" Accept bool `json:"accept"` }
func (*LicenseSpec) DeepCopy ¶
func (in *LicenseSpec) DeepCopy() *LicenseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec.
func (*LicenseSpec) DeepCopyInto ¶
func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Operator ¶
type Operator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec OperatorSpec `json:"spec,omitempty"` Status OperatorStatus `json:"status,omitempty"` }
Operator is the Schema for the operators API +kubebuilder:subresource:status +kubebuilder:resource:path=operators,scope=Namespaced
func (*Operator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operator.
func (*Operator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Operator) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OperatorList ¶
type OperatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Operator `json:"items"` }
OperatorList contains a list of Operator
func (*OperatorList) DeepCopy ¶
func (in *OperatorList) DeepCopy() *OperatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorList.
func (*OperatorList) DeepCopyInto ¶
func (in *OperatorList) DeepCopyInto(out *OperatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OperatorList) DeepCopyObject ¶
func (in *OperatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OperatorSpec ¶
type OperatorSpec struct { Replicas *int32 `json:"replicas,omitempty"` LicenseSpec *LicenseSpec `json:"license"` CoreSpec *CoreSpec `json:"core,omitempty"` ToolsSpec *ToolsSpec `json:"tools,omitempty"` }
OperatorSpec defines the desired state of Operator
func (*OperatorSpec) DeepCopy ¶
func (in *OperatorSpec) DeepCopy() *OperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorSpec.
func (*OperatorSpec) DeepCopyInto ¶
func (in *OperatorSpec) DeepCopyInto(out *OperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorStatus ¶
type OperatorStatus struct { // +kubebuilder:validation:Enum=Installed;Pending;Error Phase Phase `json:"phase,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` ReplicaSetStatus *appsv1.ReplicaSetStatus `json:"replicasetstatus,omitempty"` }
OperatorStatus defines the observed state of Operator
func (*OperatorStatus) DeepCopy ¶
func (in *OperatorStatus) DeepCopy() *OperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorStatus.
func (*OperatorStatus) DeepCopyInto ¶
func (in *OperatorStatus) DeepCopyInto(out *OperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceDiscovererSpec ¶
type ResourceDiscovererSpec struct { GenericContainerSpec `json:",inline"` ClusterName *string `json:"clustername,omitempty"` ClusterNamespace *string `json:"clusternamespace,omitempty"` HubConnectionConfig *HubConnectionConfig `json:"hubconfig,omitempty"` }
func (*ResourceDiscovererSpec) DeepCopy ¶
func (in *ResourceDiscovererSpec) DeepCopy() *ResourceDiscovererSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDiscovererSpec.
func (*ResourceDiscovererSpec) DeepCopyInto ¶
func (in *ResourceDiscovererSpec) DeepCopyInto(out *ResourceDiscovererSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ToolsSpec ¶
type ToolsSpec struct { ApplicationAssemblerSpec *ApplicationAssemblerSpec `json:"assembler,omitempty"` ResourceDiscovererSpec *ResourceDiscovererSpec `json:"discoverer,omitempty"` }
func (*ToolsSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolsSpec.
func (*ToolsSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.