v1beta1

package
v1.116.0 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: 6 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=customize.core.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "customize.core.cnrm.cloud.google.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

	ControllerResourceGroupVersionKind = schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: GroupVersion.Version,
		Kind:    "ControllerResource",
	}

	NamespacedControllerResourceGroupVersionKind = schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: GroupVersion.Version,
		Kind:    "NamespacedControllerResource",
	}

	ValidatingWebhookConfigurationCustomizationGroupVersionKind = schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: GroupVersion.Version,
		Kind:    "ValidatingWebhookConfigurationCustomization",
	}

	MutatingWebhookConfigurationCustomizationGroupVersionKind = schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: GroupVersion.Version,
		Kind:    "MutatingWebhookConfigurationCustomization",
	}
)

Functions

This section is empty.

Types

type ContainerResourceSpec

type ContainerResourceSpec struct {
	// The name of the container whose resource requirements will be customized.
	// +kubebuilder:validation:Enum=manager;webhook;deletiondefender;prom-to-sd;recorder;unmanageddetector
	// Required
	Name string `json:"name"`
	// Resources specifies the resource customization of this container.
	// Required
	Resources ResourceRequirements `json:"resources"`
}

ContainerResourceSpec is the specification of the resource customization for a container of a config connector controller.

func (*ContainerResourceSpec) DeepCopy

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

func (*ContainerResourceSpec) DeepCopyInto

func (in *ContainerResourceSpec) DeepCopyInto(out *ContainerResourceSpec)

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

type ControllerResource

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

	Spec   ControllerResourceSpec   `json:"spec"`
	Status ControllerResourceStatus `json:"status,omitempty"`
}

ControllerResource is the Schema for resource customization API for config connector controllers.

func (*ControllerResource) DeepCopy

func (in *ControllerResource) DeepCopy() *ControllerResource

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

func (*ControllerResource) DeepCopyInto

func (in *ControllerResource) DeepCopyInto(out *ControllerResource)

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

func (*ControllerResource) DeepCopyObject

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

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

func (*ControllerResource) SetCommonStatus

func (c *ControllerResource) SetCommonStatus(s addonv1alpha1.CommonStatus)

type ControllerResourceList

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

ControllerResourceList contains a list of ControllerResource

func (*ControllerResourceList) DeepCopy

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

func (*ControllerResourceList) DeepCopyInto

func (in *ControllerResourceList) DeepCopyInto(out *ControllerResourceList)

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

func (*ControllerResourceList) DeepCopyObject

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

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

type ControllerResourceSpec

type ControllerResourceSpec struct {
	// The list of containers whose resource requirements to be customized.
	// +optional
	Containers []ContainerResourceSpec `json:"containers,omitempty"`
	// The number of desired replicas of the config connector controller.
	// This field takes effect only if the controller name is "cnrm-webhook-manager".
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

ControllerResourceSpec is the specification of the resource customization for containers of a config connector controller.

func (*ControllerResourceSpec) DeepCopy

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

func (*ControllerResourceSpec) DeepCopyInto

func (in *ControllerResourceSpec) DeepCopyInto(out *ControllerResourceSpec)

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

type ControllerResourceStatus

type ControllerResourceStatus struct {
	addonv1alpha1.CommonStatus `json:",inline"`
}

ControllerResourceStatus defines the observed state of ControllerResource.

func (*ControllerResourceStatus) DeepCopy

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

func (*ControllerResourceStatus) DeepCopyInto

func (in *ControllerResourceStatus) DeepCopyInto(out *ControllerResourceStatus)

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

type MutatingWebhookConfigurationCustomization

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

	Spec   WebhookConfigurationCustomizationSpec   `json:"spec"`
	Status WebhookConfigurationCustomizationStatus `json:"status,omitempty"`
}

MutatingWebhookConfigurationCustomization is the Schema for customizing the mutating webhook configurations in config connector.

func (*MutatingWebhookConfigurationCustomization) DeepCopy

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

func (*MutatingWebhookConfigurationCustomization) DeepCopyInto

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

func (*MutatingWebhookConfigurationCustomization) DeepCopyObject

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

func (*MutatingWebhookConfigurationCustomization) SetCommonStatus

type MutatingWebhookConfigurationCustomizationList

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

MutatingWebhookConfigurationCustomizationList contains a list of MutatingWebhookConfigurationTimeout.

func (*MutatingWebhookConfigurationCustomizationList) DeepCopy

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

func (*MutatingWebhookConfigurationCustomizationList) DeepCopyInto

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

func (*MutatingWebhookConfigurationCustomizationList) DeepCopyObject

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

type NamespacedControllerResource

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

	Spec   NamespacedControllerResourceSpec   `json:"spec"`
	Status NamespacedControllerResourceStatus `json:"status,omitempty"`
}

NamespacedControllerResource is the Schema for resource customization API for namespaced config connector controllers.

func (*NamespacedControllerResource) DeepCopy

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

func (*NamespacedControllerResource) DeepCopyInto

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

