Documentation ¶
Index ¶
- type ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithContent(value runtime.RawExtension) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithGroup(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithIsNonResourceURL(value bool) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithNamespace(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithPath(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithResource(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithResourceName(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithVerb(value string) *ActionApplyConfiguration
- func (b *ActionApplyConfiguration) WithVersion(value string) *ActionApplyConfiguration
- type ClusterRoleApplyConfiguration
- func ClusterRole(name string) *ClusterRoleApplyConfiguration
- func ExtractClusterRole(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error)
- func ExtractClusterRoleStatus(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error)
- func (b *ClusterRoleApplyConfiguration) WithAPIVersion(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithAggregationRule(value rbacv1.AggregationRule) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithGenerateName(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithGeneration(value int64) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithKind(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithName(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithNamespace(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithResourceVersion(value string) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithRules(values ...*PolicyRuleApplyConfiguration) *ClusterRoleApplyConfiguration
- func (b *ClusterRoleApplyConfiguration) WithUID(value types.UID) *ClusterRoleApplyConfiguration
- type ClusterRoleBindingApplyConfiguration
- func ClusterRoleBinding(name string) *ClusterRoleBindingApplyConfiguration
- func ExtractClusterRoleBinding(clusterRoleBinding *authorizationv1.ClusterRoleBinding, fieldManager string) (*ClusterRoleBindingApplyConfiguration, error)
- func ExtractClusterRoleBindingStatus(clusterRoleBinding *authorizationv1.ClusterRoleBinding, fieldManager string) (*ClusterRoleBindingApplyConfiguration, error)
- func (b *ClusterRoleBindingApplyConfiguration) WithAPIVersion(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithGenerateName(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithGeneration(value int64) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithGroupNames(value authorizationv1.OptionalNames) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithKind(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithName(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithNamespace(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithResourceVersion(value string) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectReference) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithSubjects(values ...corev1.ObjectReference) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithUID(value types.UID) *ClusterRoleBindingApplyConfiguration
- func (b *ClusterRoleBindingApplyConfiguration) WithUserNames(value authorizationv1.OptionalNames) *ClusterRoleBindingApplyConfiguration
- type GroupRestrictionApplyConfiguration
- type LocalResourceAccessReviewApplyConfiguration
- func ExtractLocalResourceAccessReview(localResourceAccessReview *apiauthorizationv1.LocalResourceAccessReview, ...) (*LocalResourceAccessReviewApplyConfiguration, error)
- func ExtractLocalResourceAccessReviewStatus(localResourceAccessReview *apiauthorizationv1.LocalResourceAccessReview, ...) (*LocalResourceAccessReviewApplyConfiguration, error)
- func LocalResourceAccessReview(name string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithAPIVersion(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithGroup(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithKind(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithNamespace(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithPath(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithResource(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithResourceName(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithVerb(value string) *LocalResourceAccessReviewApplyConfiguration
- func (b *LocalResourceAccessReviewApplyConfiguration) WithVersion(value string) *LocalResourceAccessReviewApplyConfiguration
- type LocalSubjectAccessReviewApplyConfiguration
- func ExtractLocalSubjectAccessReview(localSubjectAccessReview *apiauthorizationv1.LocalSubjectAccessReview, ...) (*LocalSubjectAccessReviewApplyConfiguration, error)
- func ExtractLocalSubjectAccessReviewStatus(localSubjectAccessReview *apiauthorizationv1.LocalSubjectAccessReview, ...) (*LocalSubjectAccessReviewApplyConfiguration, error)
- func LocalSubjectAccessReview(name string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithAPIVersion(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithGroup(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithGroupsSlice(values ...string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithKind(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithNamespace(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithPath(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithResource(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithResourceName(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithScopes(value apiauthorizationv1.OptionalScopes) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithUser(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithVerb(value string) *LocalSubjectAccessReviewApplyConfiguration
- func (b *LocalSubjectAccessReviewApplyConfiguration) WithVersion(value string) *LocalSubjectAccessReviewApplyConfiguration
- type PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithAPIGroups(values ...string) *PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithAttributeRestrictions(value runtime.RawExtension) *PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithNonResourceURLsSlice(values ...string) *PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithResourceNames(values ...string) *PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithResources(values ...string) *PolicyRuleApplyConfiguration
- func (b *PolicyRuleApplyConfiguration) WithVerbs(values ...string) *PolicyRuleApplyConfiguration
- type ResourceAccessReviewApplyConfiguration
- func ExtractResourceAccessReview(resourceAccessReview *apiauthorizationv1.ResourceAccessReview, ...) (*ResourceAccessReviewApplyConfiguration, error)
- func ExtractResourceAccessReviewStatus(resourceAccessReview *apiauthorizationv1.ResourceAccessReview, ...) (*ResourceAccessReviewApplyConfiguration, error)
- func ResourceAccessReview(name string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithAPIVersion(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithGroup(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithKind(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithNamespace(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithPath(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithResource(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithResourceName(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithVerb(value string) *ResourceAccessReviewApplyConfiguration
- func (b *ResourceAccessReviewApplyConfiguration) WithVersion(value string) *ResourceAccessReviewApplyConfiguration
- type RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithAPIVersion(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithAnnotations(entries map[string]string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithFinalizers(values ...string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithGenerateName(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithGeneration(value int64) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithKind(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithLabels(entries map[string]string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithName(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithNamespace(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithResourceVersion(value string) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithRules(values ...*PolicyRuleApplyConfiguration) *RoleApplyConfiguration
- func (b *RoleApplyConfiguration) WithUID(value types.UID) *RoleApplyConfiguration
- type RoleBindingApplyConfiguration
- func ExtractRoleBinding(roleBinding *authorizationv1.RoleBinding, fieldManager string) (*RoleBindingApplyConfiguration, error)
- func ExtractRoleBindingStatus(roleBinding *authorizationv1.RoleBinding, fieldManager string) (*RoleBindingApplyConfiguration, error)
- func RoleBinding(name, namespace string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithAPIVersion(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithFinalizers(values ...string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithGenerateName(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithGeneration(value int64) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithGroupNames(value authorizationv1.OptionalNames) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithKind(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithName(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithNamespace(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithResourceVersion(value string) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectReference) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithSubjects(values ...corev1.ObjectReference) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithUID(value types.UID) *RoleBindingApplyConfiguration
- func (b *RoleBindingApplyConfiguration) WithUserNames(value authorizationv1.OptionalNames) *RoleBindingApplyConfiguration
- type RoleBindingRestrictionApplyConfiguration
- func ExtractRoleBindingRestriction(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, ...) (*RoleBindingRestrictionApplyConfiguration, error)
- func ExtractRoleBindingRestrictionStatus(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, ...) (*RoleBindingRestrictionApplyConfiguration, error)
- func RoleBindingRestriction(name, namespace string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithAPIVersion(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithFinalizers(values ...string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithGenerateName(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithGeneration(value int64) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithKind(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithName(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithNamespace(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithResourceVersion(value string) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithSpec(value *RoleBindingRestrictionSpecApplyConfiguration) *RoleBindingRestrictionApplyConfiguration
- func (b *RoleBindingRestrictionApplyConfiguration) WithUID(value types.UID) *RoleBindingRestrictionApplyConfiguration
- type RoleBindingRestrictionSpecApplyConfiguration
- func (b *RoleBindingRestrictionSpecApplyConfiguration) WithGroupRestriction(value *GroupRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
- func (b *RoleBindingRestrictionSpecApplyConfiguration) WithServiceAccountRestriction(value *ServiceAccountRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
- func (b *RoleBindingRestrictionSpecApplyConfiguration) WithUserRestriction(value *UserRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
- type ServiceAccountReferenceApplyConfiguration
- type ServiceAccountRestrictionApplyConfiguration
- func (b *ServiceAccountRestrictionApplyConfiguration) WithNamespaces(values ...string) *ServiceAccountRestrictionApplyConfiguration
- func (b *ServiceAccountRestrictionApplyConfiguration) WithServiceAccounts(values ...*ServiceAccountReferenceApplyConfiguration) *ServiceAccountRestrictionApplyConfiguration
- type SubjectAccessReviewApplyConfiguration
- func ExtractSubjectAccessReview(subjectAccessReview *apiauthorizationv1.SubjectAccessReview, ...) (*SubjectAccessReviewApplyConfiguration, error)
- func ExtractSubjectAccessReviewStatus(subjectAccessReview *apiauthorizationv1.SubjectAccessReview, ...) (*SubjectAccessReviewApplyConfiguration, error)
- func SubjectAccessReview(name string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithAPIVersion(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithGroup(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithGroupsSlice(values ...string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithKind(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithNamespace(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithPath(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithResource(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithResourceName(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithScopes(value apiauthorizationv1.OptionalScopes) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithUser(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithVerb(value string) *SubjectAccessReviewApplyConfiguration
- func (b *SubjectAccessReviewApplyConfiguration) WithVersion(value string) *SubjectAccessReviewApplyConfiguration
- type UserRestrictionApplyConfiguration
- func (b *UserRestrictionApplyConfiguration) WithGroups(values ...string) *UserRestrictionApplyConfiguration
- func (b *UserRestrictionApplyConfiguration) WithSelectors(values ...v1.LabelSelector) *UserRestrictionApplyConfiguration
- func (b *UserRestrictionApplyConfiguration) WithUsers(values ...string) *UserRestrictionApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionApplyConfiguration ¶
type ActionApplyConfiguration struct { Namespace *string `json:"namespace,omitempty"` Verb *string `json:"verb,omitempty"` Group *string `json:"resourceAPIGroup,omitempty"` Version *string `json:"resourceAPIVersion,omitempty"` Resource *string `json:"resource,omitempty"` ResourceName *string `json:"resourceName,omitempty"` Path *string `json:"path,omitempty"` IsNonResourceURL *bool `json:"isNonResourceURL,omitempty"` Content *runtime.RawExtension `json:"content,omitempty"` }
ActionApplyConfiguration represents an declarative configuration of the Action type for use with apply.
func Action ¶
func Action() *ActionApplyConfiguration
ActionApplyConfiguration constructs an declarative configuration of the Action type for use with apply.
func (*ActionApplyConfiguration) WithContent ¶
func (b *ActionApplyConfiguration) WithContent(value runtime.RawExtension) *ActionApplyConfiguration
WithContent sets the Content field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Content field is set to the value of the last call.
func (*ActionApplyConfiguration) WithGroup ¶
func (b *ActionApplyConfiguration) WithGroup(value string) *ActionApplyConfiguration
WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.
func (*ActionApplyConfiguration) WithIsNonResourceURL ¶
func (b *ActionApplyConfiguration) WithIsNonResourceURL(value bool) *ActionApplyConfiguration
WithIsNonResourceURL sets the IsNonResourceURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IsNonResourceURL field is set to the value of the last call.
func (*ActionApplyConfiguration) WithNamespace ¶
func (b *ActionApplyConfiguration) WithNamespace(value string) *ActionApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*ActionApplyConfiguration) WithPath ¶
func (b *ActionApplyConfiguration) WithPath(value string) *ActionApplyConfiguration
WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.
func (*ActionApplyConfiguration) WithResource ¶
func (b *ActionApplyConfiguration) WithResource(value string) *ActionApplyConfiguration
WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.
func (*ActionApplyConfiguration) WithResourceName ¶
func (b *ActionApplyConfiguration) WithResourceName(value string) *ActionApplyConfiguration
WithResourceName sets the ResourceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceName field is set to the value of the last call.
func (*ActionApplyConfiguration) WithVerb ¶
func (b *ActionApplyConfiguration) WithVerb(value string) *ActionApplyConfiguration
WithVerb sets the Verb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Verb field is set to the value of the last call.
func (*ActionApplyConfiguration) WithVersion ¶
func (b *ActionApplyConfiguration) WithVersion(value string) *ActionApplyConfiguration
WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.
type ClusterRoleApplyConfiguration ¶
type ClusterRoleApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"` AggregationRule *rbacv1.AggregationRule `json:"aggregationRule,omitempty"` }
ClusterRoleApplyConfiguration represents an declarative configuration of the ClusterRole type for use with apply.
func ClusterRole ¶
func ClusterRole(name string) *ClusterRoleApplyConfiguration
ClusterRole constructs an declarative configuration of the ClusterRole type for use with apply.
func ExtractClusterRole ¶
func ExtractClusterRole(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error)
ExtractClusterRole extracts the applied configuration owned by fieldManager from clusterRole. If no managedFields are found in clusterRole for fieldManager, a ClusterRoleApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. clusterRole must be a unmodified ClusterRole API object that was retrieved from the Kubernetes API. ExtractClusterRole provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractClusterRoleStatus ¶
func ExtractClusterRoleStatus(clusterRole *apiauthorizationv1.ClusterRole, fieldManager string) (*ClusterRoleApplyConfiguration, error)
ExtractClusterRoleStatus is the same as ExtractClusterRole except that it extracts the status subresource applied configuration. Experimental!
func (*ClusterRoleApplyConfiguration) WithAPIVersion ¶
func (b *ClusterRoleApplyConfiguration) WithAPIVersion(value string) *ClusterRoleApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithAggregationRule ¶
func (b *ClusterRoleApplyConfiguration) WithAggregationRule(value rbacv1.AggregationRule) *ClusterRoleApplyConfiguration
WithAggregationRule sets the AggregationRule field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AggregationRule field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithAnnotations ¶
func (b *ClusterRoleApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*ClusterRoleApplyConfiguration) WithCreationTimestamp ¶
func (b *ClusterRoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *ClusterRoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithDeletionTimestamp ¶
func (b *ClusterRoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithFinalizers ¶
func (b *ClusterRoleApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*ClusterRoleApplyConfiguration) WithGenerateName ¶
func (b *ClusterRoleApplyConfiguration) WithGenerateName(value string) *ClusterRoleApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithGeneration ¶
func (b *ClusterRoleApplyConfiguration) WithGeneration(value int64) *ClusterRoleApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithKind ¶
func (b *ClusterRoleApplyConfiguration) WithKind(value string) *ClusterRoleApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithLabels ¶
func (b *ClusterRoleApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*ClusterRoleApplyConfiguration) WithName ¶
func (b *ClusterRoleApplyConfiguration) WithName(value string) *ClusterRoleApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithNamespace ¶
func (b *ClusterRoleApplyConfiguration) WithNamespace(value string) *ClusterRoleApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithOwnerReferences ¶
func (b *ClusterRoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*ClusterRoleApplyConfiguration) WithResourceVersion ¶
func (b *ClusterRoleApplyConfiguration) WithResourceVersion(value string) *ClusterRoleApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*ClusterRoleApplyConfiguration) WithRules ¶
func (b *ClusterRoleApplyConfiguration) WithRules(values ...*PolicyRuleApplyConfiguration) *ClusterRoleApplyConfiguration
WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.
func (*ClusterRoleApplyConfiguration) WithUID ¶
func (b *ClusterRoleApplyConfiguration) WithUID(value types.UID) *ClusterRoleApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type ClusterRoleBindingApplyConfiguration ¶
type ClusterRoleBindingApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"` GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"` Subjects []corev1.ObjectReference `json:"subjects,omitempty"` RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"` }
ClusterRoleBindingApplyConfiguration represents an declarative configuration of the ClusterRoleBinding type for use with apply.
func ClusterRoleBinding ¶
func ClusterRoleBinding(name string) *ClusterRoleBindingApplyConfiguration
ClusterRoleBinding constructs an declarative configuration of the ClusterRoleBinding type for use with apply.
func ExtractClusterRoleBinding ¶
func ExtractClusterRoleBinding(clusterRoleBinding *authorizationv1.ClusterRoleBinding, fieldManager string) (*ClusterRoleBindingApplyConfiguration, error)
ExtractClusterRoleBinding extracts the applied configuration owned by fieldManager from clusterRoleBinding. If no managedFields are found in clusterRoleBinding for fieldManager, a ClusterRoleBindingApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. clusterRoleBinding must be a unmodified ClusterRoleBinding API object that was retrieved from the Kubernetes API. ExtractClusterRoleBinding provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractClusterRoleBindingStatus ¶
func ExtractClusterRoleBindingStatus(clusterRoleBinding *authorizationv1.ClusterRoleBinding, fieldManager string) (*ClusterRoleBindingApplyConfiguration, error)
ExtractClusterRoleBindingStatus is the same as ExtractClusterRoleBinding except that it extracts the status subresource applied configuration. Experimental!
func (*ClusterRoleBindingApplyConfiguration) WithAPIVersion ¶
func (b *ClusterRoleBindingApplyConfiguration) WithAPIVersion(value string) *ClusterRoleBindingApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithAnnotations ¶
func (b *ClusterRoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterRoleBindingApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*ClusterRoleBindingApplyConfiguration) WithCreationTimestamp ¶
func (b *ClusterRoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *ClusterRoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterRoleBindingApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp ¶
func (b *ClusterRoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterRoleBindingApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithFinalizers ¶
func (b *ClusterRoleBindingApplyConfiguration) WithFinalizers(values ...string) *ClusterRoleBindingApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*ClusterRoleBindingApplyConfiguration) WithGenerateName ¶
func (b *ClusterRoleBindingApplyConfiguration) WithGenerateName(value string) *ClusterRoleBindingApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithGeneration ¶
func (b *ClusterRoleBindingApplyConfiguration) WithGeneration(value int64) *ClusterRoleBindingApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithGroupNames ¶
func (b *ClusterRoleBindingApplyConfiguration) WithGroupNames(value authorizationv1.OptionalNames) *ClusterRoleBindingApplyConfiguration
WithGroupNames sets the GroupNames field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GroupNames field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithKind ¶
func (b *ClusterRoleBindingApplyConfiguration) WithKind(value string) *ClusterRoleBindingApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithLabels ¶
func (b *ClusterRoleBindingApplyConfiguration) WithLabels(entries map[string]string) *ClusterRoleBindingApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*ClusterRoleBindingApplyConfiguration) WithName ¶
func (b *ClusterRoleBindingApplyConfiguration) WithName(value string) *ClusterRoleBindingApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithNamespace ¶
func (b *ClusterRoleBindingApplyConfiguration) WithNamespace(value string) *ClusterRoleBindingApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithOwnerReferences ¶
func (b *ClusterRoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterRoleBindingApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*ClusterRoleBindingApplyConfiguration) WithResourceVersion ¶
func (b *ClusterRoleBindingApplyConfiguration) WithResourceVersion(value string) *ClusterRoleBindingApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithRoleRef ¶
func (b *ClusterRoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectReference) *ClusterRoleBindingApplyConfiguration
WithRoleRef sets the RoleRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RoleRef field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithSubjects ¶
func (b *ClusterRoleBindingApplyConfiguration) WithSubjects(values ...corev1.ObjectReference) *ClusterRoleBindingApplyConfiguration
WithSubjects adds the given value to the Subjects field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Subjects field.
func (*ClusterRoleBindingApplyConfiguration) WithUID ¶
func (b *ClusterRoleBindingApplyConfiguration) WithUID(value types.UID) *ClusterRoleBindingApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
func (*ClusterRoleBindingApplyConfiguration) WithUserNames ¶
func (b *ClusterRoleBindingApplyConfiguration) WithUserNames(value authorizationv1.OptionalNames) *ClusterRoleBindingApplyConfiguration
WithUserNames sets the UserNames field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UserNames field is set to the value of the last call.
type GroupRestrictionApplyConfiguration ¶
type GroupRestrictionApplyConfiguration struct { Groups []string `json:"groups,omitempty"` Selectors []v1.LabelSelector `json:"labels,omitempty"` }
GroupRestrictionApplyConfiguration represents an declarative configuration of the GroupRestriction type for use with apply.
func GroupRestriction ¶
func GroupRestriction() *GroupRestrictionApplyConfiguration
GroupRestrictionApplyConfiguration constructs an declarative configuration of the GroupRestriction type for use with apply.
func (*GroupRestrictionApplyConfiguration) WithGroups ¶
func (b *GroupRestrictionApplyConfiguration) WithGroups(values ...string) *GroupRestrictionApplyConfiguration
WithGroups adds the given value to the Groups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Groups field.
func (*GroupRestrictionApplyConfiguration) WithSelectors ¶
func (b *GroupRestrictionApplyConfiguration) WithSelectors(values ...v1.LabelSelector) *GroupRestrictionApplyConfiguration
WithSelectors adds the given value to the Selectors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Selectors field.
type LocalResourceAccessReviewApplyConfiguration ¶
type LocalResourceAccessReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` ActionApplyConfiguration `json:",inline"` }
LocalResourceAccessReviewApplyConfiguration represents an declarative configuration of the LocalResourceAccessReview type for use with apply.
func ExtractLocalResourceAccessReview ¶
func ExtractLocalResourceAccessReview(localResourceAccessReview *apiauthorizationv1.LocalResourceAccessReview, fieldManager string) (*LocalResourceAccessReviewApplyConfiguration, error)
ExtractLocalResourceAccessReview extracts the applied configuration owned by fieldManager from localResourceAccessReview. If no managedFields are found in localResourceAccessReview for fieldManager, a LocalResourceAccessReviewApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. localResourceAccessReview must be a unmodified LocalResourceAccessReview API object that was retrieved from the Kubernetes API. ExtractLocalResourceAccessReview provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractLocalResourceAccessReviewStatus ¶
func ExtractLocalResourceAccessReviewStatus(localResourceAccessReview *apiauthorizationv1.LocalResourceAccessReview, fieldManager string) (*LocalResourceAccessReviewApplyConfiguration, error)
ExtractLocalResourceAccessReviewStatus is the same as ExtractLocalResourceAccessReview except that it extracts the status subresource applied configuration. Experimental!
func LocalResourceAccessReview ¶
func LocalResourceAccessReview(name string) *LocalResourceAccessReviewApplyConfiguration
LocalResourceAccessReview constructs an declarative configuration of the LocalResourceAccessReview type for use with apply.
func (*LocalResourceAccessReviewApplyConfiguration) WithAPIVersion ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithAPIVersion(value string) *LocalResourceAccessReviewApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithContent ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *LocalResourceAccessReviewApplyConfiguration
WithContent sets the Content field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Content field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithGroup ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithGroup(value string) *LocalResourceAccessReviewApplyConfiguration
WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithIsNonResourceURL ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *LocalResourceAccessReviewApplyConfiguration
WithIsNonResourceURL sets the IsNonResourceURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IsNonResourceURL field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithKind ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithKind(value string) *LocalResourceAccessReviewApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithNamespace ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithNamespace(value string) *LocalResourceAccessReviewApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithPath ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithPath(value string) *LocalResourceAccessReviewApplyConfiguration
WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithResource ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithResource(value string) *LocalResourceAccessReviewApplyConfiguration
WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithResourceName ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithResourceName(value string) *LocalResourceAccessReviewApplyConfiguration
WithResourceName sets the ResourceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceName field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithVerb ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithVerb(value string) *LocalResourceAccessReviewApplyConfiguration
WithVerb sets the Verb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Verb field is set to the value of the last call.
func (*LocalResourceAccessReviewApplyConfiguration) WithVersion ¶
func (b *LocalResourceAccessReviewApplyConfiguration) WithVersion(value string) *LocalResourceAccessReviewApplyConfiguration
WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.
type LocalSubjectAccessReviewApplyConfiguration ¶
type LocalSubjectAccessReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` ActionApplyConfiguration `json:",inline"` User *string `json:"user,omitempty"` GroupsSlice []string `json:"groups,omitempty"` Scopes *apiauthorizationv1.OptionalScopes `json:"scopes,omitempty"` }
LocalSubjectAccessReviewApplyConfiguration represents an declarative configuration of the LocalSubjectAccessReview type for use with apply.
func ExtractLocalSubjectAccessReview ¶
func ExtractLocalSubjectAccessReview(localSubjectAccessReview *apiauthorizationv1.LocalSubjectAccessReview, fieldManager string) (*LocalSubjectAccessReviewApplyConfiguration, error)
ExtractLocalSubjectAccessReview extracts the applied configuration owned by fieldManager from localSubjectAccessReview. If no managedFields are found in localSubjectAccessReview for fieldManager, a LocalSubjectAccessReviewApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. localSubjectAccessReview must be a unmodified LocalSubjectAccessReview API object that was retrieved from the Kubernetes API. ExtractLocalSubjectAccessReview provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractLocalSubjectAccessReviewStatus ¶
func ExtractLocalSubjectAccessReviewStatus(localSubjectAccessReview *apiauthorizationv1.LocalSubjectAccessReview, fieldManager string) (*LocalSubjectAccessReviewApplyConfiguration, error)
ExtractLocalSubjectAccessReviewStatus is the same as ExtractLocalSubjectAccessReview except that it extracts the status subresource applied configuration. Experimental!
func LocalSubjectAccessReview ¶
func LocalSubjectAccessReview(name string) *LocalSubjectAccessReviewApplyConfiguration
LocalSubjectAccessReview constructs an declarative configuration of the LocalSubjectAccessReview type for use with apply.
func (*LocalSubjectAccessReviewApplyConfiguration) WithAPIVersion ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithAPIVersion(value string) *LocalSubjectAccessReviewApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithContent ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *LocalSubjectAccessReviewApplyConfiguration
WithContent sets the Content field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Content field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithGroup ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithGroup(value string) *LocalSubjectAccessReviewApplyConfiguration
WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithGroupsSlice ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithGroupsSlice(values ...string) *LocalSubjectAccessReviewApplyConfiguration
WithGroupsSlice adds the given value to the GroupsSlice field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the GroupsSlice field.
func (*LocalSubjectAccessReviewApplyConfiguration) WithIsNonResourceURL ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *LocalSubjectAccessReviewApplyConfiguration
WithIsNonResourceURL sets the IsNonResourceURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IsNonResourceURL field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithKind ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithKind(value string) *LocalSubjectAccessReviewApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithNamespace ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithNamespace(value string) *LocalSubjectAccessReviewApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithPath ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithPath(value string) *LocalSubjectAccessReviewApplyConfiguration
WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithResource ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithResource(value string) *LocalSubjectAccessReviewApplyConfiguration
WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithResourceName ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithResourceName(value string) *LocalSubjectAccessReviewApplyConfiguration
WithResourceName sets the ResourceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceName field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithScopes ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithScopes(value apiauthorizationv1.OptionalScopes) *LocalSubjectAccessReviewApplyConfiguration
WithScopes sets the Scopes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Scopes field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithUser ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithUser(value string) *LocalSubjectAccessReviewApplyConfiguration
WithUser sets the User field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the User field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithVerb ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithVerb(value string) *LocalSubjectAccessReviewApplyConfiguration
WithVerb sets the Verb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Verb field is set to the value of the last call.
func (*LocalSubjectAccessReviewApplyConfiguration) WithVersion ¶
func (b *LocalSubjectAccessReviewApplyConfiguration) WithVersion(value string) *LocalSubjectAccessReviewApplyConfiguration
WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.
type PolicyRuleApplyConfiguration ¶
type PolicyRuleApplyConfiguration struct { Verbs []string `json:"verbs,omitempty"` AttributeRestrictions *runtime.RawExtension `json:"attributeRestrictions,omitempty"` APIGroups []string `json:"apiGroups,omitempty"` Resources []string `json:"resources,omitempty"` ResourceNames []string `json:"resourceNames,omitempty"` NonResourceURLsSlice []string `json:"nonResourceURLs,omitempty"` }
PolicyRuleApplyConfiguration represents an declarative configuration of the PolicyRule type for use with apply.
func PolicyRule ¶
func PolicyRule() *PolicyRuleApplyConfiguration
PolicyRuleApplyConfiguration constructs an declarative configuration of the PolicyRule type for use with apply.
func (*PolicyRuleApplyConfiguration) WithAPIGroups ¶
func (b *PolicyRuleApplyConfiguration) WithAPIGroups(values ...string) *PolicyRuleApplyConfiguration
WithAPIGroups adds the given value to the APIGroups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the APIGroups field.
func (*PolicyRuleApplyConfiguration) WithAttributeRestrictions ¶
func (b *PolicyRuleApplyConfiguration) WithAttributeRestrictions(value runtime.RawExtension) *PolicyRuleApplyConfiguration
WithAttributeRestrictions sets the AttributeRestrictions field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AttributeRestrictions field is set to the value of the last call.
func (*PolicyRuleApplyConfiguration) WithNonResourceURLsSlice ¶
func (b *PolicyRuleApplyConfiguration) WithNonResourceURLsSlice(values ...string) *PolicyRuleApplyConfiguration
WithNonResourceURLsSlice adds the given value to the NonResourceURLsSlice field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the NonResourceURLsSlice field.
func (*PolicyRuleApplyConfiguration) WithResourceNames ¶
func (b *PolicyRuleApplyConfiguration) WithResourceNames(values ...string) *PolicyRuleApplyConfiguration
WithResourceNames adds the given value to the ResourceNames field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ResourceNames field.
func (*PolicyRuleApplyConfiguration) WithResources ¶
func (b *PolicyRuleApplyConfiguration) WithResources(values ...string) *PolicyRuleApplyConfiguration
WithResources adds the given value to the Resources field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Resources field.
func (*PolicyRuleApplyConfiguration) WithVerbs ¶
func (b *PolicyRuleApplyConfiguration) WithVerbs(values ...string) *PolicyRuleApplyConfiguration
WithVerbs adds the given value to the Verbs field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Verbs field.
type ResourceAccessReviewApplyConfiguration ¶
type ResourceAccessReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` ActionApplyConfiguration `json:",inline"` }
ResourceAccessReviewApplyConfiguration represents an declarative configuration of the ResourceAccessReview type for use with apply.
func ExtractResourceAccessReview ¶
func ExtractResourceAccessReview(resourceAccessReview *apiauthorizationv1.ResourceAccessReview, fieldManager string) (*ResourceAccessReviewApplyConfiguration, error)
ExtractResourceAccessReview extracts the applied configuration owned by fieldManager from resourceAccessReview. If no managedFields are found in resourceAccessReview for fieldManager, a ResourceAccessReviewApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. resourceAccessReview must be a unmodified ResourceAccessReview API object that was retrieved from the Kubernetes API. ExtractResourceAccessReview provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractResourceAccessReviewStatus ¶
func ExtractResourceAccessReviewStatus(resourceAccessReview *apiauthorizationv1.ResourceAccessReview, fieldManager string) (*ResourceAccessReviewApplyConfiguration, error)
ExtractResourceAccessReviewStatus is the same as ExtractResourceAccessReview except that it extracts the status subresource applied configuration. Experimental!
func ResourceAccessReview ¶
func ResourceAccessReview(name string) *ResourceAccessReviewApplyConfiguration
ResourceAccessReview constructs an declarative configuration of the ResourceAccessReview type for use with apply.
func (*ResourceAccessReviewApplyConfiguration) WithAPIVersion ¶
func (b *ResourceAccessReviewApplyConfiguration) WithAPIVersion(value string) *ResourceAccessReviewApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithContent ¶
func (b *ResourceAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *ResourceAccessReviewApplyConfiguration
WithContent sets the Content field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Content field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithGroup ¶
func (b *ResourceAccessReviewApplyConfiguration) WithGroup(value string) *ResourceAccessReviewApplyConfiguration
WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithIsNonResourceURL ¶
func (b *ResourceAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *ResourceAccessReviewApplyConfiguration
WithIsNonResourceURL sets the IsNonResourceURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IsNonResourceURL field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithKind ¶
func (b *ResourceAccessReviewApplyConfiguration) WithKind(value string) *ResourceAccessReviewApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithNamespace ¶
func (b *ResourceAccessReviewApplyConfiguration) WithNamespace(value string) *ResourceAccessReviewApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithPath ¶
func (b *ResourceAccessReviewApplyConfiguration) WithPath(value string) *ResourceAccessReviewApplyConfiguration
WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithResource ¶
func (b *ResourceAccessReviewApplyConfiguration) WithResource(value string) *ResourceAccessReviewApplyConfiguration
WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithResourceName ¶
func (b *ResourceAccessReviewApplyConfiguration) WithResourceName(value string) *ResourceAccessReviewApplyConfiguration
WithResourceName sets the ResourceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceName field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithVerb ¶
func (b *ResourceAccessReviewApplyConfiguration) WithVerb(value string) *ResourceAccessReviewApplyConfiguration
WithVerb sets the Verb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Verb field is set to the value of the last call.
func (*ResourceAccessReviewApplyConfiguration) WithVersion ¶
func (b *ResourceAccessReviewApplyConfiguration) WithVersion(value string) *ResourceAccessReviewApplyConfiguration
WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.
type RoleApplyConfiguration ¶
type RoleApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Rules []PolicyRuleApplyConfiguration `json:"rules,omitempty"` }
RoleApplyConfiguration represents an declarative configuration of the Role type for use with apply.
func ExtractRole ¶
func ExtractRole(role *apiauthorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error)
ExtractRole extracts the applied configuration owned by fieldManager from role. If no managedFields are found in role for fieldManager, a RoleApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. role must be a unmodified Role API object that was retrieved from the Kubernetes API. ExtractRole provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractRoleStatus ¶
func ExtractRoleStatus(role *apiauthorizationv1.Role, fieldManager string) (*RoleApplyConfiguration, error)
ExtractRoleStatus is the same as ExtractRole except that it extracts the status subresource applied configuration. Experimental!
func Role ¶
func Role(name, namespace string) *RoleApplyConfiguration
Role constructs an declarative configuration of the Role type for use with apply.
func (*RoleApplyConfiguration) WithAPIVersion ¶
func (b *RoleApplyConfiguration) WithAPIVersion(value string) *RoleApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*RoleApplyConfiguration) WithAnnotations ¶
func (b *RoleApplyConfiguration) WithAnnotations(entries map[string]string) *RoleApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*RoleApplyConfiguration) WithCreationTimestamp ¶
func (b *RoleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*RoleApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *RoleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*RoleApplyConfiguration) WithDeletionTimestamp ¶
func (b *RoleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*RoleApplyConfiguration) WithFinalizers ¶
func (b *RoleApplyConfiguration) WithFinalizers(values ...string) *RoleApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*RoleApplyConfiguration) WithGenerateName ¶
func (b *RoleApplyConfiguration) WithGenerateName(value string) *RoleApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*RoleApplyConfiguration) WithGeneration ¶
func (b *RoleApplyConfiguration) WithGeneration(value int64) *RoleApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*RoleApplyConfiguration) WithKind ¶
func (b *RoleApplyConfiguration) WithKind(value string) *RoleApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*RoleApplyConfiguration) WithLabels ¶
func (b *RoleApplyConfiguration) WithLabels(entries map[string]string) *RoleApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*RoleApplyConfiguration) WithName ¶
func (b *RoleApplyConfiguration) WithName(value string) *RoleApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*RoleApplyConfiguration) WithNamespace ¶
func (b *RoleApplyConfiguration) WithNamespace(value string) *RoleApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*RoleApplyConfiguration) WithOwnerReferences ¶
func (b *RoleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*RoleApplyConfiguration) WithResourceVersion ¶
func (b *RoleApplyConfiguration) WithResourceVersion(value string) *RoleApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*RoleApplyConfiguration) WithRules ¶
func (b *RoleApplyConfiguration) WithRules(values ...*PolicyRuleApplyConfiguration) *RoleApplyConfiguration
WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.
func (*RoleApplyConfiguration) WithUID ¶
func (b *RoleApplyConfiguration) WithUID(value types.UID) *RoleApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type RoleBindingApplyConfiguration ¶
type RoleBindingApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` UserNames *authorizationv1.OptionalNames `json:"userNames,omitempty"` GroupNames *authorizationv1.OptionalNames `json:"groupNames,omitempty"` Subjects []corev1.ObjectReference `json:"subjects,omitempty"` RoleRef *corev1.ObjectReference `json:"roleRef,omitempty"` }
RoleBindingApplyConfiguration represents an declarative configuration of the RoleBinding type for use with apply.
func ExtractRoleBinding ¶
func ExtractRoleBinding(roleBinding *authorizationv1.RoleBinding, fieldManager string) (*RoleBindingApplyConfiguration, error)
ExtractRoleBinding extracts the applied configuration owned by fieldManager from roleBinding. If no managedFields are found in roleBinding for fieldManager, a RoleBindingApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. roleBinding must be a unmodified RoleBinding API object that was retrieved from the Kubernetes API. ExtractRoleBinding provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractRoleBindingStatus ¶
func ExtractRoleBindingStatus(roleBinding *authorizationv1.RoleBinding, fieldManager string) (*RoleBindingApplyConfiguration, error)
ExtractRoleBindingStatus is the same as ExtractRoleBinding except that it extracts the status subresource applied configuration. Experimental!
func RoleBinding ¶
func RoleBinding(name, namespace string) *RoleBindingApplyConfiguration
RoleBinding constructs an declarative configuration of the RoleBinding type for use with apply.
func (*RoleBindingApplyConfiguration) WithAPIVersion ¶
func (b *RoleBindingApplyConfiguration) WithAPIVersion(value string) *RoleBindingApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithAnnotations ¶
func (b *RoleBindingApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*RoleBindingApplyConfiguration) WithCreationTimestamp ¶
func (b *RoleBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *RoleBindingApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithDeletionTimestamp ¶
func (b *RoleBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithFinalizers ¶
func (b *RoleBindingApplyConfiguration) WithFinalizers(values ...string) *RoleBindingApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*RoleBindingApplyConfiguration) WithGenerateName ¶
func (b *RoleBindingApplyConfiguration) WithGenerateName(value string) *RoleBindingApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithGeneration ¶
func (b *RoleBindingApplyConfiguration) WithGeneration(value int64) *RoleBindingApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithGroupNames ¶
func (b *RoleBindingApplyConfiguration) WithGroupNames(value authorizationv1.OptionalNames) *RoleBindingApplyConfiguration
WithGroupNames sets the GroupNames field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GroupNames field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithKind ¶
func (b *RoleBindingApplyConfiguration) WithKind(value string) *RoleBindingApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithLabels ¶
func (b *RoleBindingApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*RoleBindingApplyConfiguration) WithName ¶
func (b *RoleBindingApplyConfiguration) WithName(value string) *RoleBindingApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithNamespace ¶
func (b *RoleBindingApplyConfiguration) WithNamespace(value string) *RoleBindingApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithOwnerReferences ¶
func (b *RoleBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*RoleBindingApplyConfiguration) WithResourceVersion ¶
func (b *RoleBindingApplyConfiguration) WithResourceVersion(value string) *RoleBindingApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithRoleRef ¶
func (b *RoleBindingApplyConfiguration) WithRoleRef(value corev1.ObjectReference) *RoleBindingApplyConfiguration
WithRoleRef sets the RoleRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RoleRef field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithSubjects ¶
func (b *RoleBindingApplyConfiguration) WithSubjects(values ...corev1.ObjectReference) *RoleBindingApplyConfiguration
WithSubjects adds the given value to the Subjects field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Subjects field.
func (*RoleBindingApplyConfiguration) WithUID ¶
func (b *RoleBindingApplyConfiguration) WithUID(value types.UID) *RoleBindingApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
func (*RoleBindingApplyConfiguration) WithUserNames ¶
func (b *RoleBindingApplyConfiguration) WithUserNames(value authorizationv1.OptionalNames) *RoleBindingApplyConfiguration
WithUserNames sets the UserNames field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UserNames field is set to the value of the last call.
type RoleBindingRestrictionApplyConfiguration ¶
type RoleBindingRestrictionApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *RoleBindingRestrictionSpecApplyConfiguration `json:"spec,omitempty"` }
RoleBindingRestrictionApplyConfiguration represents an declarative configuration of the RoleBindingRestriction type for use with apply.
func ExtractRoleBindingRestriction ¶
func ExtractRoleBindingRestriction(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error)
ExtractRoleBindingRestriction extracts the applied configuration owned by fieldManager from roleBindingRestriction. If no managedFields are found in roleBindingRestriction for fieldManager, a RoleBindingRestrictionApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. roleBindingRestriction must be a unmodified RoleBindingRestriction API object that was retrieved from the Kubernetes API. ExtractRoleBindingRestriction provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractRoleBindingRestrictionStatus ¶
func ExtractRoleBindingRestrictionStatus(roleBindingRestriction *apiauthorizationv1.RoleBindingRestriction, fieldManager string) (*RoleBindingRestrictionApplyConfiguration, error)
ExtractRoleBindingRestrictionStatus is the same as ExtractRoleBindingRestriction except that it extracts the status subresource applied configuration. Experimental!
func RoleBindingRestriction ¶
func RoleBindingRestriction(name, namespace string) *RoleBindingRestrictionApplyConfiguration
RoleBindingRestriction constructs an declarative configuration of the RoleBindingRestriction type for use with apply.
func (*RoleBindingRestrictionApplyConfiguration) WithAPIVersion ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithAPIVersion(value string) *RoleBindingRestrictionApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithAnnotations ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithAnnotations(entries map[string]string) *RoleBindingRestrictionApplyConfiguration
WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.
func (*RoleBindingRestrictionApplyConfiguration) WithCreationTimestamp ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration
WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *RoleBindingRestrictionApplyConfiguration
WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *RoleBindingRestrictionApplyConfiguration
WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithFinalizers ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithFinalizers(values ...string) *RoleBindingRestrictionApplyConfiguration
WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.
func (*RoleBindingRestrictionApplyConfiguration) WithGenerateName ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithGenerateName(value string) *RoleBindingRestrictionApplyConfiguration
WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithGeneration ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithGeneration(value int64) *RoleBindingRestrictionApplyConfiguration
WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithKind ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithKind(value string) *RoleBindingRestrictionApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithLabels ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithLabels(entries map[string]string) *RoleBindingRestrictionApplyConfiguration
WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.
func (*RoleBindingRestrictionApplyConfiguration) WithName ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithName(value string) *RoleBindingRestrictionApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithNamespace ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithNamespace(value string) *RoleBindingRestrictionApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithOwnerReferences ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *RoleBindingRestrictionApplyConfiguration
WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.
func (*RoleBindingRestrictionApplyConfiguration) WithResourceVersion ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithResourceVersion(value string) *RoleBindingRestrictionApplyConfiguration
WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithSpec ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithSpec(value *RoleBindingRestrictionSpecApplyConfiguration) *RoleBindingRestrictionApplyConfiguration
WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.
func (*RoleBindingRestrictionApplyConfiguration) WithUID ¶
func (b *RoleBindingRestrictionApplyConfiguration) WithUID(value types.UID) *RoleBindingRestrictionApplyConfiguration
WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.
type RoleBindingRestrictionSpecApplyConfiguration ¶
type RoleBindingRestrictionSpecApplyConfiguration struct { UserRestriction *UserRestrictionApplyConfiguration `json:"userrestriction,omitempty"` GroupRestriction *GroupRestrictionApplyConfiguration `json:"grouprestriction,omitempty"` ServiceAccountRestriction *ServiceAccountRestrictionApplyConfiguration `json:"serviceaccountrestriction,omitempty"` }
RoleBindingRestrictionSpecApplyConfiguration represents an declarative configuration of the RoleBindingRestrictionSpec type for use with apply.
func RoleBindingRestrictionSpec ¶
func RoleBindingRestrictionSpec() *RoleBindingRestrictionSpecApplyConfiguration
RoleBindingRestrictionSpecApplyConfiguration constructs an declarative configuration of the RoleBindingRestrictionSpec type for use with apply.
func (*RoleBindingRestrictionSpecApplyConfiguration) WithGroupRestriction ¶
func (b *RoleBindingRestrictionSpecApplyConfiguration) WithGroupRestriction(value *GroupRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
WithGroupRestriction sets the GroupRestriction field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GroupRestriction field is set to the value of the last call.
func (*RoleBindingRestrictionSpecApplyConfiguration) WithServiceAccountRestriction ¶
func (b *RoleBindingRestrictionSpecApplyConfiguration) WithServiceAccountRestriction(value *ServiceAccountRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
WithServiceAccountRestriction sets the ServiceAccountRestriction field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ServiceAccountRestriction field is set to the value of the last call.
func (*RoleBindingRestrictionSpecApplyConfiguration) WithUserRestriction ¶
func (b *RoleBindingRestrictionSpecApplyConfiguration) WithUserRestriction(value *UserRestrictionApplyConfiguration) *RoleBindingRestrictionSpecApplyConfiguration
WithUserRestriction sets the UserRestriction field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UserRestriction field is set to the value of the last call.
type ServiceAccountReferenceApplyConfiguration ¶
type ServiceAccountReferenceApplyConfiguration struct { Name *string `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` }
ServiceAccountReferenceApplyConfiguration represents an declarative configuration of the ServiceAccountReference type for use with apply.
func ServiceAccountReference ¶
func ServiceAccountReference() *ServiceAccountReferenceApplyConfiguration
ServiceAccountReferenceApplyConfiguration constructs an declarative configuration of the ServiceAccountReference type for use with apply.
func (*ServiceAccountReferenceApplyConfiguration) WithName ¶
func (b *ServiceAccountReferenceApplyConfiguration) WithName(value string) *ServiceAccountReferenceApplyConfiguration
WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.
func (*ServiceAccountReferenceApplyConfiguration) WithNamespace ¶
func (b *ServiceAccountReferenceApplyConfiguration) WithNamespace(value string) *ServiceAccountReferenceApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
type ServiceAccountRestrictionApplyConfiguration ¶
type ServiceAccountRestrictionApplyConfiguration struct { ServiceAccounts []ServiceAccountReferenceApplyConfiguration `json:"serviceaccounts,omitempty"` Namespaces []string `json:"namespaces,omitempty"` }
ServiceAccountRestrictionApplyConfiguration represents an declarative configuration of the ServiceAccountRestriction type for use with apply.
func ServiceAccountRestriction ¶
func ServiceAccountRestriction() *ServiceAccountRestrictionApplyConfiguration
ServiceAccountRestrictionApplyConfiguration constructs an declarative configuration of the ServiceAccountRestriction type for use with apply.
func (*ServiceAccountRestrictionApplyConfiguration) WithNamespaces ¶
func (b *ServiceAccountRestrictionApplyConfiguration) WithNamespaces(values ...string) *ServiceAccountRestrictionApplyConfiguration
WithNamespaces adds the given value to the Namespaces field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Namespaces field.
func (*ServiceAccountRestrictionApplyConfiguration) WithServiceAccounts ¶
func (b *ServiceAccountRestrictionApplyConfiguration) WithServiceAccounts(values ...*ServiceAccountReferenceApplyConfiguration) *ServiceAccountRestrictionApplyConfiguration
WithServiceAccounts adds the given value to the ServiceAccounts field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the ServiceAccounts field.
type SubjectAccessReviewApplyConfiguration ¶
type SubjectAccessReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` ActionApplyConfiguration `json:",inline"` User *string `json:"user,omitempty"` GroupsSlice []string `json:"groups,omitempty"` Scopes *apiauthorizationv1.OptionalScopes `json:"scopes,omitempty"` }
SubjectAccessReviewApplyConfiguration represents an declarative configuration of the SubjectAccessReview type for use with apply.
func ExtractSubjectAccessReview ¶
func ExtractSubjectAccessReview(subjectAccessReview *apiauthorizationv1.SubjectAccessReview, fieldManager string) (*SubjectAccessReviewApplyConfiguration, error)
ExtractSubjectAccessReview extracts the applied configuration owned by fieldManager from subjectAccessReview. If no managedFields are found in subjectAccessReview for fieldManager, a SubjectAccessReviewApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. subjectAccessReview must be a unmodified SubjectAccessReview API object that was retrieved from the Kubernetes API. ExtractSubjectAccessReview provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractSubjectAccessReviewStatus ¶
func ExtractSubjectAccessReviewStatus(subjectAccessReview *apiauthorizationv1.SubjectAccessReview, fieldManager string) (*SubjectAccessReviewApplyConfiguration, error)
ExtractSubjectAccessReviewStatus is the same as ExtractSubjectAccessReview except that it extracts the status subresource applied configuration. Experimental!
func SubjectAccessReview ¶
func SubjectAccessReview(name string) *SubjectAccessReviewApplyConfiguration
SubjectAccessReview constructs an declarative configuration of the SubjectAccessReview type for use with apply.
func (*SubjectAccessReviewApplyConfiguration) WithAPIVersion ¶
func (b *SubjectAccessReviewApplyConfiguration) WithAPIVersion(value string) *SubjectAccessReviewApplyConfiguration
WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithContent ¶
func (b *SubjectAccessReviewApplyConfiguration) WithContent(value runtime.RawExtension) *SubjectAccessReviewApplyConfiguration
WithContent sets the Content field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Content field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithGroup ¶
func (b *SubjectAccessReviewApplyConfiguration) WithGroup(value string) *SubjectAccessReviewApplyConfiguration
WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithGroupsSlice ¶
func (b *SubjectAccessReviewApplyConfiguration) WithGroupsSlice(values ...string) *SubjectAccessReviewApplyConfiguration
WithGroupsSlice adds the given value to the GroupsSlice field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the GroupsSlice field.
func (*SubjectAccessReviewApplyConfiguration) WithIsNonResourceURL ¶
func (b *SubjectAccessReviewApplyConfiguration) WithIsNonResourceURL(value bool) *SubjectAccessReviewApplyConfiguration
WithIsNonResourceURL sets the IsNonResourceURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IsNonResourceURL field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithKind ¶
func (b *SubjectAccessReviewApplyConfiguration) WithKind(value string) *SubjectAccessReviewApplyConfiguration
WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithNamespace ¶
func (b *SubjectAccessReviewApplyConfiguration) WithNamespace(value string) *SubjectAccessReviewApplyConfiguration
WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithPath ¶
func (b *SubjectAccessReviewApplyConfiguration) WithPath(value string) *SubjectAccessReviewApplyConfiguration
WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithResource ¶
func (b *SubjectAccessReviewApplyConfiguration) WithResource(value string) *SubjectAccessReviewApplyConfiguration
WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithResourceName ¶
func (b *SubjectAccessReviewApplyConfiguration) WithResourceName(value string) *SubjectAccessReviewApplyConfiguration
WithResourceName sets the ResourceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceName field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithScopes ¶
func (b *SubjectAccessReviewApplyConfiguration) WithScopes(value apiauthorizationv1.OptionalScopes) *SubjectAccessReviewApplyConfiguration
WithScopes sets the Scopes field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Scopes field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithUser ¶
func (b *SubjectAccessReviewApplyConfiguration) WithUser(value string) *SubjectAccessReviewApplyConfiguration
WithUser sets the User field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the User field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithVerb ¶
func (b *SubjectAccessReviewApplyConfiguration) WithVerb(value string) *SubjectAccessReviewApplyConfiguration
WithVerb sets the Verb field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Verb field is set to the value of the last call.
func (*SubjectAccessReviewApplyConfiguration) WithVersion ¶
func (b *SubjectAccessReviewApplyConfiguration) WithVersion(value string) *SubjectAccessReviewApplyConfiguration
WithVersion sets the Version field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Version field is set to the value of the last call.
type UserRestrictionApplyConfiguration ¶
type UserRestrictionApplyConfiguration struct { Users []string `json:"users,omitempty"` Groups []string `json:"groups,omitempty"` Selectors []v1.LabelSelector `json:"labels,omitempty"` }
UserRestrictionApplyConfiguration represents an declarative configuration of the UserRestriction type for use with apply.
func UserRestriction ¶
func UserRestriction() *UserRestrictionApplyConfiguration
UserRestrictionApplyConfiguration constructs an declarative configuration of the UserRestriction type for use with apply.
func (*UserRestrictionApplyConfiguration) WithGroups ¶
func (b *UserRestrictionApplyConfiguration) WithGroups(values ...string) *UserRestrictionApplyConfiguration
WithGroups adds the given value to the Groups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Groups field.
func (*UserRestrictionApplyConfiguration) WithSelectors ¶
func (b *UserRestrictionApplyConfiguration) WithSelectors(values ...v1.LabelSelector) *UserRestrictionApplyConfiguration
WithSelectors adds the given value to the Selectors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Selectors field.
func (*UserRestrictionApplyConfiguration) WithUsers ¶
func (b *UserRestrictionApplyConfiguration) WithUsers(values ...string) *UserRestrictionApplyConfiguration
WithUsers adds the given value to the Users field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Users field.
Source Files ¶
- action.go
- clusterrole.go
- clusterrolebinding.go
- grouprestriction.go
- localresourceaccessreview.go
- localsubjectaccessreview.go
- policyrule.go
- resourceaccessreview.go
- role.go
- rolebinding.go
- rolebindingrestriction.go
- rolebindingrestrictionspec.go
- serviceaccountreference.go
- serviceaccountrestriction.go
- subjectaccessreview.go
- userrestriction.go