Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the templates v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/open-policy-agent/frameworks/constraint/pkg/core/templates +k8s:defaulter-gen=TypeMeta +groupName=templates.gatekeeper.sh
Package v1beta1 contains API Schema definitions for the templates v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/open-policy-agent/frameworks/constraint/pkg/apis/templates +k8s:defaulter-gen=TypeMeta +groupName=templates.gatekeeper.sh
Index ¶
- Variables
- func Convert_templates_ByPodStatus_To_v1beta1_ByPodStatus(in *templates.ByPodStatus, out *ByPodStatus, s conversion.Scope) error
- func Convert_templates_CRDSpec_To_v1beta1_CRDSpec(in *templates.CRDSpec, out *CRDSpec, s conversion.Scope) error
- func Convert_templates_CRD_To_v1beta1_CRD(in *templates.CRD, out *CRD, s conversion.Scope) error
- func Convert_templates_Code_To_v1beta1_Code(in *templates.Code, out *Code, s conversion.Scope) error
- func Convert_templates_ConstraintTemplateList_To_v1beta1_ConstraintTemplateList(in *templates.ConstraintTemplateList, out *ConstraintTemplateList, ...) error
- func Convert_templates_ConstraintTemplateSpec_To_v1beta1_ConstraintTemplateSpec(in *templates.ConstraintTemplateSpec, out *ConstraintTemplateSpec, ...) error
- func Convert_templates_ConstraintTemplateStatus_To_v1beta1_ConstraintTemplateStatus(in *templates.ConstraintTemplateStatus, out *ConstraintTemplateStatus, ...) error
- func Convert_templates_ConstraintTemplate_To_v1beta1_ConstraintTemplate(in *templates.ConstraintTemplate, out *ConstraintTemplate, s conversion.Scope) error
- func Convert_templates_CreateCRDError_To_v1beta1_CreateCRDError(in *templates.CreateCRDError, out *CreateCRDError, s conversion.Scope) error
- func Convert_templates_Names_To_v1beta1_Names(in *templates.Names, out *Names, s conversion.Scope) error
- func Convert_templates_Target_To_v1beta1_Target(in *templates.Target, out *Target, s conversion.Scope) error
- func Convert_templates_Validation_To_v1beta1_Validation(in *templates.Validation, out *Validation, s conversion.Scope) error
- func Convert_v1beta1_ByPodStatus_To_templates_ByPodStatus(in *ByPodStatus, out *templates.ByPodStatus, s conversion.Scope) error
- func Convert_v1beta1_CRDSpec_To_templates_CRDSpec(in *CRDSpec, out *templates.CRDSpec, s conversion.Scope) error
- func Convert_v1beta1_CRD_To_templates_CRD(in *CRD, out *templates.CRD, s conversion.Scope) error
- func Convert_v1beta1_Code_To_templates_Code(in *Code, out *templates.Code, s conversion.Scope) error
- func Convert_v1beta1_ConstraintTemplateList_To_templates_ConstraintTemplateList(in *ConstraintTemplateList, out *templates.ConstraintTemplateList, ...) error
- func Convert_v1beta1_ConstraintTemplateSpec_To_templates_ConstraintTemplateSpec(in *ConstraintTemplateSpec, out *templates.ConstraintTemplateSpec, ...) error
- func Convert_v1beta1_ConstraintTemplateStatus_To_templates_ConstraintTemplateStatus(in *ConstraintTemplateStatus, out *templates.ConstraintTemplateStatus, ...) error
- func Convert_v1beta1_ConstraintTemplate_To_templates_ConstraintTemplate(in *ConstraintTemplate, out *templates.ConstraintTemplate, s conversion.Scope) error
- func Convert_v1beta1_CreateCRDError_To_templates_CreateCRDError(in *CreateCRDError, out *templates.CreateCRDError, s conversion.Scope) error
- func Convert_v1beta1_Names_To_templates_Names(in *Names, out *templates.Names, s conversion.Scope) error
- func Convert_v1beta1_Target_To_templates_Target(in *Target, out *coreTemplates.Target, s conversion.Scope) error
- func Convert_v1beta1_Validation_To_templates_Validation(in *Validation, out *coreTemplates.Validation, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_ConstraintTemplate(obj *ConstraintTemplate)
- func SetObjectDefaults_ConstraintTemplate(in *ConstraintTemplate)
- func SetObjectDefaults_ConstraintTemplateList(in *ConstraintTemplateList)
- type ByPodStatus
- type CRD
- type CRDSpec
- type Code
- type ConstraintTemplate
- type ConstraintTemplateList
- type ConstraintTemplateSpec
- type ConstraintTemplateStatus
- type CreateCRDError
- type Names
- type Target
- type Validation
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: "templates.gatekeeper.sh", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds templates/v1beta1 types to a Scheme. AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func Convert_templates_ByPodStatus_To_v1beta1_ByPodStatus ¶
func Convert_templates_ByPodStatus_To_v1beta1_ByPodStatus(in *templates.ByPodStatus, out *ByPodStatus, s conversion.Scope) error
Convert_templates_ByPodStatus_To_v1beta1_ByPodStatus is an autogenerated conversion function.
func Convert_templates_CRDSpec_To_v1beta1_CRDSpec ¶
func Convert_templates_CRDSpec_To_v1beta1_CRDSpec(in *templates.CRDSpec, out *CRDSpec, s conversion.Scope) error
Convert_templates_CRDSpec_To_v1beta1_CRDSpec is an autogenerated conversion function.
func Convert_templates_CRD_To_v1beta1_CRD ¶
Convert_templates_CRD_To_v1beta1_CRD is an autogenerated conversion function.
func Convert_templates_Code_To_v1beta1_Code ¶
func Convert_templates_Code_To_v1beta1_Code(in *templates.Code, out *Code, s conversion.Scope) error
Convert_templates_Code_To_v1beta1_Code is an autogenerated conversion function.
func Convert_templates_ConstraintTemplateList_To_v1beta1_ConstraintTemplateList ¶
func Convert_templates_ConstraintTemplateList_To_v1beta1_ConstraintTemplateList(in *templates.ConstraintTemplateList, out *ConstraintTemplateList, s conversion.Scope) error
Convert_templates_ConstraintTemplateList_To_v1beta1_ConstraintTemplateList is an autogenerated conversion function.
func Convert_templates_ConstraintTemplateSpec_To_v1beta1_ConstraintTemplateSpec ¶
func Convert_templates_ConstraintTemplateSpec_To_v1beta1_ConstraintTemplateSpec(in *templates.ConstraintTemplateSpec, out *ConstraintTemplateSpec, s conversion.Scope) error
Convert_templates_ConstraintTemplateSpec_To_v1beta1_ConstraintTemplateSpec is an autogenerated conversion function.
func Convert_templates_ConstraintTemplateStatus_To_v1beta1_ConstraintTemplateStatus ¶
func Convert_templates_ConstraintTemplateStatus_To_v1beta1_ConstraintTemplateStatus(in *templates.ConstraintTemplateStatus, out *ConstraintTemplateStatus, s conversion.Scope) error
Convert_templates_ConstraintTemplateStatus_To_v1beta1_ConstraintTemplateStatus is an autogenerated conversion function.
func Convert_templates_ConstraintTemplate_To_v1beta1_ConstraintTemplate ¶
func Convert_templates_ConstraintTemplate_To_v1beta1_ConstraintTemplate(in *templates.ConstraintTemplate, out *ConstraintTemplate, s conversion.Scope) error
Convert_templates_ConstraintTemplate_To_v1beta1_ConstraintTemplate is an autogenerated conversion function.
func Convert_templates_CreateCRDError_To_v1beta1_CreateCRDError ¶
func Convert_templates_CreateCRDError_To_v1beta1_CreateCRDError(in *templates.CreateCRDError, out *CreateCRDError, s conversion.Scope) error
Convert_templates_CreateCRDError_To_v1beta1_CreateCRDError is an autogenerated conversion function.
func Convert_templates_Names_To_v1beta1_Names ¶
func Convert_templates_Names_To_v1beta1_Names(in *templates.Names, out *Names, s conversion.Scope) error
Convert_templates_Names_To_v1beta1_Names is an autogenerated conversion function.
func Convert_templates_Target_To_v1beta1_Target ¶
func Convert_templates_Target_To_v1beta1_Target(in *templates.Target, out *Target, s conversion.Scope) error
Convert_templates_Target_To_v1beta1_Target is an autogenerated conversion function.
func Convert_templates_Validation_To_v1beta1_Validation ¶
func Convert_templates_Validation_To_v1beta1_Validation(in *templates.Validation, out *Validation, s conversion.Scope) error
Convert_templates_Validation_To_v1beta1_Validation is an autogenerated conversion function.
func Convert_v1beta1_ByPodStatus_To_templates_ByPodStatus ¶
func Convert_v1beta1_ByPodStatus_To_templates_ByPodStatus(in *ByPodStatus, out *templates.ByPodStatus, s conversion.Scope) error
Convert_v1beta1_ByPodStatus_To_templates_ByPodStatus is an autogenerated conversion function.
func Convert_v1beta1_CRDSpec_To_templates_CRDSpec ¶
func Convert_v1beta1_CRDSpec_To_templates_CRDSpec(in *CRDSpec, out *templates.CRDSpec, s conversion.Scope) error
Convert_v1beta1_CRDSpec_To_templates_CRDSpec is an autogenerated conversion function.
func Convert_v1beta1_CRD_To_templates_CRD ¶
Convert_v1beta1_CRD_To_templates_CRD is an autogenerated conversion function.
func Convert_v1beta1_Code_To_templates_Code ¶
func Convert_v1beta1_Code_To_templates_Code(in *Code, out *templates.Code, s conversion.Scope) error
Convert_v1beta1_Code_To_templates_Code is an autogenerated conversion function.
func Convert_v1beta1_ConstraintTemplateList_To_templates_ConstraintTemplateList ¶
func Convert_v1beta1_ConstraintTemplateList_To_templates_ConstraintTemplateList(in *ConstraintTemplateList, out *templates.ConstraintTemplateList, s conversion.Scope) error
Convert_v1beta1_ConstraintTemplateList_To_templates_ConstraintTemplateList is an autogenerated conversion function.
func Convert_v1beta1_ConstraintTemplateSpec_To_templates_ConstraintTemplateSpec ¶
func Convert_v1beta1_ConstraintTemplateSpec_To_templates_ConstraintTemplateSpec(in *ConstraintTemplateSpec, out *templates.ConstraintTemplateSpec, s conversion.Scope) error
Convert_v1beta1_ConstraintTemplateSpec_To_templates_ConstraintTemplateSpec is an autogenerated conversion function.
func Convert_v1beta1_ConstraintTemplateStatus_To_templates_ConstraintTemplateStatus ¶
func Convert_v1beta1_ConstraintTemplateStatus_To_templates_ConstraintTemplateStatus(in *ConstraintTemplateStatus, out *templates.ConstraintTemplateStatus, s conversion.Scope) error
Convert_v1beta1_ConstraintTemplateStatus_To_templates_ConstraintTemplateStatus is an autogenerated conversion function.
func Convert_v1beta1_ConstraintTemplate_To_templates_ConstraintTemplate ¶
func Convert_v1beta1_ConstraintTemplate_To_templates_ConstraintTemplate(in *ConstraintTemplate, out *templates.ConstraintTemplate, s conversion.Scope) error
Convert_v1beta1_ConstraintTemplate_To_templates_ConstraintTemplate is an autogenerated conversion function.
func Convert_v1beta1_CreateCRDError_To_templates_CreateCRDError ¶
func Convert_v1beta1_CreateCRDError_To_templates_CreateCRDError(in *CreateCRDError, out *templates.CreateCRDError, s conversion.Scope) error
Convert_v1beta1_CreateCRDError_To_templates_CreateCRDError is an autogenerated conversion function.
func Convert_v1beta1_Names_To_templates_Names ¶
func Convert_v1beta1_Names_To_templates_Names(in *Names, out *templates.Names, s conversion.Scope) error
Convert_v1beta1_Names_To_templates_Names is an autogenerated conversion function.
func Convert_v1beta1_Target_To_templates_Target ¶
func Convert_v1beta1_Target_To_templates_Target(in *Target, out *coreTemplates.Target, s conversion.Scope) error
func Convert_v1beta1_Validation_To_templates_Validation ¶
func Convert_v1beta1_Validation_To_templates_Validation(in *Validation, out *coreTemplates.Validation, s conversion.Scope) error
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
func SetDefaults_ConstraintTemplate ¶
func SetDefaults_ConstraintTemplate(obj *ConstraintTemplate)
func SetObjectDefaults_ConstraintTemplate ¶
func SetObjectDefaults_ConstraintTemplate(in *ConstraintTemplate)
func SetObjectDefaults_ConstraintTemplateList ¶
func SetObjectDefaults_ConstraintTemplateList(in *ConstraintTemplateList)
Types ¶
type ByPodStatus ¶
type ByPodStatus struct { // a unique identifier for the pod that wrote the status ID string `json:"id,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` Errors []CreateCRDError `json:"errors,omitempty"` }
ByPodStatus defines the observed state of ConstraintTemplate as seen by an individual controller +kubebuilder:pruning:PreserveUnknownFields
func (*ByPodStatus) DeepCopy ¶
func (in *ByPodStatus) DeepCopy() *ByPodStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByPodStatus.
func (*ByPodStatus) DeepCopyInto ¶
func (in *ByPodStatus) DeepCopyInto(out *ByPodStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CRD ¶
type CRD struct {
Spec CRDSpec `json:"spec,omitempty"`
}
func (*CRD) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRD.
func (*CRD) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CRDSpec ¶
type CRDSpec struct { Names Names `json:"names,omitempty"` // +kubebuilder:default={legacySchema: true} Validation *Validation `json:"validation,omitempty"` }
func (*CRDSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRDSpec.
func (*CRDSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Code ¶
type Code struct { // The engine used to evaluate the code. Example: "Rego". Required. // +kubebuilder:validation:Required Engine string `json:"engine"` // +kubebuilder:validation:Required // +kubebuilder:validation:Schemaless // +kubebuilder:pruning:PreserveUnknownFields // The source code for the template. Required. Source *templates.Anything `json:"source"` }
func (*Code) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Code.
func (*Code) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConstraintTemplate ¶
type ConstraintTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConstraintTemplateSpec `json:"spec,omitempty"` Status ConstraintTemplateStatus `json:"status,omitempty"` }
ConstraintTemplate is the Schema for the constrainttemplates API +k8s:openapi-gen=true +k8s:conversion-gen-external-types=github.com/open-policy-agent/frameworks/constraint/pkg/apis/templates
func (*ConstraintTemplate) DeepCopy ¶
func (in *ConstraintTemplate) DeepCopy() *ConstraintTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConstraintTemplate.
func (*ConstraintTemplate) DeepCopyInto ¶
func (in *ConstraintTemplate) DeepCopyInto(out *ConstraintTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConstraintTemplate) DeepCopyObject ¶
func (in *ConstraintTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ConstraintTemplate) ToVersionless ¶
func (versioned *ConstraintTemplate) ToVersionless() (*templates.ConstraintTemplate, error)
ToVersionless runs defaulting functions and then converts the ConstraintTemplate to the versionless api representation.
type ConstraintTemplateList ¶
type ConstraintTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ConstraintTemplate `json:"items"` }
ConstraintTemplateList contains a list of ConstraintTemplate.
func (*ConstraintTemplateList) DeepCopy ¶
func (in *ConstraintTemplateList) DeepCopy() *ConstraintTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConstraintTemplateList.
func (*ConstraintTemplateList) DeepCopyInto ¶
func (in *ConstraintTemplateList) DeepCopyInto(out *ConstraintTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConstraintTemplateList) DeepCopyObject ¶
func (in *ConstraintTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConstraintTemplateSpec ¶
type ConstraintTemplateSpec struct { CRD CRD `json:"crd,omitempty"` Targets []Target `json:"targets,omitempty"` }
ConstraintTemplateSpec defines the desired state of ConstraintTemplate.
func (*ConstraintTemplateSpec) DeepCopy ¶
func (in *ConstraintTemplateSpec) DeepCopy() *ConstraintTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConstraintTemplateSpec.
func (*ConstraintTemplateSpec) DeepCopyInto ¶
func (in *ConstraintTemplateSpec) DeepCopyInto(out *ConstraintTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConstraintTemplateStatus ¶
type ConstraintTemplateStatus struct { Created bool `json:"created,omitempty"` ByPod []ByPodStatus `json:"byPod,omitempty"` }
ConstraintTemplateStatus defines the observed state of ConstraintTemplate.
func (*ConstraintTemplateStatus) DeepCopy ¶
func (in *ConstraintTemplateStatus) DeepCopy() *ConstraintTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConstraintTemplateStatus.
func (*ConstraintTemplateStatus) DeepCopyInto ¶
func (in *ConstraintTemplateStatus) DeepCopyInto(out *ConstraintTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCRDError ¶
type CreateCRDError struct { Code string `json:"code"` Message string `json:"message"` Location string `json:"location,omitempty"` }
CreateCRDError represents a single error caught during parsing, compiling, etc.
func (*CreateCRDError) DeepCopy ¶
func (in *CreateCRDError) DeepCopy() *CreateCRDError
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCRDError.
func (*CreateCRDError) DeepCopyInto ¶
func (in *CreateCRDError) DeepCopyInto(out *CreateCRDError)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Names ¶
type Names struct { Kind string `json:"kind,omitempty"` ShortNames []string `json:"shortNames,omitempty"` }
func (*Names) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Names.
func (*Names) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Target ¶
type Target struct { Target string `json:"target,omitempty"` Rego string `json:"rego,omitempty"` Libs []string `json:"libs,omitempty"` // The source code options for the constraint template. "Rego" can only // be specified in one place (either here or in the "rego" field) // +listType=map // +listMapKey=engine Code []Code `json:"code,omitempty"` }
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Validation ¶
type Validation struct { // +kubebuilder:validation:Schemaless // +kubebuilder:validation:Type=object // +kubebuilder:pruning:PreserveUnknownFields // +k8s:conversion-gen=false OpenAPIV3Schema *apiextensionsv1.JSONSchemaProps `json:"openAPIV3Schema,omitempty"` // +kubebuilder:default=true LegacySchema *bool `json:"legacySchema,omitempty"` // *bool allows for "unset" state which we need to apply appropriate defaults }
func (*Validation) DeepCopy ¶
func (in *Validation) DeepCopy() *Validation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation.
func (*Validation) DeepCopyInto ¶
func (in *Validation) DeepCopyInto(out *Validation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.