v1beta1

package
v3.9.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the status v1beta1 API group +kubebuilder:object:generate=true +groupName=status.gatekeeper.sh

Index

Constants

View Source
const (
	ConstraintNameLabel         = "internal.gatekeeper.sh/constraint-name"
	ConstraintKindLabel         = "internal.gatekeeper.sh/constraint-kind"
	ConstraintTemplateNameLabel = "internal.gatekeeper.sh/constrainttemplate-name"
	MutatorNameLabel            = "internal.gatekeeper.sh/mutator-name"
	MutatorKindLabel            = "internal.gatekeeper.sh/mutator-kind"
	PodLabel                    = "internal.gatekeeper.sh/pod"
)

Label keys used for internal gatekeeper operations.

View Source
const ConstraintsGroup = "constraints.gatekeeper.sh"

ConstraintsGroup is the API Group for Gatekeeper Constraints.

View Source
const MutationsGroup = "mutations.gatekeeper.sh"

MutationsGroup is the API Group for Gatekeeper Mutators.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "status.gatekeeper.sh", 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
)

Functions

func KeyForConstraint

func KeyForConstraint(id string, constraint *unstructured.Unstructured) (string, error)

KeyForConstraint returns a unique status object name given the Pod ID and a constraint object.

func KeyForConstraintTemplate

func KeyForConstraintTemplate(id string, templateName string) (string, error)

KeyForConstraintTemplate returns a unique status object name given the Pod ID and a template object.

func KeyForMutatorID

func KeyForMutatorID(id string, mID mtypes.ID) (string, error)

KeyForMutatorID returns a unique status object name given the Pod ID and a mutator object.

Types

type ConstraintPodStatus

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

	Status ConstraintPodStatusStatus `json:"status,omitempty"`
}

ConstraintPodStatus is the Schema for the constraintpodstatuses API.

func NewConstraintStatusForPod

func NewConstraintStatusForPod(pod *corev1.Pod, constraint *unstructured.Unstructured, scheme *runtime.Scheme) (*ConstraintPodStatus, error)

NewConstraintStatusForPod returns a constraint status object that has been initialized with the bare minimum of fields to make it functional with the constraint status controller.

func (*ConstraintPodStatus) DeepCopy

func (in *ConstraintPodStatus) DeepCopy() *ConstraintPodStatus

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

func (*ConstraintPodStatus) DeepCopyInto

func (in *ConstraintPodStatus) DeepCopyInto(out *ConstraintPodStatus)

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

func (*ConstraintPodStatus) DeepCopyObject

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

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

type ConstraintPodStatusList

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

ConstraintPodStatusList contains a list of ConstraintPodStatus.

func (*ConstraintPodStatusList) DeepCopy

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

func (*ConstraintPodStatusList) DeepCopyInto

func (in *ConstraintPodStatusList) DeepCopyInto(out *ConstraintPodStatusList)

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

func (*ConstraintPodStatusList) DeepCopyObject

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

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

type ConstraintPodStatusStatus

type ConstraintPodStatusStatus struct {
	ID string `json:"id,omitempty"`
	// Storing the constraint UID allows us to detect drift, such as
	// when a constraint has been recreated after its CRD was deleted
	// out from under it, interrupting the watch
	ConstraintUID      types.UID `json:"constraintUID,omitempty"`
	Operations         []string  `json:"operations,omitempty"`
	Enforced           bool      `json:"enforced,omitempty"`
	Errors             []Error   `json:"errors,omitempty"`
	ObservedGeneration int64     `json:"observedGeneration,omitempty"`
}

ConstraintPodStatusStatus defines the observed state of ConstraintPodStatus.

func (*ConstraintPodStatusStatus) DeepCopy

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

func (*ConstraintPodStatusStatus) DeepCopyInto

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

type ConstraintTemplatePodStatus

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

	Status ConstraintTemplatePodStatusStatus `json:"status,omitempty"`
}

ConstraintTemplatePodStatus is the Schema for the constrainttemplatepodstatuses API.

func NewConstraintTemplateStatusForPod

func NewConstraintTemplateStatusForPod(pod *corev1.Pod, templateName string, scheme *runtime.Scheme) (*ConstraintTemplatePodStatus, error)

NewConstraintTemplateStatusForPod returns a constraint template status object that has been initialized with the bare minimum of fields to make it functional with the constraint template status controller.

