Documentation ¶
Overview ¶
+kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster +kubebuilder:rbac:groups=nodepolicy.nuxeo.io,resources=profiles,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=nodepolicy.nuxeo.io,resources=profiles/status,verbs=get;update;patch +kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch +kubebuilder:webhook:name=nodepolicy,versions={v1,v1beta1},groups=nodepolicy.nuxeo.io,resources=pods,verbs="CREATE",path=/mutate-v1-pods,mutating=true,failurePolicy=Ignore
+k8s:deepcopy-gen=package,register +kubebuilder:object:generate=true +groupName=nodepolicy.nuxeo.io +versionName=v1alpha1
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "nodepolicy.nuxeo.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ( NodepolicyprofilesResource = SchemeBuilder.GroupVersion.WithResource("profiles") PodsResource = core_api.SchemeGroupVersion.WithResource("pods") NamespacesResource = core_api.SchemeGroupVersion.WithResource("namespaces") )
Functions ¶
This section is empty.
Types ¶
type AnnotationName ¶
type AnnotationName string
AnnotationName typed gcpauth annotation identifiers
const (
AnnotationPolicyProfiles AnnotationName = "nodepolicy.nuxeo.io/profiles"
)
func (AnnotationName) String ¶
func (name AnnotationName) String() string
type Profile ¶
type Profile struct { meta_api.TypeMeta `json:",inline"` meta_api.ObjectMeta `json:"metadata,omitempty"` Spec ProfileSpec `json:"spec,omitempty"` Status ProfileStatus `json:"status,omitempty"` }
Profile is the Schema for the nodepolicyprofiles API
func (*Profile) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.
func (*Profile) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Profile) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileList ¶
type ProfileList struct { meta_api.TypeMeta `json:",inline"` meta_api.ListMeta `json:"metadata,omitempty"` Items []Profile `json:"items"` }
ProfileList contains a list of NodePolicyProfile
func (*ProfileList) DeepCopy ¶
func (in *ProfileList) DeepCopy() *ProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileList.
func (*ProfileList) DeepCopyInto ¶
func (in *ProfileList) DeepCopyInto(out *ProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileList) DeepCopyObject ¶
func (in *ProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileSpec ¶
type ProfileSpec struct { Namespaces string `json:"namespaceSelector,omitempty"` PodSelector *meta_api.LabelSelector `json:"podSelector,omitempty"` Tolerations []core_api.Toleration `json:"tolerations,omitempty"` NodeAffinity core_api.NodeAffinity `json:"nodeAffinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` }
ProfileSpec defines the desired state of NodePolicyProfile
func (*ProfileSpec) DeepCopy ¶
func (in *ProfileSpec) DeepCopy() *ProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileSpec.
func (*ProfileSpec) DeepCopyInto ¶
func (in *ProfileSpec) DeepCopyInto(out *ProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProfileStatus ¶
type ProfileStatus struct { }
ProfileStatus defines the observed state of NodePolicyProfile
func (*ProfileStatus) DeepCopy ¶
func (in *ProfileStatus) DeepCopy() *ProfileStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileStatus.
func (*ProfileStatus) DeepCopyInto ¶
func (in *ProfileStatus) DeepCopyInto(out *ProfileStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceKind ¶
type ResourceKind string
const (
ProfileKind ResourceKind = "Profile"
)
func (ResourceKind) String ¶
func (name ResourceKind) String() string
type ResourceName ¶
type ResourceName string
ResourceName typed gcpauth resource identifiers
func (ResourceName) String ¶
func (name ResourceName) String() string