v2alpha1

package
v0.0.0-...-b4b605e Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

+k8s:deepcopy-gen=package +groupName=galasa.dev

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

  • Copyright contributors to the Galasa Project

Index

Constants

View Source
const (
	IMAGEPULLPOLICY  string = "Always"
	STORAGECLASSNAME string = "default"
	CPSIMAGE         string = "quay.io/coreos/etcd:v3.4.3"
	CPSSTORAGE       string = "1Gi"
	RASIMAGE         string = "couchdb:2.3.1"
	RASSTORAGE       string = "5Gi"
	APISTORAGE       string = "1Gi"
)

Variables

View Source
var (
	GALASAVERSION   string = "latest"
	APIIMAGE        string = "icr.io/galasadev/galasa-boot-embedded-amd64:" + GALASAVERSION
	RESMONIMAGE     string = "icr.io/galasadev/galasa-boot-embedded-amd64:" + GALASAVERSION
	METRICSIMAGE    string = "icr.io/galasadev/galasa-boot-embedded-amd64:" + GALASAVERSION
	CONTROLLERIMAGE string = "icr.io/galasadev/galasa-boot-embedded-amd64:" + GALASAVERSION
	SIMBANKIMAGE    string = "icr.io/galasadev/galasa-simplatform-amd64:" + GALASAVERSION
	SINGLEREPLICA   int32  = 1
	SIMBANK         bool   = false
	SIMBANKVERSION  string = "0.15.0"
)
View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var DEFAULTSIMBANKCATALOG = `` /* 2123-byte string literal not displayed */
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "galasa.dev", Version: "v2alpha1"}

SchemeGroupVersion is group version used to register these objects

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

func Validate

func Validate(c *GalasaEcosystem) error

Types

type ComponentInterface

type ComponentInterface interface {
	IsReady(context.Context) bool

	HasChanged(spec ComponentSpec) bool

	GetObjects() []runtime.Object
}

type ComponentSpec

type ComponentSpec struct {
	Image    string `json:"image"`
	Replicas *int32 `json:"replicas"`
	// +optional
	ImagePullPolicy string `json:"imagePullPolicy"`
	// +optional
	Storage string `json:"storage"`
	// +optional
	StorageClassName string `json:"storageClassName"`
	// +optional
	NodeSelector map[string]string `json:"nodeSelector"`
	// +optional
	ComponentParms map[string]string `json:"componentParms"`
}

func DefaultApi

func DefaultApi(c *GalasaEcosystemSpec) ComponentSpec

func DefaultCps

func DefaultCps(c *GalasaEcosystemSpec) ComponentSpec

func DefaultEngineController

func DefaultEngineController(c *GalasaEcosystemSpec) ComponentSpec

func DefaultMetrics

func DefaultMetrics(c *GalasaEcosystemSpec) ComponentSpec

func DefaultRas

func DefaultRas(c *GalasaEcosystemSpec) ComponentSpec

func DefaultResmon

func DefaultResmon(c *GalasaEcosystemSpec) ComponentSpec

func DefaultSimbank

func DefaultSimbank(c *GalasaEcosystemSpec) ComponentSpec

func SetEngineControllerDefaults

func SetEngineControllerDefaults(enginecontroller ComponentSpec, c *GalasaEcosystemSpec) ComponentSpec

func SetMetricsDefaults

func SetMetricsDefaults(metrics ComponentSpec, c *GalasaEcosystemSpec) ComponentSpec

func SetResmonDefaults

func SetResmonDefaults(resmon ComponentSpec, c *GalasaEcosystemSpec) ComponentSpec

func SetSimbankDefaults

func SetSimbankDefaults(simbank ComponentSpec, c *GalasaEcosystemSpec) ComponentSpec

func (*ComponentSpec) DeepCopy

func (in *ComponentSpec) DeepCopy() *ComponentSpec

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

func (*ComponentSpec) DeepCopyInto

func (in *ComponentSpec) DeepCopyInto(out *ComponentSpec)

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

type ComponentStatus

type ComponentStatus struct {
	Ready       bool              `json:"ready"`
	StatusParms map[string]string `json:"statusParms"`
}

func (*ComponentStatus) DeepCopy

func (in *ComponentStatus) DeepCopy() *ComponentStatus

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

func (*ComponentStatus) DeepCopyInto

func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)

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

