Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=openmcp.cloud
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( CreatedByAnnotation = fmt.Sprintf("%s/created-by", GroupVersion.Group) DisplayNameAnnotation = fmt.Sprintf("%s/display-name", GroupVersion.Group) )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "openmcp.cloud", 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 Subject ¶
type Subject struct { // Kind of object being referenced. Can be "User", "Group", or "ServiceAccount". // +kubebuilder:validation:Enum=User;Group;ServiceAccount Kind string `json:"kind"` // Name of the object being referenced. Name string `json:"name"` // Namespace of the referenced object. Required if Kind is "ServiceAccount". Must not be specified if Kind is "User" or "Group". // +optional Namespace string `json:"namespace,omitempty"` }
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. +kubebuilder:validation:XValidation:rule="self.kind == 'ServiceAccount' || !has(self.__namespace__)",message="Namespace must not be specified if Kind is User or Group" +kubebuilder:validation:XValidation:rule="self.kind != 'ServiceAccount' || has(self.__namespace__)",message="Namespace is required for ServiceAccount"
func (*Subject) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
func (*Subject) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.