func (*ConstraintTemplatePodStatus) DeepCopy

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

func (*ConstraintTemplatePodStatus) DeepCopyInto

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

func (*ConstraintTemplatePodStatus) DeepCopyObject

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

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

type ConstraintTemplatePodStatusList

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

ConstraintTemplatePodStatusList contains a list of ConstraintTemplatePodStatus.

func (*ConstraintTemplatePodStatusList) DeepCopy

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

func (*ConstraintTemplatePodStatusList) DeepCopyInto

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

func (*ConstraintTemplatePodStatusList) DeepCopyObject

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

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

type ConstraintTemplatePodStatusStatus

type ConstraintTemplatePodStatusStatus struct {
	// Important: Run "make" to regenerate code after modifying this file
	ID                 string                             `json:"id,omitempty"`
	TemplateUID        types.UID                          `json:"templateUID,omitempty"`
	Operations         []string                           `json:"operations,omitempty"`
	ObservedGeneration int64                              `json:"observedGeneration,omitempty"`
	Errors             []*templatesv1beta1.CreateCRDError `json:"errors,omitempty"`
}

ConstraintTemplatePodStatusStatus defines the observed state of ConstraintTemplatePodStatus.

func (*ConstraintTemplatePodStatusStatus) DeepCopy

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

func (*ConstraintTemplatePodStatusStatus) DeepCopyInto

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

type Error

type Error struct {
	Code     string `json:"code"`
	Message  string `json:"message"`
	Location string `json:"location,omitempty"`
}

Error represents a single error caught while adding a constraint to OPA.

func (*Error) DeepCopy

func (in *Error) DeepCopy() *Error

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

func (*Error) DeepCopyInto

func (in *Error) DeepCopyInto(out *Error)

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

type MutatorError

type MutatorError struct {
	// Type indicates a specific class of error for use by controller code.
	// If not present, the error should be treated as not matching any known type.
	Type    string `json:"type,omitempty"`
	Message string `json:"message"`
}

MutatorError represents a single error caught while adding a mutator to a system.

func (*MutatorError) DeepCopy

func (in *MutatorError) DeepCopy() *MutatorError

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

func (*MutatorError) DeepCopyInto

func (in *MutatorError) DeepCopyInto(out *MutatorError)

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

type MutatorPodStatus

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

	Status MutatorPodStatusStatus `json:"status,omitempty"`
}

MutatorPodStatus is the Schema for the mutationpodstatuses API.

func NewMutatorStatusForPod

func NewMutatorStatusForPod(pod *corev1.Pod, mutatorID mtypes.ID, scheme *runtime.Scheme) (*MutatorPodStatus, error)

NewMutatorStatusForPod returns a mutator status object that has been initialized with the bare minimum of fields to make it functional with the mutator status controller.

func (*MutatorPodStatus) DeepCopy

func (in *MutatorPodStatus) DeepCopy() *MutatorPodStatus

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

func (*MutatorPodStatus) DeepCopyInto

func (in *MutatorPodStatus) DeepCopyInto(out *MutatorPodStatus)

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

func (*MutatorPodStatus) DeepCopyObject

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

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

type MutatorPodStatusList

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

MutatorPodStatusList contains a list of MutatorPodStatus.

func (*MutatorPodStatusList) DeepCopy

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

func (*MutatorPodStatusList) DeepCopyInto

func (in *MutatorPodStatusList) DeepCopyInto(out *MutatorPodStatusList)

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

func (*MutatorPodStatusList) DeepCopyObject

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

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

type MutatorPodStatusStatus

type MutatorPodStatusStatus struct {
	ID string `json:"id,omitempty"`
	// Storing the mutator UID allows us to detect drift, such as
	// when a mutator has been recreated after its CRD was deleted
	// out from under it, interrupting the watch
	MutatorUID         types.UID      `json:"mutatorUID,omitempty"`
	Operations         []string       `json:"operations,omitempty"`
	Enforced           bool           `json:"enforced,omitempty"`
	Errors             []MutatorError `json:"errors,omitempty"`
	ObservedGeneration int64          `json:"observedGeneration,omitempty"`
}

MutatorPodStatusStatus defines the observed state of MutatorPodStatus.

func (*MutatorPodStatusStatus) DeepCopy

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

func (*MutatorPodStatusStatus) DeepCopyInto

func (in *MutatorPodStatusStatus) DeepCopyInto(out *MutatorPodStatusStatus)

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