v1alpha1

package
v0.0.0-...-a280385 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the slo-kubernetes-operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=osko.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "osko.dev", 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 ConnectionDetails

type ConnectionDetails struct {
	Address             string   `json:"address,omitempty"`
	TargetTenant        string   `json:"targetTenant,omitempty"`
	SourceTenants       []string `json:"sourceTenants,omitempty"`
	SyncPrometheusRules bool     `json:"syncPrometheusRules,omitempty"`
}

+kubebuilder:object:generate=true

func (*ConnectionDetails) DeepCopy

func (in *ConnectionDetails) DeepCopy() *ConnectionDetails

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

func (*ConnectionDetails) DeepCopyInto

func (in *ConnectionDetails) DeepCopyInto(out *ConnectionDetails)

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

type Cortex

type Cortex struct {
	Address      string       `json:"address,omitempty"`
	Ruler        Ruler        `json:"ruler,omitempty"`
	Multitenancy Multitenancy `json:"multitenancy,omitempty"`
}

+kubebuilder:object:generate=true

func (*Cortex) DeepCopy

func (in *Cortex) DeepCopy() *Cortex

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

func (*Cortex) DeepCopyInto

func (in *Cortex) DeepCopyInto(out *Cortex)

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

type Mimir

type Mimir struct {
	Address      string       `json:"address,omitempty"`
	Ruler        Ruler        `json:"ruler,omitempty"`
	Multitenancy Multitenancy `json:"multitenancy,omitempty"`
}

+kubebuilder:object:generate=true

func (*Mimir) DeepCopy

func (in *Mimir) DeepCopy() *Mimir

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

func (*Mimir) DeepCopyInto

func (in *Mimir) DeepCopyInto(out *Mimir)

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

type MimirRule

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

	Spec   MimirRuleSpec   `json:"spec,omitempty"`
	Status MimirRuleStatus `json:"status,omitempty"`
}

MimirRule is the Schema for the mimirrules API

func (*MimirRule) DeepCopy

func (in *MimirRule) DeepCopy() *MimirRule

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

func (*MimirRule) DeepCopyInto

func (in *MimirRule) DeepCopyInto(out *MimirRule)

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

func (*MimirRule) DeepCopyObject

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

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

type MimirRuleList

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

MimirRuleList contains a list of MimirRule

func (*MimirRuleList) DeepCopy

func (in *MimirRuleList) DeepCopy() *MimirRuleList

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

func (*MimirRuleList) DeepCopyInto

func (in *MimirRuleList) DeepCopyInto(out *MimirRuleList)

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

func (*MimirRuleList) DeepCopyObject

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

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

type MimirRuleSpec

type MimirRuleSpec struct {
	ConnectionDetails ConnectionDetails `json:"mimirConnectionDetails,omitempty"`
	// Groups is an example field of MimirRule. Edit mimirrule_types.go to remove/update
	Groups []RuleGroup `json:"groups"`
}

MimirRuleSpec defines the desired state of MimirRule

func (*MimirRuleSpec) DeepCopy

func (in *MimirRuleSpec) DeepCopy() *MimirRuleSpec

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

func (*MimirRuleSpec) DeepCopyInto

func (in *MimirRuleSpec) DeepCopyInto(out *MimirRuleSpec)

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

type MimirRuleStatus

type MimirRuleStatus struct {
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	LastEvaluationTime metav1.Time        `json:"lastEvaluationTime,omitempty"`
	Ready              string             `json:"ready,omitempty"`
}

MimirRuleStatus defines the observed state of MimirRule

func (*MimirRuleStatus) DeepCopy

func (in *MimirRuleStatus) DeepCopy() *MimirRuleStatus

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

func (*MimirRuleStatus) DeepCopyInto

func (in *MimirRuleStatus) DeepCopyInto(out *MimirRuleStatus)

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

type Multitenancy

type Multitenancy struct {
	// +kubebuilder:default=false
	Enabled bool `json:"enabled,omitempty"`
	// +kubebuilder:MinItems=1
	SourceTenants []string `json:"sourceTenants,omitempty"`
	TargetTenant  string   `json:"targetTenant,omitempty"`
}

func (*Multitenancy) DeepCopy

func (in *Multitenancy) DeepCopy() *Multitenancy

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

func (*Multitenancy) DeepCopyInto

func (in *Multitenancy) DeepCopyInto(out *Multitenancy)

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

type Rule

type Rule struct {
	Record        string            `json:"record,omitempty"`
	Alert         string            `json:"alert,omitempty"`
	Expr          string            `json:"expr"`
	For           model.Duration    `json:"for,omitempty"`
	KeepFiringFor model.Duration    `json:"keep_firing_for,omitempty"`
	Labels        map[string]string `json:"labels,omitempty"`
	Annotations   map[string]string `json:"annotations,omitempty"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type RuleGroup

type RuleGroup struct {
	Name                          string          `json:"name"`
	SourceTenants                 []string        `json:"source_tenants,omitempty"`
	Rules                         []Rule          `json:"rules"`
	Interval                      model.Duration  `json:"interval,omitempty"`
	EvaluationDelay               *model.Duration `json:"evaluation_delay,omitempty"`
	Limit                         int             `json:"limit,omitempty"`
	AlignEvaluationTimeOnInterval bool            `json:"align_evaluation_time_on_interval,omitempty"`
}

func (*RuleGroup) DeepCopy

func (in *RuleGroup) DeepCopy() *RuleGroup

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

func (*RuleGroup) DeepCopyInto

func (in *RuleGroup) DeepCopyInto(out *RuleGroup)

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

type Ruler

type Ruler struct {
	// +kubebuilder:default=false
	Enabled bool   `json:"enabled,omitempty"`
	Subpath string `json:"subpath,omitempty"`
}

func (*Ruler) DeepCopy

func (in *Ruler) DeepCopy() *Ruler

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

func (*Ruler) DeepCopyInto

func (in *Ruler) DeepCopyInto(out *Ruler)

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