v1alpha1

package
v0.1.44 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group.

Index

Constants

This section is empty.

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

	// Needed by kubernetes/code-generator.
	SchemeGroupVersion = GroupVersion
)

Functions

func Resource added in v0.1.1

func Resource(resource string) schema.GroupResource

Needed by kubernetes/code-generator.

Types

type MetricsProperties added in v0.1.41

type MetricsProperties struct {
	PodMonitor     *PodMonitorProperties     `json:"podMonitor,omitempty"`
	PrometheusRule *PrometheusRuleProperties `json:"prometheusRule,omitempty"`
}

MetricsProperties defines the properties for the metrics server.

func (*MetricsProperties) DeepCopy added in v0.1.41

func (in *MetricsProperties) DeepCopy() *MetricsProperties

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

func (*MetricsProperties) DeepCopyInto added in v0.1.41

func (in *MetricsProperties) DeepCopyInto(out *MetricsProperties)

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

type PodMonitorProperties added in v0.1.41

type PodMonitorProperties struct {
	Enabled bool `json:"enabled,omitempty"`
}

PodMonitorProperties defines the properties for the pod monitor.

func (*PodMonitorProperties) DeepCopy added in v0.1.41

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

func (*PodMonitorProperties) DeepCopyInto added in v0.1.41

func (in *PodMonitorProperties) DeepCopyInto(out *PodMonitorProperties)

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

type PrometheusRuleProperties added in v0.1.41

type PrometheusRuleProperties struct {
	Enabled bool                `json:"enabled,omitempty"`
	Rules   []prometheusv1.Rule `json:"rules,omitempty"`
}

PrometheusRuleProperties defines the properties for the prometheus rule.

func (*PrometheusRuleProperties) DeepCopy added in v0.1.41

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

func (*PrometheusRuleProperties) DeepCopyInto added in v0.1.41

func (in *PrometheusRuleProperties) DeepCopyInto(out *PrometheusRuleProperties)

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

type RedisOperator

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

	Spec RedisOperatorSpec `json:"spec,omitempty"`
	// +kubebuilder:default={"observedGeneration":-1}
	Status RedisOperatorStatus `json:"status,omitempty"`
}

RedisOperator is the Schema for the redisoperators API.

func (*RedisOperator) DeepCopy

func (in *RedisOperator) DeepCopy() *RedisOperator

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

func (*RedisOperator) DeepCopyInto

func (in *RedisOperator) DeepCopyInto(out *RedisOperator)

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

func (*RedisOperator) DeepCopyObject

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

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

func (*RedisOperator) GetDeploymentName

func (c *RedisOperator) GetDeploymentName() string

func (*RedisOperator) GetDeploymentNamespace

func (c *RedisOperator) GetDeploymentNamespace() string

func (*RedisOperator) GetSpec

func (*RedisOperator) GetStatus

func (c *RedisOperator) GetStatus() *component.Status

type RedisOperatorList

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

RedisOperatorList contains a list of RedisOperator.

func (*RedisOperatorList) DeepCopy

func (in *RedisOperatorList) DeepCopy() *RedisOperatorList

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

func (*RedisOperatorList) DeepCopyInto

func (in *RedisOperatorList) DeepCopyInto(out *RedisOperatorList)

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

func (*RedisOperatorList) DeepCopyObject

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

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

type RedisOperatorSpec

type RedisOperatorSpec struct {
	component.Spec `json:",inline"`
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:default=1
	ReplicaCount int `json:"replicaCount,omitempty"`
	// +optional
	Image                          component.ImageSpec `json:"image"`
	component.KubernetesProperties `json:",inline"`
	Metrics                        *MetricsProperties `json:"metrics,omitempty"`
}

RedisOperatorSpec defines the desired state of RedisOperator.

func (*RedisOperatorSpec) DeepCopy

func (in *RedisOperatorSpec) DeepCopy() *RedisOperatorSpec

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

func (*RedisOperatorSpec) DeepCopyInto

func (in *RedisOperatorSpec) DeepCopyInto(out *RedisOperatorSpec)

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

func (*RedisOperatorSpec) ToUnstructured

func (s *RedisOperatorSpec) ToUnstructured() map[string]any

type RedisOperatorStatus

type RedisOperatorStatus struct {
	component.Status `json:",inline"`
}

RedisOperatorStatus defines the observed state of RedisOperator.

func (*RedisOperatorStatus) DeepCopy

func (in *RedisOperatorStatus) DeepCopy() *RedisOperatorStatus

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

func (*RedisOperatorStatus) DeepCopyInto

func (in *RedisOperatorStatus) DeepCopyInto(out *RedisOperatorStatus)

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