Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the security-profiles-operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=security-profiles-operator.x-k8s.io
Index ¶
Constants ¶
const ( ProfileBindingKindSeccompProfile ProfileBindingKind = "SeccompProfile" ProfileBindingKindSelinuxProfile ProfileBindingKind = "SelinuxProfile" SelectAllContainersImage string = "*" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "security-profiles-operator.x-k8s.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 ProfileBinding ¶
type ProfileBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProfileBindingSpec `json:"spec,omitempty"` Status ProfileBindingStatus `json:"status,omitempty"` }
ProfileBinding is the Schema for the profilebindings API. +kubebuilder:subresource:status
func (*ProfileBinding) DeepCopy ¶
func (in *ProfileBinding) DeepCopy() *ProfileBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileBinding.
func (*ProfileBinding) DeepCopyInto ¶
func (in *ProfileBinding) DeepCopyInto(out *ProfileBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileBinding) DeepCopyObject ¶
func (in *ProfileBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileBindingKind ¶ added in v0.4.0
type ProfileBindingKind string
type ProfileBindingList ¶
type ProfileBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProfileBinding `json:"items"` }
ProfileBindingList contains a list of ProfileBinding.
func (*ProfileBindingList) DeepCopy ¶
func (in *ProfileBindingList) DeepCopy() *ProfileBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileBindingList.
func (*ProfileBindingList) DeepCopyInto ¶
func (in *ProfileBindingList) DeepCopyInto(out *ProfileBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileBindingList) DeepCopyObject ¶
func (in *ProfileBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileBindingSpec ¶
type ProfileBindingSpec struct { // ProfileRef references a SeccompProfile or other profile type in the current namespace. ProfileRef ProfileRef `json:"profileRef"` // Image name within pod containers to match to the profile. // Use the "*" string to bind the profile to all pods. Image string `json:"image"` }
ProfileBindingSpec defines the desired state of ProfileBinding.
func (*ProfileBindingSpec) DeepCopy ¶
func (in *ProfileBindingSpec) DeepCopy() *ProfileBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileBindingSpec.
func (*ProfileBindingSpec) DeepCopyInto ¶
func (in *ProfileBindingSpec) DeepCopyInto(out *ProfileBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileBindingStatus ¶
type ProfileBindingStatus struct {
ActiveWorkloads []string `json:"activeWorkloads,omitempty"`
}
ProfileBindingStatus contains status of the Profilebinding.
func (*ProfileBindingStatus) DeepCopy ¶
func (in *ProfileBindingStatus) DeepCopy() *ProfileBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileBindingStatus.
func (*ProfileBindingStatus) DeepCopyInto ¶
func (in *ProfileBindingStatus) DeepCopyInto(out *ProfileBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileRef ¶
type ProfileRef struct { // Kind of object to be bound. // +kubebuilder:validation:Enum=SeccompProfile;SelinuxProfile Kind ProfileBindingKind `json:"kind"` // Name of the profile within the current namespace to which to bind the selected pods. Name string `json:"name"` }
ProfileRef contains information that points to the profile being used.
func (*ProfileRef) DeepCopy ¶
func (in *ProfileRef) DeepCopy() *ProfileRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileRef.
func (*ProfileRef) DeepCopyInto ¶
func (in *ProfileRef) DeepCopyInto(out *ProfileRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.