v1alpha1

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 6 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

This section is empty.

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 Resource

type Resource struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:pruning:PreserveUnknownFields
	Object runtime.RawExtension `json:"object"`
	// +kubebuilder:validation:Optional
	// +listType=set
	ExcludedPaths []string `json:"excludedPaths,omitempty"`
}

Resource represent a resource to be enforced +k8s:openapi-gen=true

func (*Resource) DeepCopy

func (in *Resource) DeepCopy() *Resource

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

func (*Resource) DeepCopyInto

func (in *Resource) DeepCopyInto(out *Resource)

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

type ResourceLocker

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

	Spec   ResourceLockerSpec   `json:"spec,omitempty"`
	Status ResourceLockerStatus `json:"status,omitempty"`
}

ResourceLocker Represents the intetion to create and enforce a set of resources and/or patches. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:JSONPath=".spec.serviceAccountRef.name",description="The service account used to create and enfoce these resources and patches, must have required permissions via RBAC",name="SERVICE ACCOUNT",type="string"

func (*ResourceLocker) DeepCopy

func (in *ResourceLocker) DeepCopy() *ResourceLocker

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

func (*ResourceLocker) DeepCopyInto

func (in *ResourceLocker) DeepCopyInto(out *ResourceLocker)

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

func (*ResourceLocker) DeepCopyObject

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

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

func (*ResourceLocker) GetEnforcingReconcileStatus

func (m *ResourceLocker) GetEnforcingReconcileStatus() apis.EnforcingReconcileStatus

func (*ResourceLocker) SetEnforcingReconcileStatus

func (m *ResourceLocker) SetEnforcingReconcileStatus(reconcileStatus apis.EnforcingReconcileStatus)

type ResourceLockerList

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

ResourceLockerList contains a list of ResourceLocker

func (*ResourceLockerList) DeepCopy

func (in *ResourceLockerList) DeepCopy() *ResourceLockerList

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

func (*ResourceLockerList) DeepCopyInto

func (in *ResourceLockerList) DeepCopyInto(out *ResourceLockerList)

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

func (*ResourceLockerList) DeepCopyObject

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

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

type ResourceLockerSpec

type ResourceLockerSpec struct {

	// +kubebuilder:validation:Optional
	// +listType=atomic
	Resources []Resource `json:"resources,omitempty"`

	// Patches is a list of patches that should be enforced at runtime.
	// +kubebuilder:validation:Optional
	// +patchMergeKey=id
	// +patchStrategy=merge
	// +listType="map"
	// +listMapKey="id"
	Patches []apis.Patch `json:"patches,omitempty" patchStrategy:"merge" patchMergeKey:"id"`

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

ResourceLockerSpec defines the desired state of ResourceLocker

func (*ResourceLockerSpec) DeepCopy

func (in *ResourceLockerSpec) DeepCopy() *ResourceLockerSpec

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

func (*ResourceLockerSpec) DeepCopyInto

func (in *ResourceLockerSpec) DeepCopyInto(out *ResourceLockerSpec)

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

type ResourceLockerStatus

type ResourceLockerStatus struct {
	apis.EnforcingReconcileStatus `json:",inline,omitempty"`
}

ResourceLockerStatus defines the observed state of ResourceLocker +k8s:openapi-gen=true

func (*ResourceLockerStatus) DeepCopy

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

func (*ResourceLockerStatus) DeepCopyInto

func (in *ResourceLockerStatus) DeepCopyInto(out *ResourceLockerStatus)

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