type GalasaApiComponent

type GalasaApiComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaApiComponent) DeepCopy

func (in *GalasaApiComponent) DeepCopy() *GalasaApiComponent

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

func (*GalasaApiComponent) DeepCopyInto

func (in *GalasaApiComponent) DeepCopyInto(out *GalasaApiComponent)

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

func (*GalasaApiComponent) DeepCopyObject

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

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

type GalasaApiComponentList

type GalasaApiComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaApiComponent `json:"items"`
}

func (*GalasaApiComponentList) DeepCopy

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

func (*GalasaApiComponentList) DeepCopyInto

func (in *GalasaApiComponentList) DeepCopyInto(out *GalasaApiComponentList)

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

func (*GalasaApiComponentList) DeepCopyObject

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

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

type GalasaCpsComponent

type GalasaCpsComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaCpsComponent) DeepCopy

func (in *GalasaCpsComponent) DeepCopy() *GalasaCpsComponent

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

func (*GalasaCpsComponent) DeepCopyInto

func (in *GalasaCpsComponent) DeepCopyInto(out *GalasaCpsComponent)

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

func (*GalasaCpsComponent) DeepCopyObject

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

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

type GalasaCpsComponentList

type GalasaCpsComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaCpsComponent `json:"items"`
}

func (*GalasaCpsComponentList) DeepCopy

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

func (*GalasaCpsComponentList) DeepCopyInto

func (in *GalasaCpsComponentList) DeepCopyInto(out *GalasaCpsComponentList)

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

func (*GalasaCpsComponentList) DeepCopyObject

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

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

type GalasaEcosystem

type GalasaEcosystem struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec GalasaEcosystemSpec `json:"spec,omitempty"`

	// +optional
	Status GalasaEcosystemStatus `json:"status,omitempty"`
}

func (*GalasaEcosystem) DeepCopy

func (in *GalasaEcosystem) DeepCopy() *GalasaEcosystem

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

func (*GalasaEcosystem) DeepCopyInto

func (in *GalasaEcosystem) DeepCopyInto(out *GalasaEcosystem)

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

func (*GalasaEcosystem) DeepCopyObject

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

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

func (*GalasaEcosystem) GetStorageClassName

func (c *GalasaEcosystem) GetStorageClassName() string

func (*GalasaEcosystem) SetDefaults

func (c *GalasaEcosystem) SetDefaults(ctx context.Context)

type GalasaEcosystemList

type GalasaEcosystemList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaEcosystem `json:"items"`
}

func (*GalasaEcosystemList) DeepCopy

func (in *GalasaEcosystemList) DeepCopy() *GalasaEcosystemList

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

func (*GalasaEcosystemList) DeepCopyInto

func (in *GalasaEcosystemList) DeepCopyInto(out *GalasaEcosystemList)

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

func (*GalasaEcosystemList) DeepCopyObject

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

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

type GalasaEcosystemSpec

type GalasaEcosystemSpec struct {
	Hostname      string `json:"hostname"`
	GalasaVersion string `json:"galasaVersion"`
	// +optional
	BusyboxImage   string                   `json:"busyboxImage"`
	ComponentsSpec map[string]ComponentSpec `json:"componentsSpec"`
	// +optional
	Simbank bool `json:"simbank"`
	// +optional
	SimbankVersion string `json:"simbankVersion"`

	// Global Spec, will be overidden by component spec
	// +optional
	ImagePullPolicy string `json:"imagePullPolicy"`
	// +optional
	StorageClassName string `json:"storageClassName"`
	// +optional
	NodeSelector map[string]string `json:"nodeSelector"`
}

func (*GalasaEcosystemSpec) DeepCopy

func (in *GalasaEcosystemSpec) DeepCopy() *GalasaEcosystemSpec

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

func (*GalasaEcosystemSpec) DeepCopyInto

func (in *GalasaEcosystemSpec) DeepCopyInto(out *GalasaEcosystemSpec)

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

func (*GalasaEcosystemSpec) SetDefaults

func (c *GalasaEcosystemSpec) SetDefaults(ctx context.Context)

type GalasaEcosystemStatus

type GalasaEcosystemStatus struct {
	Ready        bool   `json:"ready"`
	BootstrapURL string `json:"bootstrapURL"`
}

func (*GalasaEcosystemStatus) DeepCopy

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

