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=webhook.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: webhook.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 CustomVariable

type CustomVariable struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CustomVariableSpec   `json:"spec,omitempty"`
	Status            CustomVariableStatus `json:"status,omitempty"`
}

func (*CustomVariable) DeepCopy

func (in *CustomVariable) DeepCopy() *CustomVariable

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

func (*CustomVariable) DeepCopyInto

func (in *CustomVariable) DeepCopyInto(out *CustomVariable)

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

func (*CustomVariable) DeepCopyObject

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

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

func (*CustomVariable) SetupWebhookWithManager

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

func (*CustomVariable) ValidateCreate

func (r *CustomVariable) ValidateCreate() error

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

func (*CustomVariable) ValidateDelete

func (r *CustomVariable) ValidateDelete() error

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

func (*CustomVariable) ValidateUpdate

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

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

type CustomVariableList

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

CustomVariableList is a list of CustomVariables

func (*CustomVariableList) DeepCopy

func (in *CustomVariableList) DeepCopy() *CustomVariableList

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

func (*CustomVariableList) DeepCopyInto

func (in *CustomVariableList) DeepCopyInto(out *CustomVariableList)

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

func (*CustomVariableList) DeepCopyObject

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

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

type CustomVariableSpec

type CustomVariableSpec struct {
	State *CustomVariableSpecResource `json:"state,omitempty" tf:"-"`

	Resource CustomVariableSpecResource `json:"resource" tf:"resource"`

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

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

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

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

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

func (*CustomVariableSpec) DeepCopy

func (in *CustomVariableSpec) DeepCopy() *CustomVariableSpec

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

func (*CustomVariableSpec) DeepCopyInto

func (in *CustomVariableSpec) DeepCopyInto(out *CustomVariableSpec)

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

type CustomVariableSpecResource

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

	// Whether the custom variable is secret or not.
	IsSecret *bool `json:"isSecret" tf:"is_secret"`
	// The name of the variable. It corresponds with `<CUSTOM_VARIABLE_NAME>`.
	Name *string `json:"name" tf:"name"`
	// The value of the custom variable.
	Value *string `json:"-" sensitive:"true" tf:"value"`
}

func (*CustomVariableSpecResource) DeepCopy

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

func (*CustomVariableSpecResource) DeepCopyInto

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

type CustomVariableStatus

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

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

func (*CustomVariableStatus) DeepCopyInto

func (in *CustomVariableStatus) DeepCopyInto(out *CustomVariableStatus)

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

type Webhook

type Webhook struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              WebhookSpec   `json:"spec,omitempty"`
	Status            WebhookStatus `json:"status,omitempty"`
}

func (*Webhook) DeepCopy

func (in *Webhook) DeepCopy() *Webhook

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

func (*Webhook) DeepCopyInto

func (in *Webhook) DeepCopyInto(out *Webhook)

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

func (*Webhook) DeepCopyObject

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

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

func (*Webhook) SetupWebhookWithManager

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

func (*Webhook) ValidateCreate

func (r *Webhook) ValidateCreate() error

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

func (*Webhook) ValidateDelete

func (r *Webhook) ValidateDelete() error

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

func (*Webhook) ValidateUpdate

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

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

type WebhookList

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

WebhookList is a list of Webhooks

func (*WebhookList) DeepCopy

func (in *WebhookList) DeepCopy() *WebhookList

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

func (*WebhookList) DeepCopyInto

func (in *WebhookList) DeepCopyInto(out *WebhookList)

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

func (*WebhookList) DeepCopyObject

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

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

type WebhookSpec

type WebhookSpec struct {
	State *WebhookSpecResource `json:"state,omitempty" tf:"-"`

	Resource WebhookSpecResource `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 (*WebhookSpec) DeepCopy

func (in *WebhookSpec) DeepCopy() *WebhookSpec

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

func (*WebhookSpec) DeepCopyInto

func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec)

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

type WebhookSpecResource

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

	// The headers attached to the webhook.
	// +optional
	CustomHeaders *string `json:"customHeaders,omitempty" tf:"custom_headers"`
	// Encoding type.
	// +optional
	EncodeAs *string `json:"encodeAs,omitempty" tf:"encode_as"`
	// The name of the webhook. It corresponds with `<WEBHOOK_NAME>`.
	Name *string `json:"name" tf:"name"`
	// The payload of the webhook.
	// +optional
	Payload *string `json:"payload,omitempty" tf:"payload"`
	// The URL of the webhook.
	Url *string `json:"url" tf:"url"`
}

func (*WebhookSpecResource) DeepCopy

func (in *WebhookSpecResource) DeepCopy() *WebhookSpecResource

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

func (*WebhookSpecResource) DeepCopyInto

func (in *WebhookSpecResource) DeepCopyInto(out *WebhookSpecResource)

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

type WebhookStatus

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

func (in *WebhookStatus) DeepCopy() *WebhookStatus

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

func (*WebhookStatus) DeepCopyInto

func (in *WebhookStatus) DeepCopyInto(out *WebhookStatus)

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