v1alpha1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the integrated-service v1alpha1 API group +kubebuilder:object:generate=true +groupName=integrated-service.banzaicloud.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "integrated-service.banzaicloud.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

nolint:gochecknoglobals

Functions

This section is empty.

Types

type Backup added in v0.6.0

type Backup struct {
	// HelmOverrides is yaml encoded helm overrides
	HelmOverrides string              `json:"helmOverrides,omitempty"`
	Spec          *backup.ServiceSpec `json:"spec,omitempty"`
}

func (*Backup) DeepCopy added in v0.6.0

func (in *Backup) DeepCopy() *Backup

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

func (*Backup) DeepCopyInto added in v0.6.0

func (in *Backup) DeepCopyInto(out *Backup)

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

type DNS added in v0.5.0

type DNS struct {
	// HelmOverrides is yaml encoded helm overrides
	HelmOverrides string           `json:"helmOverrides,omitempty"`
	Spec          *dns.ServiceSpec `json:"spec,omitempty"`
}

func (*DNS) DeepCopy added in v0.5.0

func (in *DNS) DeepCopy() *DNS

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

func (*DNS) DeepCopyInto added in v0.5.0

func (in *DNS) DeepCopyInto(out *DNS)

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

type Phase

type Phase string
const (
	PreInstalling    Phase = "Preinstalling"
	PreInstallFailed Phase = "PreinstallFailed"

	// Internal state for transitioning from PreInstalling to Installing
	PreInstallSuccess Phase = "PreinstallSuccess"

	Installing    Phase = "Installing"
	InstallFailed Phase = "InstallFailed"

	// Internal state for transitioning from Installing to PostInstall
	InstallSuccess Phase = "InstallSuccess"

	PostInstall       Phase = "Postinstall"
	PostInstallFailed Phase = "PostinstallFailed"

	Uninstalling    Phase = "Uninstalling"
	UninstallFailed Phase = "UninstallFailed"

	// Final, stable phases
	Uninstalled Phase = "Uninstalled"
	Installed   Phase = "Installed"
)

type ServiceInstance

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

	Spec   ServiceInstanceSpec   `json:"spec,omitempty"`
	Status ServiceInstanceStatus `json:"status,omitempty"`
}

ServiceInstance is the Schema for the serviceinstances API.

func (*ServiceInstance) DeepCopy

func (in *ServiceInstance) DeepCopy() *ServiceInstance

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

func (*ServiceInstance) DeepCopyInto

func (in *ServiceInstance) DeepCopyInto(out *ServiceInstance)

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

func (*ServiceInstance) DeepCopyObject

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

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

type ServiceInstanceList

type ServiceInstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceInstance `json:"items"`
}

ServiceInstanceList contains a list of ServiceInstance.

func (*ServiceInstanceList) DeepCopy

func (in *ServiceInstanceList) DeepCopy() *ServiceInstanceList

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

func (*ServiceInstanceList) DeepCopyInto

func (in *ServiceInstanceList) DeepCopyInto(out *ServiceInstanceList)

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

func (*ServiceInstanceList) DeepCopyObject

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

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

type ServiceInstanceSpec

type ServiceInstanceSpec struct {
	Service string `json:"service,omitempty"`
	Version string `json:"version,omitempty"`
	Enabled *bool  `json:"enabled,omitempty"`

	DNS    DNS    `json:"dns,omitempty"`
	Backup Backup `json:"backup,omitempty"`
}

ServiceInstanceSpec defines the desired state of ServiceInstance.

func (*ServiceInstanceSpec) DeepCopy

func (in *ServiceInstanceSpec) DeepCopy() *ServiceInstanceSpec

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

func (*ServiceInstanceSpec) DeepCopyInto

func (in *ServiceInstanceSpec) DeepCopyInto(out *ServiceInstanceSpec)

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

type ServiceInstanceStatus

type ServiceInstanceStatus struct {
	// AvailableVersions defines the upgrade steps that need to be taken to reach a certain version
	AvailableVersions map[string][]string `json:"availableVersions,omitempty"`
	// Version is the last version that has successfully been installed
	Version string `json:"version,omitempty"`
	// Status represents the management state of the service
	// - Unmanaged if the service is not configured actively
	// - Managed if the service is actively configured and there are no problems found
	// - Invalid if reconciliation is blocked due to misconfiguration
	Status Status `json:"status,omitempty"`
	// Phase represents the internal state of the resource
	Phase Phase `json:"phase,omitempty"`
	// NextVersion represents the next version that the resource is converging to
	NextVersion string `json:"nextVersion,omitempty"`
}

ServiceInstanceStatus defines the observed state of ServiceInstance.

func (*ServiceInstanceStatus) DeepCopy

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

func (*ServiceInstanceStatus) DeepCopyInto

func (in *ServiceInstanceStatus) DeepCopyInto(out *ServiceInstanceStatus)

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

type Status added in v0.5.0

type Status string
const (
	StatusUnmanaged Status = "Unmanaged"
	StatusManaged   Status = "Managed"
	StatusInvalid   Status = "Invalid"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL