v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the redhatcop v1alpha1 API group +kubebuilder:object:generate=true +groupName=redhatcop.redhat.io

Index

Constants

View Source
const PatchControllerFinalizerName = "patch-controller"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "redhatcop.redhat.io", Version: "v1alpha1"}

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

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

	Spec   PatchSpec   `json:"spec,omitempty"`
	Status PatchStatus `json:"status,omitempty"`
}

Patch is the Schema for the patches API

func (*Patch) DeepCopy

func (in *Patch) DeepCopy() *Patch

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

func (*Patch) DeepCopyInto

func (in *Patch) DeepCopyInto(out *Patch)

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

func (*Patch) DeepCopyObject

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

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

func (*Patch) Default

func (r *Patch) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Patch) SetupWebhookWithManager

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

func (*Patch) ValidateCreate

func (r *Patch) ValidateCreate() error

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

func (*Patch) ValidateDelete

func (r *Patch) ValidateDelete() error

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

func (*Patch) ValidateUpdate

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

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

type PatchList

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

PatchList contains a list of Patch

func (*PatchList) DeepCopy

func (in *PatchList) DeepCopy() *PatchList

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

func (*PatchList) DeepCopyInto

func (in *PatchList) DeepCopyInto(out *PatchList)

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

func (*PatchList) DeepCopyObject

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

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

type PatchSpec

type PatchSpec struct {

	// Patches is a list of patches that should be enforced at runtime.
	// +kubebuilder:validation:Required
	Patches map[string]utilsv1alpha1.PatchSpec `json:"patches,omitempty"`

	// ServiceAccountRef is the service account to be used to run the controllers associated with this configuration
	// +kubebuilder:validation:Required
	// +kubebuilder:default={"name": "default"}
	ServiceAccountRef corev1.LocalObjectReference `json:"serviceAccountRef,omitempty"`
}

PatchSpec defines the desired state of Patch

func (*PatchSpec) DeepCopy

func (in *PatchSpec) DeepCopy() *PatchSpec

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

func (*PatchSpec) DeepCopyInto

func (in *PatchSpec) DeepCopyInto(out *PatchSpec)

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

type PatchStatus

type PatchStatus struct {
	// ReconcileStatus this is the general status of the main reconciler
	// +kubebuilder:validation:Optional
	// +listType=map
	// +listMapKey=type
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	//PatchStatuses contains the reconcile status for each of the managed patch
	// +kubebuilder:validation:Optional
	PatchStatuses map[string]utilsv1alpha1.ConditionMap `json:"patchStatuses,omitempty"`
}

PatchStatus defines the observed state of Patch

func (*PatchStatus) DeepCopy

func (in *PatchStatus) DeepCopy() *PatchStatus

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

func (*PatchStatus) DeepCopyInto

func (in *PatchStatus) DeepCopyInto(out *PatchStatus)

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