v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
var (
	ContainerEnvVarKeyWATCHNAMESPACE = "WATCH_NAMESPACE"
	ContainerEnvVarKeyPODNAME        = "POD_NAME"
	ContainerEnvVarKeyOPERATORNAME   = "OPERATOR_NAME"

	DefaultPodServiceAccountName = "ham-deploy"

	DefaultReplicas = int32(1)
)
View Source
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"}
)
View Source
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"}
)
View Source
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"
)
View Source
var (
	ContainerEnvVarKeyCLUSTERNAME      = "CLUSTERNAME"
	ContainerEnvVarKeyCLUSTERNAMESPACE = "CLUSTERNAMESPACE"
	ContainerEnvVarKeyHUBKUBECONFIG    = "HUBCLUSTERCONFIGFILE"
)
View Source
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

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

func (in *CoreSpec) DeepCopy() *CoreSpec

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

func (*CoreSpec) DeepCopyInto

func (in *CoreSpec) DeepCopyInto(out *CoreSpec)

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

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

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

func (in *Operator) DeepCopy() *Operator

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

func (*Operator) DeepCopyInto

func (in *Operator) DeepCopyInto(out *Operator)

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

func (*Operator) DeepCopyObject

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

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 Phase

type Phase string
const (
	PhaseInstalled Phase = "Installed"
	PhasePending   Phase = "Pending"
	PhaseError     Phase = "Error"
)

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

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

func (in *ToolsSpec) DeepCopy() *ToolsSpec

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

func (*ToolsSpec) DeepCopyInto

func (in *ToolsSpec) DeepCopyInto(out *ToolsSpec)

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