func (*GalasaEcosystemStatus) DeepCopyInto

func (in *GalasaEcosystemStatus) DeepCopyInto(out *GalasaEcosystemStatus)

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

type GalasaEngineControllerComponent

type GalasaEngineControllerComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaEngineControllerComponent) DeepCopy

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

func (*GalasaEngineControllerComponent) DeepCopyInto

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

func (*GalasaEngineControllerComponent) DeepCopyObject

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

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

type GalasaEngineControllerComponentList

type GalasaEngineControllerComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaEngineControllerComponent `json:"items"`
}

func (*GalasaEngineControllerComponentList) DeepCopy

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

func (*GalasaEngineControllerComponentList) DeepCopyInto

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

func (*GalasaEngineControllerComponentList) DeepCopyObject

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

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

type GalasaMetricsComponent

type GalasaMetricsComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaMetricsComponent) DeepCopy

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

func (*GalasaMetricsComponent) DeepCopyInto

func (in *GalasaMetricsComponent) DeepCopyInto(out *GalasaMetricsComponent)

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

func (*GalasaMetricsComponent) DeepCopyObject

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

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

type GalasaMetricsComponentList

type GalasaMetricsComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaMetricsComponent `json:"items"`
}

func (*GalasaMetricsComponentList) DeepCopy

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

func (*GalasaMetricsComponentList) DeepCopyInto

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

func (*GalasaMetricsComponentList) DeepCopyObject

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

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

type GalasaRasComponent

type GalasaRasComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaRasComponent) DeepCopy

func (in *GalasaRasComponent) DeepCopy() *GalasaRasComponent

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

func (*GalasaRasComponent) DeepCopyInto

func (in *GalasaRasComponent) DeepCopyInto(out *GalasaRasComponent)

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

func (*GalasaRasComponent) DeepCopyObject

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

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

type GalasaRasComponentList

type GalasaRasComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaRasComponent `json:"items"`
}

func (*GalasaRasComponentList) DeepCopy

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

func (*GalasaRasComponentList) DeepCopyInto

func (in *GalasaRasComponentList) DeepCopyInto(out *GalasaRasComponentList)

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

func (*GalasaRasComponentList) DeepCopyObject

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

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

type GalasaResmonComponent

type GalasaResmonComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ComponentSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaResmonComponent) DeepCopy

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

func (*GalasaResmonComponent) DeepCopyInto

func (in *GalasaResmonComponent) DeepCopyInto(out *GalasaResmonComponent)

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

func (*GalasaResmonComponent) DeepCopyObject

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

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

type GalasaResmonComponentList

type GalasaResmonComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaResmonComponent `json:"items"`
}

func (*GalasaResmonComponentList) DeepCopy

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

func (*GalasaResmonComponentList) DeepCopyInto

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

func (*GalasaResmonComponentList) DeepCopyObject

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

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

type GalasaToolboxComponent

type GalasaToolboxComponent struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec ToolboxSpec `json:"spec,omitempty"`

	// +optional
	Status ComponentStatus `json:"status,omitempty"`
}

func (*GalasaToolboxComponent) DeepCopy

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

func (*GalasaToolboxComponent) DeepCopyInto

func (in *GalasaToolboxComponent) DeepCopyInto(out *GalasaToolboxComponent)

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

func (*GalasaToolboxComponent) DeepCopyObject

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

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

type GalasaToolboxComponentList

type GalasaToolboxComponentList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GalasaToolboxComponent `json:"items"`
}

func (*GalasaToolboxComponentList) DeepCopy

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

func (*GalasaToolboxComponentList) DeepCopyInto

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

func (*GalasaToolboxComponentList) DeepCopyObject

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

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

type ToolboxSpec

type ToolboxSpec struct {
	// +optional
	Simbank bool `json:"simbank"`
	// +optional
	SimbankSpec ComponentSpec `json:"simbankSpec"`
}

func (*ToolboxSpec) DeepCopy

func (in *ToolboxSpec) DeepCopy() *ToolboxSpec

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

func (*ToolboxSpec) DeepCopyInto

func (in *ToolboxSpec) DeepCopyInto(out *ToolboxSpec)

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

Directories

Path Synopsis
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project
* Copyright contributors to the Galasa Project

Jump to

Keyboard shortcuts

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