v1beta1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the metrics.infra.doodle.com v1beta1 API group. +kubebuilder:object:generate=true +groupName=metrics.infra.doodle.com

Package v1beta1 contains API Schema definitions for the metrics.infra.doodle.com v1beta1 API group +kubebuilder:object:generate=true +groupName=metrics.infra.doodle.com

Index

Constants

View Source
const (
	ActiveCondition             = "Active"
	FailedReason                = "Failed"
	InactiveReason              = "Inactive"
	PendingReason               = "Pending"
	ActiveReason                = "Active"
	InvalidPrometheusURLReason  = "InvalidPrometheusURL"
	PrometheusQueryFailedReason = "PrometheusQueryFailed"
	PatchAppliedCondition       = "PatchApplied"
	PatchApplyFailedReason      = "Failed"
	PatchAppliedReason          = "Applied"
	NoPatchFoundReason          = "NoPatchFound"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "metrics.infra.doodle.com", Version: "v1beta1"}

	// 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 JSON6902Patch

type JSON6902Patch struct {
	// Patch contains JSON6902 patches with
	// an array of operation objects.
	// +required
	Patch []JSONPatch `json:"patch,omitempty"`

	// Target points to the resources that the patch document should be applied to.
	// +optional
	Target Selector `json:"target,omitempty"`
}

JSON6902Patch is a target selector and a list of JSON6902 patches

func (*JSON6902Patch) DeepCopy

func (in *JSON6902Patch) DeepCopy() *JSON6902Patch

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

func (*JSON6902Patch) DeepCopyInto

func (in *JSON6902Patch) DeepCopyInto(out *JSON6902Patch)

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

type JSONPatch

type JSONPatch struct {
	OP    string     `json:"op"`
	Path  string     `json:"path"`
	Value extv1.JSON `json:"value"`
}

JSONPatch is a JSON 6902 conform patch

func (*JSONPatch) DeepCopy

func (in *JSONPatch) DeepCopy() *JSONPatch

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

func (*JSONPatch) DeepCopyInto

func (in *JSONPatch) DeepCopyInto(out *JSONPatch)

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

type PrometheusPatchRule

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

	Spec   PrometheusPatchRuleSpec   `json:"spec,omitempty"`
	Status PrometheusPatchRuleStatus `json:"status,omitempty"`
}

PrometheusPatchRule is the Schema for the patchrules API

func PrometheusPatchRuleActive

func PrometheusPatchRuleActive(rule PrometheusPatchRule, reason, message string) PrometheusPatchRule

PrometheusPatchRuleActive

func PrometheusPatchRuleNoPatchApplied

func PrometheusPatchRuleNoPatchApplied(rule PrometheusPatchRule, reason, message string) PrometheusPatchRule

PrometheusPatchRuleNoPatchApplied

func PrometheusPatchRuleNotActive

func PrometheusPatchRuleNotActive(rule PrometheusPatchRule, reason, message string) PrometheusPatchRule

PrometheusPatchRuleNotActive

func PrometheusPatchRulePatchApplied

func PrometheusPatchRulePatchApplied(rule PrometheusPatchRule, reason string) PrometheusPatchRule

PrometheusPatchRulePatchApplied

func (*PrometheusPatchRule) DeepCopy

func (in *PrometheusPatchRule) DeepCopy() *PrometheusPatchRule

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

func (*PrometheusPatchRule) DeepCopyInto

func (in *PrometheusPatchRule) DeepCopyInto(out *PrometheusPatchRule)

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

func (*PrometheusPatchRule) DeepCopyObject

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

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

func (*PrometheusPatchRule) GetStatusConditions

func (in *PrometheusPatchRule) GetStatusConditions() *[]metav1.Condition

GetStatusConditions returns a pointer to the Status.Conditions slice

type PrometheusPatchRuleList

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

PrometheusPatchRuleList contains a list of PrometheusPatchRule

func (*PrometheusPatchRuleList) DeepCopy

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

func (*PrometheusPatchRuleList) DeepCopyInto

func (in *PrometheusPatchRuleList) DeepCopyInto(out *PrometheusPatchRuleList)

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

func (*PrometheusPatchRuleList) DeepCopyObject

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

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

type PrometheusPatchRuleSpec

type PrometheusPatchRuleSpec struct {
	// Prometheus holds information about where to find prometheus
	// +required
	Prometheus PrometheusSpec `json:"prometheus"`

	// Interval is the duration in which the expression gets evaluated
	// +required
	Interval metav1.Duration `json:"interval,omitempty"`

	// Expression is the prometheus .query
	// +required
	Expr string `json:"expr,omitempty"`

	// For is a durstion for how long the rule should be in pending before apply patches.
	// +required
	For metav1.Duration `json:"for,omitempty"`

	// .JSON6902Patches define to what target are applied what patches
	// +required
	JSON6902Patches []JSON6902Patch `json:"json6902Patches,omitempty"`

	// Suspend may suspend reconciliation of the resource.
	// +optional
	Suspend bool `json:"suspend,omitempty"`
}

PrometheusPatchRuleSpec defines the desired state of PrometheusPatchRule

func (*PrometheusPatchRuleSpec) DeepCopy

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

func (*PrometheusPatchRuleSpec) DeepCopyInto

func (in *PrometheusPatchRuleSpec) DeepCopyInto(out *PrometheusPatchRuleSpec)

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

type PrometheusPatchRuleStatus

type PrometheusPatchRuleStatus struct {
	// Conditions holds the conditions for the PrometheusPatchRule.
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

PrometheusPatchRuleStatus defines the observed state of PrometheusPatchRule

func (*PrometheusPatchRuleStatus) DeepCopy

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

func (*PrometheusPatchRuleStatus) DeepCopyInto

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

type PrometheusSpec

type PrometheusSpec struct {
	Address string `json:"address"`
}

PrometheusSpec contains specs for accessing prometheus

func (*PrometheusSpec) DeepCopy

func (in *PrometheusSpec) DeepCopy() *PrometheusSpec

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

func (*PrometheusSpec) DeepCopyInto

func (in *PrometheusSpec) DeepCopyInto(out *PrometheusSpec)

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

type Selector

type Selector struct {
	// Group is the API group to select resources from.
	// Together with Version and Kind it is capable of unambiguously identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Group string `json:"group,omitempty"`

	// Version of the API Group to select resources from.
	// Together with Group and Kind it is capable of unambiguously identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Version string `json:"version,omitempty"`

	// Kind of the API Group to select resources from.
	// Together with Group and Version it is capable of unambiguously
	// identifying and/or selecting resources.
	// https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
	// +optional
	Kind string `json:"kind,omitempty"`

	// Namespace to select resources from.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Name to match resources with.
	// +optional
	Name string `json:"name,omitempty"`

	// LabelSelector is a string that follows the label selection expression
	// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
	// It matches with the resource labels.
	// +optional
	LabelSelector string `json:"labelSelector,omitempty"`
}

Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

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

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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