func (*NamespacedControllerResource) DeepCopyObject

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

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

func (*NamespacedControllerResource) SetCommonStatus

type NamespacedControllerResourceList

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

NamespacedControllerResourceList contains a list of NamespacedControllerResource

func (*NamespacedControllerResourceList) DeepCopy

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

func (*NamespacedControllerResourceList) DeepCopyInto

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

func (*NamespacedControllerResourceList) DeepCopyObject

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

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

type NamespacedControllerResourceSpec

type NamespacedControllerResourceSpec struct {
	// The list of containers whose resource requirements to be customized.
	// Required
	Containers []ContainerResourceSpec `json:"containers"`
}

NamespacedControllerResourceSpec is the specification of the resource customization for containers of a namespaced config connector controller.

func (*NamespacedControllerResourceSpec) DeepCopy

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

func (*NamespacedControllerResourceSpec) DeepCopyInto

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

type NamespacedControllerResourceStatus

type NamespacedControllerResourceStatus struct {
	addonv1alpha1.CommonStatus `json:",inline"`
}

NamespacedControllerResourceStatus defines the observed state of NamespacedControllerResource.

func (*NamespacedControllerResourceStatus) DeepCopy

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

func (*NamespacedControllerResourceStatus) DeepCopyInto

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

type ResourceRequirements added in v1.113.0

type ResourceRequirements struct {
	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Limits corev1.ResourceList `json:"limits,omitempty" protobuf:"bytes,1,rep,name=limits,casttype=ResourceList,castkey=ResourceName"`
	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value. Requests cannot exceed Limits.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Requests corev1.ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"`
}

ResourceRequirements describes the compute resource requirements that ContainerResourceSpec can leverage. It is a local copy of ResourceRequirements in k8s.io/api/core/v1 containing a subset of its fields.

func (*ResourceRequirements) DeepCopy added in v1.113.0

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

func (*ResourceRequirements) DeepCopyInto added in v1.113.0

func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)

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

type ValidatingWebhookConfigurationCustomization

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

	Spec   WebhookConfigurationCustomizationSpec   `json:"spec"`
	Status WebhookConfigurationCustomizationStatus `json:"status,omitempty"`
}

ValidatingWebhookConfigurationCustomization is the Schema for customizing the validating webhook configurations in config connector.

func (*ValidatingWebhookConfigurationCustomization) DeepCopy

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

func (*ValidatingWebhookConfigurationCustomization) DeepCopyInto

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

func (*ValidatingWebhookConfigurationCustomization) DeepCopyObject

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

func (*ValidatingWebhookConfigurationCustomization) SetCommonStatus

type ValidatingWebhookConfigurationCustomizationList

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

ValidatingWebhookConfigurationCustomizationList contains a list of ValidatingWebhookConfigurationTimeout.

func (*ValidatingWebhookConfigurationCustomizationList) DeepCopy

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

func (*ValidatingWebhookConfigurationCustomizationList) DeepCopyInto

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

func (*ValidatingWebhookConfigurationCustomizationList) DeepCopyObject

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

type WebhookConfigurationCustomizationSpec

type WebhookConfigurationCustomizationSpec struct {
	// The list of webhooks whose configuration to be customized.
	// Required
	Webhooks []WebhookCustomizationSpec `json:"webhooks"`
}

WebhookConfigurationCustomizationSpec is the specification for customizing the webhooks of a config connector webhook configuration.

func (*WebhookConfigurationCustomizationSpec) DeepCopy

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

func (*WebhookConfigurationCustomizationSpec) DeepCopyInto

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

type WebhookConfigurationCustomizationStatus

type WebhookConfigurationCustomizationStatus struct {
	addonv1alpha1.CommonStatus `json:",inline"`
}

WebhookConfigurationCustomizationStatus defines the observed state of ValidatingWebhookConfigurationCustomization and MutatingWebhookConfigurationCustomization.

func (*WebhookConfigurationCustomizationStatus) DeepCopy

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

func (*WebhookConfigurationCustomizationStatus) DeepCopyInto

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

type WebhookCustomizationSpec

type WebhookCustomizationSpec struct {
	// The name of the webhook. Do not include the `.cnrm.cloud.google.com` suffix.
	// +kubebuilder:validation:Enum=abandon-on-uninstall;deny-immutable-field-updates;deny-unknown-fields;iam-validation;resource-validation;container-annotation-handler;generic-defaulter;iam-defaulter;management-conflict-annotation-defaulter
	// Required
	Name string `json:"name"`
	// TimeoutSeconds customizes the timeout of the webhook.
	// The timeout value must be between 1 and 30 seconds.
	// The default timeout in Kubernetes is 10 seconds.
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=30
	// Required
	TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}

WebhookCustomizationSpec is the specification for customizing for a specific webhook in config connector.

func (*WebhookCustomizationSpec) DeepCopy

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

func (*WebhookCustomizationSpec) DeepCopyInto

func (in *WebhookCustomizationSpec) DeepCopyInto(out *WebhookCustomizationSpec)

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