v1alpha1

package
v0.0.0-...-4cb8388 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 22

Documentation

Overview

Package v1alpha1 . +k8s:deepcopy-gen=package +groupName=installer.kyma-project.io

Index

Constants

View Source
const (
	// Group .
	Group = "installer.kyma-project.io"
	// Version .
	Version = "v1alpha1"
)
View Source
const (
	// StateEmpty .
	StateEmpty StateEnum = ""

	// StateInstalled means installation of kyma is done
	StateInstalled StateEnum = "Installed"

	// StateUninstalled means installation is removed without errors
	StateUninstalled StateEnum = "Uninstalled"

	// StateInProgress means installation/update/uninstallation is running
	StateInProgress StateEnum = "InProgress"

	// StateError means an error condition occurred during install/update/uninstall operation
	StateError StateEnum = "Error"

	// CondtitionInstalled .
	CondtitionInstalled InstallationConditionType = "Installed"

	// ConditionInstalling .
	ConditionInstalling InstallationConditionType = "Installing"

	// ConditionUninstalled .
	ConditionUninstalled InstallationConditionType = "Uninstalled"

	// ConditionUninstalling .
	ConditionUninstalling InstallationConditionType = "Uninstalling"

	// ConditionInProgress .
	ConditionInProgress InstallationConditionType = "InProgress"

	// ConditionError .
	ConditionError InstallationConditionType = "Error"

	// ActionInstall .
	ActionInstall string = "install"

	// ActionUninstall .
	ActionUninstall = "uninstall"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{
		Group:   Group,
		Version: Version,
	}
	// SchemeBuilder .
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme .
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ComponentSource

type ComponentSource struct {
	URL string `json:"url"`
}

func (*ComponentSource) DeepCopy

func (in *ComponentSource) DeepCopy() *ComponentSource

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

func (*ComponentSource) DeepCopyInto

func (in *ComponentSource) DeepCopyInto(out *ComponentSource)

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

type ErrorLogEntry

type ErrorLogEntry struct {
	Component   string `json:"component"`
	Log         string `json:"log"`
	Occurrences int32  `json:"occurrences"`
}

func (*ErrorLogEntry) DeepCopy

func (in *ErrorLogEntry) DeepCopy() *ErrorLogEntry

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

func (*ErrorLogEntry) DeepCopyInto

func (in *ErrorLogEntry) DeepCopyInto(out *ErrorLogEntry)

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

type Installation

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

	Spec   InstallationSpec   `json:"spec"`
	Status InstallationStatus `json:"status"`
}

Installation .

func (*Installation) CanBeDeleted

func (i *Installation) CanBeDeleted() bool

func (*Installation) DeepCopy

func (in *Installation) DeepCopy() *Installation

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

func (*Installation) DeepCopyInto

func (in *Installation) DeepCopyInto(out *Installation)

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

func (*Installation) DeepCopyObject

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

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

func (*Installation) IsBeingDeleted

func (i *Installation) IsBeingDeleted() bool

func (*Installation) ShouldInstall

func (i *Installation) ShouldInstall() bool

ShouldInstall returns true when user requested install action

func (*Installation) ShouldUninstall

func (i *Installation) ShouldUninstall() bool

ShouldUninstall returns true when user requested uninstall action

type InstallationCondition

type InstallationCondition struct {
	Type               InstallationConditionType `json:"type"`
	Status             corev1.ConditionStatus    `json:"status"`
	LastTransitionTime metav1.Time               `json:"lastTransitionTime,omitempty"`
	LastProbeTime      metav1.Time               `json:"lastProbeTime,omitempty"`
}

InstallationCondition .

func (*InstallationCondition) DeepCopy

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

func (*InstallationCondition) DeepCopyInto

func (in *InstallationCondition) DeepCopyInto(out *InstallationCondition)

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

type InstallationConditionType

type InstallationConditionType string

InstallationConditionType defines installation condition type

type InstallationList

type InstallationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Installation `json:"items"`
}

InstallationList .

func (*InstallationList) DeepCopy

func (in *InstallationList) DeepCopy() *InstallationList

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

func (*InstallationList) DeepCopyInto

func (in *InstallationList) DeepCopyInto(out *InstallationList)

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

func (*InstallationList) DeepCopyObject

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

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

type InstallationSpec

type InstallationSpec struct {
	KymaVersion string          `json:"version"`
	URL         string          `json:"url"`
	Profile     KymaProfile     `json:"profile,omitempty"`
	Components  []KymaComponent `json:"components"`
}

InstallationSpec .

func (*InstallationSpec) DeepCopy

func (in *InstallationSpec) DeepCopy() *InstallationSpec

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

func (*InstallationSpec) DeepCopyInto

func (in *InstallationSpec) DeepCopyInto(out *InstallationSpec)

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

type InstallationStatus

type InstallationStatus struct {
	Conditions  []InstallationCondition `json:"conditions"`
	State       StateEnum               `json:"state"`
	Description string                  `json:"description"`
	KymaVersion string                  `json:"version"`
	URL         string                  `json:"url"`
	ErrorLog    []ErrorLogEntry         `json:"errorLog"`
}

InstallationStatus .

func (*InstallationStatus) DeepCopy

func (in *InstallationStatus) DeepCopy() *InstallationStatus

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

func (*InstallationStatus) DeepCopyInto

func (in *InstallationStatus) DeepCopyInto(out *InstallationStatus)

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

type KymaComponent

type KymaComponent struct {
	Name        string           `json:"name"`
	ReleaseName string           `json:"release"`
	Namespace   string           `json:"namespace"`
	Source      *ComponentSource `json:"source,omitempty"`
}

KymaComponent represents single kyma component to be handled by the Kyma Operator

func (*KymaComponent) DeepCopy

func (in *KymaComponent) DeepCopy() *KymaComponent

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

func (*KymaComponent) DeepCopyInto

func (in *KymaComponent) DeepCopyInto(out *KymaComponent)

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

func (KymaComponent) GetReleaseName

func (kc KymaComponent) GetReleaseName() string

GetReleaseName returns release name for component

type KymaProfile

type KymaProfile string
const (
	EvaluationProfile KymaProfile = "evaluation"
	ProductionProfile KymaProfile = "production"
)

type StateEnum

type StateEnum string

StateEnum describes installation state

Jump to

Keyboard shortcuts

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