v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=slo.dynatrace.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: slo.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Slo

type Slo struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SloSpec   `json:"spec,omitempty"`
	Status            SloStatus `json:"status,omitempty"`
}

func (*Slo) DeepCopy

func (in *Slo) DeepCopy() *Slo

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

func (*Slo) DeepCopyInto

func (in *Slo) DeepCopyInto(out *Slo)

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

func (*Slo) DeepCopyObject

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

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

func (*Slo) SetupWebhookWithManager

func (r *Slo) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Slo) ValidateCreate

func (r *Slo) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Slo) ValidateDelete

func (r *Slo) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Slo) ValidateUpdate

func (r *Slo) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SloList

type SloList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Slo CRD objects
	Items []Slo `json:"items,omitempty"`
}

SloList is a list of Slos

func (*SloList) DeepCopy

func (in *SloList) DeepCopy() *SloList

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

func (*SloList) DeepCopyInto

func (in *SloList) DeepCopyInto(out *SloList)

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

func (*SloList) DeepCopyObject

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

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

type SloSpec

type SloSpec struct {
	State *SloSpecResource `json:"state,omitempty" tf:"-"`

	Resource SloSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*SloSpec) DeepCopy

func (in *SloSpec) DeepCopy() *SloSpec

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

func (*SloSpec) DeepCopyInto

func (in *SloSpec) DeepCopyInto(out *SloSpec)

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

type SloSpecResource

type SloSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The total count metric (the denominator in rate calculation)
	// +optional
	Denominator *string `json:"denominator,omitempty" tf:"denominator"`
	// The custom description of the SLO (optional)
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The SLO is enabled (`false`) or disabled (`true`)
	// +optional
	Disabled *bool `json:"disabled,omitempty" tf:"disabled"`
	// The evaluation type of the SLO. Currently only `AGGREGATE` is supported
	Evaluation *string `json:"evaluation" tf:"evaluation"`
	// The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
	// +optional
	Filter *string `json:"filter,omitempty" tf:"filter"`
	// The percentage-based metric expression for the calculation of the SLO
	// +optional
	MetricExpression *string `json:"metricExpression,omitempty" tf:"metric_expression"`
	// The name of the rule
	Name *string `json:"name" tf:"name"`
	// The metric for the count of successes (the numerator in rate calculation)
	// +optional
	// Deprecated
	Numerator *string `json:"numerator,omitempty" tf:"numerator"`
	// The percentage-based metric for the calculation of the SLO
	// +optional
	Rate *string `json:"rate,omitempty" tf:"rate"`
	// The target value of the SLO
	Target *float64 `json:"target" tf:"target"`
	// The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
	Timeframe *string `json:"timeframe" tf:"timeframe"`
	// The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
	Warning *float64 `json:"warning" tf:"warning"`
}

func (*SloSpecResource) DeepCopy

func (in *SloSpecResource) DeepCopy() *SloSpecResource

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

func (*SloSpecResource) DeepCopyInto

func (in *SloSpecResource) DeepCopyInto(out *SloSpecResource)

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

type SloStatus

type SloStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*SloStatus) DeepCopy

func (in *SloStatus) DeepCopy() *SloStatus

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

func (*SloStatus) DeepCopyInto

func (in *SloStatus) DeepCopyInto(out *SloStatus)

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