v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+groupName=slo.datadog.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 Correction

type Correction struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CorrectionSpec   `json:"spec,omitempty"`
	Status            CorrectionStatus `json:"status,omitempty"`
}

func (*Correction) DeepCopy

func (in *Correction) DeepCopy() *Correction

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

func (*Correction) DeepCopyInto

func (in *Correction) DeepCopyInto(out *Correction)

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

func (*Correction) DeepCopyObject

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

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

func (*Correction) SetupWebhookWithManager

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

func (*Correction) ValidateCreate

func (r *Correction) ValidateCreate() error

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

func (*Correction) ValidateDelete

func (r *Correction) ValidateDelete() error

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

func (*Correction) ValidateUpdate

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

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

type CorrectionList

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

CorrectionList is a list of Corrections

func (*CorrectionList) DeepCopy

func (in *CorrectionList) DeepCopy() *CorrectionList

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

func (*CorrectionList) DeepCopyInto

func (in *CorrectionList) DeepCopyInto(out *CorrectionList)

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

func (*CorrectionList) DeepCopyObject

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

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

type CorrectionSpec

type CorrectionSpec struct {
	State *CorrectionSpecResource `json:"state,omitempty" tf:"-"`

	Resource CorrectionSpecResource `json:"resource" tf:"resource"`

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

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

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

func (*CorrectionSpec) DeepCopy

func (in *CorrectionSpec) DeepCopy() *CorrectionSpec

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

func (*CorrectionSpec) DeepCopyInto

func (in *CorrectionSpec) DeepCopyInto(out *CorrectionSpec)

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

type CorrectionSpecResource

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

	// Category the SLO correction belongs to.
	Category *string `json:"category" tf:"category"`
	// Description of the correction being made.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Ending time of the correction in epoch seconds.
	End *int64 `json:"end" tf:"end"`
	// ID of the SLO that this correction will be applied to.
	SloID *string `json:"sloID" tf:"slo_id"`
	// Starting time of the correction in epoch seconds.
	Start *int64 `json:"start" tf:"start"`
	// The timezone to display in the UI for the correction times (defaults to "UTC")
	// +optional
	Timezone *string `json:"timezone,omitempty" tf:"timezone"`
}

func (*CorrectionSpecResource) DeepCopy

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

func (*CorrectionSpecResource) DeepCopyInto

func (in *CorrectionSpecResource) DeepCopyInto(out *CorrectionSpecResource)

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

type CorrectionStatus

type CorrectionStatus 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 (*CorrectionStatus) DeepCopy

func (in *CorrectionStatus) DeepCopy() *CorrectionStatus

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

func (*CorrectionStatus) DeepCopyInto

func (in *CorrectionStatus) DeepCopyInto(out *CorrectionStatus)

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