v1alpha1

package
v0.0.0-...-0585a07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.kyma-project.io

Index

Constants

View Source
const (
	StateReady      string = "Ready"
	StateError      string = "Error"
	StateProcessing string = "Processing"
	StateDeleting   string = "Deleting"
	StateWarning    string = "Warning"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "operator.kyma-project.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
)

Functions

This section is empty.

Types

type AICoreConfig

type AICoreConfig struct {
	// Secret name and namespace for the AI Core.
	// +kubebuilder:default:={name: "ai-core", namespace: "ai-core"}
	Secret SecretSpec `json:"secret"`
}

AICoreConfig defines the configuration for the AI Core.

func (*AICoreConfig) DeepCopy

func (in *AICoreConfig) DeepCopy() *AICoreConfig

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

func (*AICoreConfig) DeepCopyInto

func (in *AICoreConfig) DeepCopyInto(out *AICoreConfig)

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

type Companion

type Companion struct {
	kmetav1.TypeMeta   `json:",inline"`
	kmetav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CompanionSpec   `json:"spec,omitempty"`
	Status CompanionStatus `json:"status,omitempty"`
}

Companion is the Schema for the companions API.

func (*Companion) DeepCopy

func (in *Companion) DeepCopy() *Companion

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

func (*Companion) DeepCopyInto

func (in *Companion) DeepCopyInto(out *Companion)

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

func (*Companion) DeepCopyObject

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

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

type CompanionConfig

type CompanionConfig struct {
	// Secret name and namespace for the companion backend.
	// +kubebuilder:default:={name: "companion", namespace: "ai-core"}
	Secret SecretSpec `json:"secret"`

	// Number of replicas for the companion backend.
	// +kubebuilder:default:={min: 1, max: 3}
	Replicas ReplicasConfig `json:"replicas"`

	// Specify required resources and resource limits for the companion backend.
	// +kubebuilder:default:={limits:{cpu:4,memory:"4Gi"}, requests:{cpu:"500m",memory:"256Mi"}}
	Resources kcorev1.ResourceRequirements `json:"resources,omitempty"`
}

CompanionConfig defines the configuration for the Companion.

func (*CompanionConfig) DeepCopy

func (in *CompanionConfig) DeepCopy() *CompanionConfig

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

func (*CompanionConfig) DeepCopyInto

func (in *CompanionConfig) DeepCopyInto(out *CompanionConfig)

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

type CompanionList

type CompanionList struct {
	kmetav1.TypeMeta `json:",inline"`
	kmetav1.ListMeta `json:"metadata,omitempty"`
	Items            []Companion `json:"items"`
}

CompanionList contains a list of Companion.

func (*CompanionList) DeepCopy

func (in *CompanionList) DeepCopy() *CompanionList

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

func (*CompanionList) DeepCopyInto

func (in *CompanionList) DeepCopyInto(out *CompanionList)

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

func (*CompanionList) DeepCopyObject

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

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

type CompanionSpec

type CompanionSpec struct {
	// AI Core configuration
	// +kubebuilder:default:={secret:{name: "ai-core", namespace: "ai-core"}}
	AICore AICoreConfig `json:"aicore"`

	// HANA Cloud configuration
	// +kubebuilder:default:={secret:{name: "companion", namespace: "hana-cloud"}}
	HanaCloud HanaConfig `json:"hanaCloud"`

	// Redis configuration
	// +kubebuilder:default:={secret:{name: "companion", namespace: "redis"}}
	Redis RedisConfig `json:"redis"`

	// CompanionConfig defines the configuration for the companion
	//nolint:lll
	// +kubebuilder:default:={"replicas": {"min": 1,"max": 3},"resources": {"limits": {"cpu": "4","memory": "4Gi"},"requests": {"cpu": "500m","memory": "256Mi"}}, "secret": {"name": "companion","namespace": "ai-core"}}
	Companion CompanionConfig `json:"companion"`
}

CompanionSpec defines the desired state of Companion.

func (*CompanionSpec) DeepCopy

func (in *CompanionSpec) DeepCopy() *CompanionSpec

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

func (*CompanionSpec) DeepCopyInto

func (in *CompanionSpec) DeepCopyInto(out *CompanionSpec)

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

type CompanionStatus

type CompanionStatus struct {
	// Defines the overall state of the Companion custom resource.<br/>
	// - `Ready` when all the resources managed by the Kyma companion manager are deployed successfully and
	// the companion backend is ready.<br/>
	// - `Warning` if there is a user input misconfiguration.<br/>
	// - `Processing` if the resources managed by the Kyma companion manager are being created or updated.<br/>
	// - `Error` if an error occurred while reconciling the Companion custom resource.
	// - `Deleting` if the resources managed by the Kyma companion manager are being deleted.
	State string `json:"state"`
}

CompanionStatus defines the observed state of Companion.

func (*CompanionStatus) DeepCopy

func (in *CompanionStatus) DeepCopy() *CompanionStatus

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

func (*CompanionStatus) DeepCopyInto

func (in *CompanionStatus) DeepCopyInto(out *CompanionStatus)

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

type HanaConfig

type HanaConfig struct {
	// Secret name and namespace for the HANA Cloud.
	// +kubebuilder:default:={name: "companion", namespace: "hana-cloud"}
	Secret SecretSpec `json:"secret"`
}

HanaConfig defines the configuration for the HANA Cloud.

func (*HanaConfig) DeepCopy

func (in *HanaConfig) DeepCopy() *HanaConfig

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

func (*HanaConfig) DeepCopyInto

func (in *HanaConfig) DeepCopyInto(out *HanaConfig)

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

type RedisConfig

type RedisConfig struct {
	// Secret name and namespace for the Redis.
	// +kubebuilder:default:={name: "companion", namespace: "redis"}
	Secret SecretSpec `json:"secret"`
}

RedisConfig defines the configuration for the Redis.

func (*RedisConfig) DeepCopy

func (in *RedisConfig) DeepCopy() *RedisConfig

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

func (*RedisConfig) DeepCopyInto

func (in *RedisConfig) DeepCopyInto(out *RedisConfig)

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

type ReplicasConfig

type ReplicasConfig struct {
	// Minimum number of replicas for the companion backend.
	Min int `json:"min"`

	// Maximum number of replicas for the companion backend.
	Max int `json:"max"`
}

ReplicasConfig defines the min and max replicas.

func (*ReplicasConfig) DeepCopy

func (in *ReplicasConfig) DeepCopy() *ReplicasConfig

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

func (*ReplicasConfig) DeepCopyInto

func (in *ReplicasConfig) DeepCopyInto(out *ReplicasConfig)

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

type SecretSpec

type SecretSpec struct {
	// Secret name and namespace for the secret.
	// Name: Name of the secret.
	// Namespace: Namespace of the secret.
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

SecretSpec defines the secret name and namespace.

func (*SecretSpec) DeepCopy

func (in *SecretSpec) DeepCopy() *SecretSpec

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

func (*SecretSpec) DeepCopyInto

func (in *SecretSpec) DeepCopyInto(out *SecretSpec)

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