Documentation ¶
Index ¶
- Variables
- type AuditAnnotationDie
- func (d *AuditAnnotationDie) DeepCopy() *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieDiff(opts ...cmp.Option) string
- func (d *AuditAnnotationDie) DieFeed(r admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieFeedJSON(j []byte) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieFeedPtr(r *admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieFeedRawExtension(raw runtime.RawExtension) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieFeedYAML(y []byte) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieFeedYAMLFile(name string) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieImmutable(immutable bool) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *AuditAnnotationDie) DieRelease() admissionregistrationv1.AuditAnnotation
- func (d *AuditAnnotationDie) DieReleaseJSON() []byte
- func (d *AuditAnnotationDie) DieReleasePtr() *admissionregistrationv1.AuditAnnotation
- func (d *AuditAnnotationDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *AuditAnnotationDie) DieReleaseYAML() []byte
- func (d *AuditAnnotationDie) DieSeal() *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieSealFeed(r admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieSealFeedPtr(r *admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieSealRelease() admissionregistrationv1.AuditAnnotation
- func (d *AuditAnnotationDie) DieSealReleasePtr() *admissionregistrationv1.AuditAnnotation
- func (d *AuditAnnotationDie) DieStamp(fn func(r *admissionregistrationv1.AuditAnnotation)) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieStampAt(jp string, fn interface{}) *AuditAnnotationDie
- func (d *AuditAnnotationDie) DieWith(fns ...func(d *AuditAnnotationDie)) *AuditAnnotationDie
- func (d *AuditAnnotationDie) Key(v string) *AuditAnnotationDie
- func (d *AuditAnnotationDie) ValueExpression(v string) *AuditAnnotationDie
- type ExpressionWarningDie
- func (d *ExpressionWarningDie) DeepCopy() *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieDiff(opts ...cmp.Option) string
- func (d *ExpressionWarningDie) DieFeed(r admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieFeedJSON(j []byte) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieFeedPtr(r *admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieFeedRawExtension(raw runtime.RawExtension) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieFeedYAML(y []byte) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieFeedYAMLFile(name string) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieImmutable(immutable bool) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ExpressionWarningDie) DieRelease() admissionregistrationv1.ExpressionWarning
- func (d *ExpressionWarningDie) DieReleaseJSON() []byte
- func (d *ExpressionWarningDie) DieReleasePtr() *admissionregistrationv1.ExpressionWarning
- func (d *ExpressionWarningDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ExpressionWarningDie) DieReleaseYAML() []byte
- func (d *ExpressionWarningDie) DieSeal() *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieSealFeed(r admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieSealFeedPtr(r *admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieSealRelease() admissionregistrationv1.ExpressionWarning
- func (d *ExpressionWarningDie) DieSealReleasePtr() *admissionregistrationv1.ExpressionWarning
- func (d *ExpressionWarningDie) DieStamp(fn func(r *admissionregistrationv1.ExpressionWarning)) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieStampAt(jp string, fn interface{}) *ExpressionWarningDie
- func (d *ExpressionWarningDie) DieWith(fns ...func(d *ExpressionWarningDie)) *ExpressionWarningDie
- func (d *ExpressionWarningDie) FieldRef(v string) *ExpressionWarningDie
- func (d *ExpressionWarningDie) Warning(v string) *ExpressionWarningDie
- type MatchConditionDie
- func (d *MatchConditionDie) DeepCopy() *MatchConditionDie
- func (d *MatchConditionDie) DieDiff(opts ...cmp.Option) string
- func (d *MatchConditionDie) DieFeed(r admissionregistrationv1.MatchCondition) *MatchConditionDie
- func (d *MatchConditionDie) DieFeedJSON(j []byte) *MatchConditionDie
- func (d *MatchConditionDie) DieFeedPtr(r *admissionregistrationv1.MatchCondition) *MatchConditionDie
- func (d *MatchConditionDie) DieFeedRawExtension(raw runtime.RawExtension) *MatchConditionDie
- func (d *MatchConditionDie) DieFeedYAML(y []byte) *MatchConditionDie
- func (d *MatchConditionDie) DieFeedYAMLFile(name string) *MatchConditionDie
- func (d *MatchConditionDie) DieImmutable(immutable bool) *MatchConditionDie
- func (d *MatchConditionDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MatchConditionDie) DieRelease() admissionregistrationv1.MatchCondition
- func (d *MatchConditionDie) DieReleaseJSON() []byte
- func (d *MatchConditionDie) DieReleasePtr() *admissionregistrationv1.MatchCondition
- func (d *MatchConditionDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MatchConditionDie) DieReleaseYAML() []byte
- func (d *MatchConditionDie) DieSeal() *MatchConditionDie
- func (d *MatchConditionDie) DieSealFeed(r admissionregistrationv1.MatchCondition) *MatchConditionDie
- func (d *MatchConditionDie) DieSealFeedPtr(r *admissionregistrationv1.MatchCondition) *MatchConditionDie
- func (d *MatchConditionDie) DieSealRelease() admissionregistrationv1.MatchCondition
- func (d *MatchConditionDie) DieSealReleasePtr() *admissionregistrationv1.MatchCondition
- func (d *MatchConditionDie) DieStamp(fn func(r *admissionregistrationv1.MatchCondition)) *MatchConditionDie
- func (d *MatchConditionDie) DieStampAt(jp string, fn interface{}) *MatchConditionDie
- func (d *MatchConditionDie) DieWith(fns ...func(d *MatchConditionDie)) *MatchConditionDie
- func (d *MatchConditionDie) Expression(v string) *MatchConditionDie
- func (d *MatchConditionDie) Name(v string) *MatchConditionDie
- type MatchResourcesDie
- func (d *MatchResourcesDie) DeepCopy() *MatchResourcesDie
- func (d *MatchResourcesDie) DieDiff(opts ...cmp.Option) string
- func (d *MatchResourcesDie) DieFeed(r admissionregistrationv1.MatchResources) *MatchResourcesDie
- func (d *MatchResourcesDie) DieFeedJSON(j []byte) *MatchResourcesDie
- func (d *MatchResourcesDie) DieFeedPtr(r *admissionregistrationv1.MatchResources) *MatchResourcesDie
- func (d *MatchResourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *MatchResourcesDie
- func (d *MatchResourcesDie) DieFeedYAML(y []byte) *MatchResourcesDie
- func (d *MatchResourcesDie) DieFeedYAMLFile(name string) *MatchResourcesDie
- func (d *MatchResourcesDie) DieImmutable(immutable bool) *MatchResourcesDie
- func (d *MatchResourcesDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MatchResourcesDie) DieRelease() admissionregistrationv1.MatchResources
- func (d *MatchResourcesDie) DieReleaseJSON() []byte
- func (d *MatchResourcesDie) DieReleasePtr() *admissionregistrationv1.MatchResources
- func (d *MatchResourcesDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MatchResourcesDie) DieReleaseYAML() []byte
- func (d *MatchResourcesDie) DieSeal() *MatchResourcesDie
- func (d *MatchResourcesDie) DieSealFeed(r admissionregistrationv1.MatchResources) *MatchResourcesDie
- func (d *MatchResourcesDie) DieSealFeedPtr(r *admissionregistrationv1.MatchResources) *MatchResourcesDie
- func (d *MatchResourcesDie) DieSealRelease() admissionregistrationv1.MatchResources
- func (d *MatchResourcesDie) DieSealReleasePtr() *admissionregistrationv1.MatchResources
- func (d *MatchResourcesDie) DieStamp(fn func(r *admissionregistrationv1.MatchResources)) *MatchResourcesDie
- func (d *MatchResourcesDie) DieStampAt(jp string, fn interface{}) *MatchResourcesDie
- func (d *MatchResourcesDie) DieWith(fns ...func(d *MatchResourcesDie)) *MatchResourcesDie
- func (d *MatchResourcesDie) ExcludeResourceRules(v ...admissionregistrationv1.NamedRuleWithOperations) *MatchResourcesDie
- func (d *MatchResourcesDie) ExcludeResourceRulesDie(v ...*NamedRuleWithOperationsDie) *MatchResourcesDie
- func (d *MatchResourcesDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *MatchResourcesDie
- func (d *MatchResourcesDie) NamespaceSelector(v *apismetav1.LabelSelector) *MatchResourcesDie
- func (d *MatchResourcesDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MatchResourcesDie
- func (d *MatchResourcesDie) ObjectSelector(v *apismetav1.LabelSelector) *MatchResourcesDie
- func (d *MatchResourcesDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MatchResourcesDie
- func (d *MatchResourcesDie) ResourceRules(v ...admissionregistrationv1.NamedRuleWithOperations) *MatchResourcesDie
- func (d *MatchResourcesDie) ResourceRulesDie(v ...*NamedRuleWithOperationsDie) *MatchResourcesDie
- type MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) APIVersion(v string) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DeepCopy() *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DeepCopyObject() runtime.Object
- func (d *MutatingWebhookConfigurationDie) DieDefaultTypeMetadata() *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieDiff(opts ...cmp.Option) string
- func (d *MutatingWebhookConfigurationDie) DieFeed(r admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieFeedJSON(j []byte) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieFeedPtr(r *admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieFeedRawExtension(raw runtime.RawExtension) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieFeedYAML(y []byte) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieFeedYAMLFile(name string) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieImmutable(immutable bool) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MutatingWebhookConfigurationDie) DieRelease() admissionregistrationv1.MutatingWebhookConfiguration
- func (d *MutatingWebhookConfigurationDie) DieReleaseJSON() []byte
- func (d *MutatingWebhookConfigurationDie) DieReleasePtr() *admissionregistrationv1.MutatingWebhookConfiguration
- func (d *MutatingWebhookConfigurationDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MutatingWebhookConfigurationDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *MutatingWebhookConfigurationDie) DieReleaseYAML() []byte
- func (d *MutatingWebhookConfigurationDie) DieSeal() *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieSealFeed(r admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieSealFeedPtr(r *admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieSealRelease() admissionregistrationv1.MutatingWebhookConfiguration
- func (d *MutatingWebhookConfigurationDie) DieSealReleasePtr() *admissionregistrationv1.MutatingWebhookConfiguration
- func (d *MutatingWebhookConfigurationDie) DieStamp(fn func(r *admissionregistrationv1.MutatingWebhookConfiguration)) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieStampAt(jp string, fn interface{}) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) DieWith(fns ...func(d *MutatingWebhookConfigurationDie)) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) GetObjectKind() schema.ObjectKind
- func (d *MutatingWebhookConfigurationDie) Kind(v string) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) MarshalJSON() ([]byte, error)
- func (d *MutatingWebhookConfigurationDie) Metadata(v apismetav1.ObjectMeta) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) TypeMetadata(v apismetav1.TypeMeta) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) UnmarshalJSON(b []byte) error
- func (d *MutatingWebhookConfigurationDie) WebhookDie(v string, fn func(d *MutatingWebhookDie)) *MutatingWebhookConfigurationDie
- func (d *MutatingWebhookConfigurationDie) Webhooks(v ...admissionregistrationv1.MutatingWebhook) *MutatingWebhookConfigurationDie
- type MutatingWebhookDie
- func (d *MutatingWebhookDie) AdmissionReviewVersions(v ...string) *MutatingWebhookDie
- func (d *MutatingWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *MutatingWebhookDie
- func (d *MutatingWebhookDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DeepCopy() *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieDiff(opts ...cmp.Option) string
- func (d *MutatingWebhookDie) DieFeed(r admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieFeedJSON(j []byte) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieFeedPtr(r *admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieFeedYAML(y []byte) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieFeedYAMLFile(name string) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieImmutable(immutable bool) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *MutatingWebhookDie) DieRelease() admissionregistrationv1.MutatingWebhook
- func (d *MutatingWebhookDie) DieReleaseJSON() []byte
- func (d *MutatingWebhookDie) DieReleasePtr() *admissionregistrationv1.MutatingWebhook
- func (d *MutatingWebhookDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *MutatingWebhookDie) DieReleaseYAML() []byte
- func (d *MutatingWebhookDie) DieSeal() *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieSealFeed(r admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieSealFeedPtr(r *admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieSealRelease() admissionregistrationv1.MutatingWebhook
- func (d *MutatingWebhookDie) DieSealReleasePtr() *admissionregistrationv1.MutatingWebhook
- func (d *MutatingWebhookDie) DieStamp(fn func(r *admissionregistrationv1.MutatingWebhook)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieStampAt(jp string, fn interface{}) *MutatingWebhookDie
- func (d *MutatingWebhookDie) DieWith(fns ...func(d *MutatingWebhookDie)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *MutatingWebhookDie
- func (d *MutatingWebhookDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *MutatingWebhookDie
- func (d *MutatingWebhookDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *MutatingWebhookDie
- func (d *MutatingWebhookDie) Name(v string) *MutatingWebhookDie
- func (d *MutatingWebhookDie) NamespaceSelector(v *apismetav1.LabelSelector) *MutatingWebhookDie
- func (d *MutatingWebhookDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) ObjectSelector(v *apismetav1.LabelSelector) *MutatingWebhookDie
- func (d *MutatingWebhookDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MutatingWebhookDie
- func (d *MutatingWebhookDie) ReinvocationPolicy(v *admissionregistrationv1.ReinvocationPolicyType) *MutatingWebhookDie
- func (d *MutatingWebhookDie) Rules(v ...admissionregistrationv1.RuleWithOperations) *MutatingWebhookDie
- func (d *MutatingWebhookDie) RulesDie(v ...*RuleWithOperationsDie) *MutatingWebhookDie
- func (d *MutatingWebhookDie) SideEffects(v *admissionregistrationv1.SideEffectClass) *MutatingWebhookDie
- func (d *MutatingWebhookDie) TimeoutSeconds(v *int32) *MutatingWebhookDie
- type NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) APIGroups(v ...string) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) APIVersions(v ...string) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DeepCopy() *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieDiff(opts ...cmp.Option) string
- func (d *NamedRuleWithOperationsDie) DieFeed(r admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieFeedJSON(j []byte) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieFeedPtr(r *admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieFeedRawExtension(raw runtime.RawExtension) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieFeedYAML(y []byte) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieFeedYAMLFile(name string) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieImmutable(immutable bool) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *NamedRuleWithOperationsDie) DieRelease() admissionregistrationv1.NamedRuleWithOperations
- func (d *NamedRuleWithOperationsDie) DieReleaseJSON() []byte
- func (d *NamedRuleWithOperationsDie) DieReleasePtr() *admissionregistrationv1.NamedRuleWithOperations
- func (d *NamedRuleWithOperationsDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *NamedRuleWithOperationsDie) DieReleaseYAML() []byte
- func (d *NamedRuleWithOperationsDie) DieSeal() *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieSealFeed(r admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieSealFeedPtr(r *admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieSealRelease() admissionregistrationv1.NamedRuleWithOperations
- func (d *NamedRuleWithOperationsDie) DieSealReleasePtr() *admissionregistrationv1.NamedRuleWithOperations
- func (d *NamedRuleWithOperationsDie) DieStamp(fn func(r *admissionregistrationv1.NamedRuleWithOperations)) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieStampAt(jp string, fn interface{}) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) DieWith(fns ...func(d *NamedRuleWithOperationsDie)) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) Operations(v ...admissionregistrationv1.OperationType) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) ResourceNames(v ...string) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) Resources(v ...string) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) Rule(v admissionregistrationv1.Rule) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) RuleWithOperations(v admissionregistrationv1.RuleWithOperations) *NamedRuleWithOperationsDie
- func (d *NamedRuleWithOperationsDie) Scope(v *admissionregistrationv1.ScopeType) *NamedRuleWithOperationsDie
- type ParamKindDie
- func (d *ParamKindDie) APIVersion(v string) *ParamKindDie
- func (d *ParamKindDie) DeepCopy() *ParamKindDie
- func (d *ParamKindDie) DieDiff(opts ...cmp.Option) string
- func (d *ParamKindDie) DieFeed(r admissionregistrationv1.ParamKind) *ParamKindDie
- func (d *ParamKindDie) DieFeedJSON(j []byte) *ParamKindDie
- func (d *ParamKindDie) DieFeedPtr(r *admissionregistrationv1.ParamKind) *ParamKindDie
- func (d *ParamKindDie) DieFeedRawExtension(raw runtime.RawExtension) *ParamKindDie
- func (d *ParamKindDie) DieFeedYAML(y []byte) *ParamKindDie
- func (d *ParamKindDie) DieFeedYAMLFile(name string) *ParamKindDie
- func (d *ParamKindDie) DieImmutable(immutable bool) *ParamKindDie
- func (d *ParamKindDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ParamKindDie) DieRelease() admissionregistrationv1.ParamKind
- func (d *ParamKindDie) DieReleaseJSON() []byte
- func (d *ParamKindDie) DieReleasePtr() *admissionregistrationv1.ParamKind
- func (d *ParamKindDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ParamKindDie) DieReleaseYAML() []byte
- func (d *ParamKindDie) DieSeal() *ParamKindDie
- func (d *ParamKindDie) DieSealFeed(r admissionregistrationv1.ParamKind) *ParamKindDie
- func (d *ParamKindDie) DieSealFeedPtr(r *admissionregistrationv1.ParamKind) *ParamKindDie
- func (d *ParamKindDie) DieSealRelease() admissionregistrationv1.ParamKind
- func (d *ParamKindDie) DieSealReleasePtr() *admissionregistrationv1.ParamKind
- func (d *ParamKindDie) DieStamp(fn func(r *admissionregistrationv1.ParamKind)) *ParamKindDie
- func (d *ParamKindDie) DieStampAt(jp string, fn interface{}) *ParamKindDie
- func (d *ParamKindDie) DieWith(fns ...func(d *ParamKindDie)) *ParamKindDie
- func (d *ParamKindDie) Kind(v string) *ParamKindDie
- type ParamRefDie
- func (d *ParamRefDie) DeepCopy() *ParamRefDie
- func (d *ParamRefDie) DieDiff(opts ...cmp.Option) string
- func (d *ParamRefDie) DieFeed(r admissionregistrationv1.ParamRef) *ParamRefDie
- func (d *ParamRefDie) DieFeedJSON(j []byte) *ParamRefDie
- func (d *ParamRefDie) DieFeedPtr(r *admissionregistrationv1.ParamRef) *ParamRefDie
- func (d *ParamRefDie) DieFeedRawExtension(raw runtime.RawExtension) *ParamRefDie
- func (d *ParamRefDie) DieFeedYAML(y []byte) *ParamRefDie
- func (d *ParamRefDie) DieFeedYAMLFile(name string) *ParamRefDie
- func (d *ParamRefDie) DieImmutable(immutable bool) *ParamRefDie
- func (d *ParamRefDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ParamRefDie) DieRelease() admissionregistrationv1.ParamRef
- func (d *ParamRefDie) DieReleaseJSON() []byte
- func (d *ParamRefDie) DieReleasePtr() *admissionregistrationv1.ParamRef
- func (d *ParamRefDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ParamRefDie) DieReleaseYAML() []byte
- func (d *ParamRefDie) DieSeal() *ParamRefDie
- func (d *ParamRefDie) DieSealFeed(r admissionregistrationv1.ParamRef) *ParamRefDie
- func (d *ParamRefDie) DieSealFeedPtr(r *admissionregistrationv1.ParamRef) *ParamRefDie
- func (d *ParamRefDie) DieSealRelease() admissionregistrationv1.ParamRef
- func (d *ParamRefDie) DieSealReleasePtr() *admissionregistrationv1.ParamRef
- func (d *ParamRefDie) DieStamp(fn func(r *admissionregistrationv1.ParamRef)) *ParamRefDie
- func (d *ParamRefDie) DieStampAt(jp string, fn interface{}) *ParamRefDie
- func (d *ParamRefDie) DieWith(fns ...func(d *ParamRefDie)) *ParamRefDie
- func (d *ParamRefDie) Name(v string) *ParamRefDie
- func (d *ParamRefDie) Namespace(v string) *ParamRefDie
- func (d *ParamRefDie) ParameterNotFoundAction(v *admissionregistrationv1.ParameterNotFoundActionType) *ParamRefDie
- func (d *ParamRefDie) Selector(v *apismetav1.LabelSelector) *ParamRefDie
- func (d *ParamRefDie) SelectorDie(fn func(d *metav1.LabelSelectorDie)) *ParamRefDie
- type RuleDie
- func (d *RuleDie) APIGroups(v ...string) *RuleDie
- func (d *RuleDie) APIVersions(v ...string) *RuleDie
- func (d *RuleDie) DeepCopy() *RuleDie
- func (d *RuleDie) DieDiff(opts ...cmp.Option) string
- func (d *RuleDie) DieFeed(r admissionregistrationv1.Rule) *RuleDie
- func (d *RuleDie) DieFeedJSON(j []byte) *RuleDie
- func (d *RuleDie) DieFeedPtr(r *admissionregistrationv1.Rule) *RuleDie
- func (d *RuleDie) DieFeedRawExtension(raw runtime.RawExtension) *RuleDie
- func (d *RuleDie) DieFeedYAML(y []byte) *RuleDie
- func (d *RuleDie) DieFeedYAMLFile(name string) *RuleDie
- func (d *RuleDie) DieImmutable(immutable bool) *RuleDie
- func (d *RuleDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *RuleDie) DieRelease() admissionregistrationv1.Rule
- func (d *RuleDie) DieReleaseJSON() []byte
- func (d *RuleDie) DieReleasePtr() *admissionregistrationv1.Rule
- func (d *RuleDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *RuleDie) DieReleaseYAML() []byte
- func (d *RuleDie) DieSeal() *RuleDie
- func (d *RuleDie) DieSealFeed(r admissionregistrationv1.Rule) *RuleDie
- func (d *RuleDie) DieSealFeedPtr(r *admissionregistrationv1.Rule) *RuleDie
- func (d *RuleDie) DieSealRelease() admissionregistrationv1.Rule
- func (d *RuleDie) DieSealReleasePtr() *admissionregistrationv1.Rule
- func (d *RuleDie) DieStamp(fn func(r *admissionregistrationv1.Rule)) *RuleDie
- func (d *RuleDie) DieStampAt(jp string, fn interface{}) *RuleDie
- func (d *RuleDie) DieWith(fns ...func(d *RuleDie)) *RuleDie
- func (d *RuleDie) Resources(v ...string) *RuleDie
- func (d *RuleDie) Scope(v *admissionregistrationv1.ScopeType) *RuleDie
- type RuleWithOperationsDie
- func (d *RuleWithOperationsDie) APIGroups(v ...string) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) APIVersions(v ...string) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DeepCopy() *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieDiff(opts ...cmp.Option) string
- func (d *RuleWithOperationsDie) DieFeed(r admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieFeedJSON(j []byte) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieFeedPtr(r *admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieFeedRawExtension(raw runtime.RawExtension) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieFeedYAML(y []byte) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieFeedYAMLFile(name string) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieImmutable(immutable bool) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *RuleWithOperationsDie) DieRelease() admissionregistrationv1.RuleWithOperations
- func (d *RuleWithOperationsDie) DieReleaseJSON() []byte
- func (d *RuleWithOperationsDie) DieReleasePtr() *admissionregistrationv1.RuleWithOperations
- func (d *RuleWithOperationsDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *RuleWithOperationsDie) DieReleaseYAML() []byte
- func (d *RuleWithOperationsDie) DieSeal() *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieSealFeed(r admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieSealFeedPtr(r *admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieSealRelease() admissionregistrationv1.RuleWithOperations
- func (d *RuleWithOperationsDie) DieSealReleasePtr() *admissionregistrationv1.RuleWithOperations
- func (d *RuleWithOperationsDie) DieStamp(fn func(r *admissionregistrationv1.RuleWithOperations)) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieStampAt(jp string, fn interface{}) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) DieWith(fns ...func(d *RuleWithOperationsDie)) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) Operations(v ...admissionregistrationv1.OperationType) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) Resources(v ...string) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) Rule(v admissionregistrationv1.Rule) *RuleWithOperationsDie
- func (d *RuleWithOperationsDie) Scope(v *admissionregistrationv1.ScopeType) *RuleWithOperationsDie
- type ServiceReferenceDie
- func (d *ServiceReferenceDie) DeepCopy() *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieDiff(opts ...cmp.Option) string
- func (d *ServiceReferenceDie) DieFeed(r admissionregistrationv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedPtr(r *admissionregistrationv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieFeedYAMLFile(name string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieImmutable(immutable bool) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ServiceReferenceDie) DieRelease() admissionregistrationv1.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseJSON() []byte
- func (d *ServiceReferenceDie) DieReleasePtr() *admissionregistrationv1.ServiceReference
- func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ServiceReferenceDie) DieReleaseYAML() []byte
- func (d *ServiceReferenceDie) DieSeal() *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieSealFeed(r admissionregistrationv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieSealFeedPtr(r *admissionregistrationv1.ServiceReference) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieSealRelease() admissionregistrationv1.ServiceReference
- func (d *ServiceReferenceDie) DieSealReleasePtr() *admissionregistrationv1.ServiceReference
- func (d *ServiceReferenceDie) DieStamp(fn func(r *admissionregistrationv1.ServiceReference)) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieStampAt(jp string, fn interface{}) *ServiceReferenceDie
- func (d *ServiceReferenceDie) DieWith(fns ...func(d *ServiceReferenceDie)) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Name(v string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Namespace(v string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Path(v *string) *ServiceReferenceDie
- func (d *ServiceReferenceDie) Port(v *int32) *ServiceReferenceDie
- type TypeCheckingDie
- func (d *TypeCheckingDie) DeepCopy() *TypeCheckingDie
- func (d *TypeCheckingDie) DieDiff(opts ...cmp.Option) string
- func (d *TypeCheckingDie) DieFeed(r admissionregistrationv1.TypeChecking) *TypeCheckingDie
- func (d *TypeCheckingDie) DieFeedJSON(j []byte) *TypeCheckingDie
- func (d *TypeCheckingDie) DieFeedPtr(r *admissionregistrationv1.TypeChecking) *TypeCheckingDie
- func (d *TypeCheckingDie) DieFeedRawExtension(raw runtime.RawExtension) *TypeCheckingDie
- func (d *TypeCheckingDie) DieFeedYAML(y []byte) *TypeCheckingDie
- func (d *TypeCheckingDie) DieFeedYAMLFile(name string) *TypeCheckingDie
- func (d *TypeCheckingDie) DieImmutable(immutable bool) *TypeCheckingDie
- func (d *TypeCheckingDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *TypeCheckingDie) DieRelease() admissionregistrationv1.TypeChecking
- func (d *TypeCheckingDie) DieReleaseJSON() []byte
- func (d *TypeCheckingDie) DieReleasePtr() *admissionregistrationv1.TypeChecking
- func (d *TypeCheckingDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *TypeCheckingDie) DieReleaseYAML() []byte
- func (d *TypeCheckingDie) DieSeal() *TypeCheckingDie
- func (d *TypeCheckingDie) DieSealFeed(r admissionregistrationv1.TypeChecking) *TypeCheckingDie
- func (d *TypeCheckingDie) DieSealFeedPtr(r *admissionregistrationv1.TypeChecking) *TypeCheckingDie
- func (d *TypeCheckingDie) DieSealRelease() admissionregistrationv1.TypeChecking
- func (d *TypeCheckingDie) DieSealReleasePtr() *admissionregistrationv1.TypeChecking
- func (d *TypeCheckingDie) DieStamp(fn func(r *admissionregistrationv1.TypeChecking)) *TypeCheckingDie
- func (d *TypeCheckingDie) DieStampAt(jp string, fn interface{}) *TypeCheckingDie
- func (d *TypeCheckingDie) DieWith(fns ...func(d *TypeCheckingDie)) *TypeCheckingDie
- func (d *TypeCheckingDie) ExpressionWarnings(v ...admissionregistrationv1.ExpressionWarning) *TypeCheckingDie
- func (d *TypeCheckingDie) ExpressionWarningsDie(v ...*ExpressionWarningDie) *TypeCheckingDie
- type ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) APIVersion(v string) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DeepCopy() *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DeepCopyObject() runtime.Object
- func (d *ValidatingAdmissionPolicyBindingDie) DieDefaultTypeMetadata() *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingAdmissionPolicyBindingDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyBinding
- func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseJSON() []byte
- func (d *ValidatingAdmissionPolicyBindingDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBinding
- func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseYAML() []byte
- func (d *ValidatingAdmissionPolicyBindingDie) DieSeal() *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyBinding
- func (d *ValidatingAdmissionPolicyBindingDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBinding
- func (d *ValidatingAdmissionPolicyBindingDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding)) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyBindingDie)) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) GetObjectKind() schema.ObjectKind
- func (d *ValidatingAdmissionPolicyBindingDie) Kind(v string) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) MarshalJSON() ([]byte, error)
- func (d *ValidatingAdmissionPolicyBindingDie) Metadata(v apismetav1.ObjectMeta) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) Spec(v admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) SpecDie(fn func(d *ValidatingAdmissionPolicyBindingSpecDie)) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingAdmissionPolicyBindingDie
- func (d *ValidatingAdmissionPolicyBindingDie) UnmarshalJSON(b []byte) error
- type ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DeepCopy() *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseJSON() []byte
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseYAML() []byte
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSeal() *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec)) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyBindingSpecDie)) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) MatchResources(v *admissionregistrationv1.MatchResources) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) MatchResourcesDie(fn func(d *MatchResourcesDie)) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) ParamRef(v *admissionregistrationv1.ParamRef) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) ParamRefDie(fn func(d *ParamRefDie)) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) PolicyName(v string) *ValidatingAdmissionPolicyBindingSpecDie
- func (d *ValidatingAdmissionPolicyBindingSpecDie) ValidationActions(v ...admissionregistrationv1.ValidationAction) *ValidatingAdmissionPolicyBindingSpecDie
- type ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) APIVersion(v string) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DeepCopy() *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DeepCopyObject() runtime.Object
- func (d *ValidatingAdmissionPolicyDie) DieDefaultTypeMetadata() *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingAdmissionPolicyDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingAdmissionPolicyDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicy
- func (d *ValidatingAdmissionPolicyDie) DieReleaseJSON() []byte
- func (d *ValidatingAdmissionPolicyDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicy
- func (d *ValidatingAdmissionPolicyDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingAdmissionPolicyDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *ValidatingAdmissionPolicyDie) DieReleaseYAML() []byte
- func (d *ValidatingAdmissionPolicyDie) DieSeal() *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicy
- func (d *ValidatingAdmissionPolicyDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicy
- func (d *ValidatingAdmissionPolicyDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicy)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyDie)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) GetObjectKind() schema.ObjectKind
- func (d *ValidatingAdmissionPolicyDie) Kind(v string) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) MarshalJSON() ([]byte, error)
- func (d *ValidatingAdmissionPolicyDie) Metadata(v apismetav1.ObjectMeta) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) Spec(v admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) SpecDie(fn func(d *ValidatingAdmissionPolicySpecDie)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) Status(v admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) StatusDie(fn func(d *ValidatingAdmissionPolicyStatusDie)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingAdmissionPolicyDie
- func (d *ValidatingAdmissionPolicyDie) UnmarshalJSON(b []byte) error
- type ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) AuditAnnotations(v ...admissionregistrationv1.AuditAnnotation) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) AuditAnnotationsDie(v ...*AuditAnnotationDie) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DeepCopy() *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingAdmissionPolicySpecDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingAdmissionPolicySpecDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicySpec
- func (d *ValidatingAdmissionPolicySpecDie) DieReleaseJSON() []byte
- func (d *ValidatingAdmissionPolicySpecDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicySpec
- func (d *ValidatingAdmissionPolicySpecDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingAdmissionPolicySpecDie) DieReleaseYAML() []byte
- func (d *ValidatingAdmissionPolicySpecDie) DieSeal() *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicySpec
- func (d *ValidatingAdmissionPolicySpecDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicySpec
- func (d *ValidatingAdmissionPolicySpecDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicySpec)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) DieWith(fns ...func(d *ValidatingAdmissionPolicySpecDie)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) MatchConstraints(v *admissionregistrationv1.MatchResources) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) MatchConstraintsDie(fn func(d *MatchResourcesDie)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) ParamKind(v *admissionregistrationv1.ParamKind) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) ParamKindDie(fn func(d *ParamKindDie)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) Validations(v ...admissionregistrationv1.Validation) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) ValidationsDie(v ...*ValidationDie) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) VariableDie(v string, fn func(d *VariableDie)) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) Variables(v ...admissionregistrationv1.Variable) *ValidatingAdmissionPolicySpecDie
- func (d *ValidatingAdmissionPolicySpecDie) VariablesDie(name string, fn func(d *VariableDie)) *ValidatingAdmissionPolicySpecDie
- type ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) Conditions(v ...apismetav1.Condition) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) ConditionsDie(v ...*metav1.ConditionDie) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DeepCopy() *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingAdmissionPolicyStatusDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyStatus
- func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseJSON() []byte
- func (d *ValidatingAdmissionPolicyStatusDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyStatus
- func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseYAML() []byte
- func (d *ValidatingAdmissionPolicyStatusDie) DieSeal() *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyStatus
- func (d *ValidatingAdmissionPolicyStatusDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyStatus
- func (d *ValidatingAdmissionPolicyStatusDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus)) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyStatusDie)) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) ObservedGeneration(v int64) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) TypeChecking(v *admissionregistrationv1.TypeChecking) *ValidatingAdmissionPolicyStatusDie
- func (d *ValidatingAdmissionPolicyStatusDie) TypeCheckingDie(fn func(d *TypeCheckingDie)) *ValidatingAdmissionPolicyStatusDie
- type ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) APIVersion(v string) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DeepCopy() *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DeepCopyObject() runtime.Object
- func (d *ValidatingWebhookConfigurationDie) DieDefaultTypeMetadata() *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingWebhookConfigurationDie) DieFeed(r admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieFeedJSON(j []byte) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieFeedPtr(r *admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieFeedYAML(y []byte) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieFeedYAMLFile(name string) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieImmutable(immutable bool) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingWebhookConfigurationDie) DieRelease() admissionregistrationv1.ValidatingWebhookConfiguration
- func (d *ValidatingWebhookConfigurationDie) DieReleaseJSON() []byte
- func (d *ValidatingWebhookConfigurationDie) DieReleasePtr() *admissionregistrationv1.ValidatingWebhookConfiguration
- func (d *ValidatingWebhookConfigurationDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingWebhookConfigurationDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *ValidatingWebhookConfigurationDie) DieReleaseYAML() []byte
- func (d *ValidatingWebhookConfigurationDie) DieSeal() *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieSealFeed(r admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieSealRelease() admissionregistrationv1.ValidatingWebhookConfiguration
- func (d *ValidatingWebhookConfigurationDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingWebhookConfiguration
- func (d *ValidatingWebhookConfigurationDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingWebhookConfiguration)) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieStampAt(jp string, fn interface{}) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) DieWith(fns ...func(d *ValidatingWebhookConfigurationDie)) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) GetObjectKind() schema.ObjectKind
- func (d *ValidatingWebhookConfigurationDie) Kind(v string) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) MarshalJSON() ([]byte, error)
- func (d *ValidatingWebhookConfigurationDie) Metadata(v apismetav1.ObjectMeta) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) UnmarshalJSON(b []byte) error
- func (d *ValidatingWebhookConfigurationDie) WebhookDie(v string, fn func(d *ValidatingWebhookDie)) *ValidatingWebhookConfigurationDie
- func (d *ValidatingWebhookConfigurationDie) Webhooks(v ...admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookConfigurationDie
- type ValidatingWebhookDie
- func (d *ValidatingWebhookDie) AdmissionReviewVersions(v ...string) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DeepCopy() *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidatingWebhookDie) DieFeed(r admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieFeedJSON(j []byte) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieFeedPtr(r *admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieFeedYAML(y []byte) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieFeedYAMLFile(name string) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieImmutable(immutable bool) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidatingWebhookDie) DieRelease() admissionregistrationv1.ValidatingWebhook
- func (d *ValidatingWebhookDie) DieReleaseJSON() []byte
- func (d *ValidatingWebhookDie) DieReleasePtr() *admissionregistrationv1.ValidatingWebhook
- func (d *ValidatingWebhookDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidatingWebhookDie) DieReleaseYAML() []byte
- func (d *ValidatingWebhookDie) DieSeal() *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieSealFeed(r admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieSealRelease() admissionregistrationv1.ValidatingWebhook
- func (d *ValidatingWebhookDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingWebhook
- func (d *ValidatingWebhookDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingWebhook)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieStampAt(jp string, fn interface{}) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) DieWith(fns ...func(d *ValidatingWebhookDie)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) Name(v string) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) NamespaceSelector(v *apismetav1.LabelSelector) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) ObjectSelector(v *apismetav1.LabelSelector) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) Rules(v ...admissionregistrationv1.RuleWithOperations) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) RulesDie(v ...*RuleWithOperationsDie) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) SideEffects(v *admissionregistrationv1.SideEffectClass) *ValidatingWebhookDie
- func (d *ValidatingWebhookDie) TimeoutSeconds(v *int32) *ValidatingWebhookDie
- type ValidationDie
- func (d *ValidationDie) DeepCopy() *ValidationDie
- func (d *ValidationDie) DieDiff(opts ...cmp.Option) string
- func (d *ValidationDie) DieFeed(r admissionregistrationv1.Validation) *ValidationDie
- func (d *ValidationDie) DieFeedJSON(j []byte) *ValidationDie
- func (d *ValidationDie) DieFeedPtr(r *admissionregistrationv1.Validation) *ValidationDie
- func (d *ValidationDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidationDie
- func (d *ValidationDie) DieFeedYAML(y []byte) *ValidationDie
- func (d *ValidationDie) DieFeedYAMLFile(name string) *ValidationDie
- func (d *ValidationDie) DieImmutable(immutable bool) *ValidationDie
- func (d *ValidationDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *ValidationDie) DieRelease() admissionregistrationv1.Validation
- func (d *ValidationDie) DieReleaseJSON() []byte
- func (d *ValidationDie) DieReleasePtr() *admissionregistrationv1.Validation
- func (d *ValidationDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ValidationDie) DieReleaseYAML() []byte
- func (d *ValidationDie) DieSeal() *ValidationDie
- func (d *ValidationDie) DieSealFeed(r admissionregistrationv1.Validation) *ValidationDie
- func (d *ValidationDie) DieSealFeedPtr(r *admissionregistrationv1.Validation) *ValidationDie
- func (d *ValidationDie) DieSealRelease() admissionregistrationv1.Validation
- func (d *ValidationDie) DieSealReleasePtr() *admissionregistrationv1.Validation
- func (d *ValidationDie) DieStamp(fn func(r *admissionregistrationv1.Validation)) *ValidationDie
- func (d *ValidationDie) DieStampAt(jp string, fn interface{}) *ValidationDie
- func (d *ValidationDie) DieWith(fns ...func(d *ValidationDie)) *ValidationDie
- func (d *ValidationDie) Expression(v string) *ValidationDie
- func (d *ValidationDie) Message(v string) *ValidationDie
- func (d *ValidationDie) MessageExpression(v string) *ValidationDie
- func (d *ValidationDie) Reason(v *apismetav1.StatusReason) *ValidationDie
- type VariableDie
- func (d *VariableDie) DeepCopy() *VariableDie
- func (d *VariableDie) DieDiff(opts ...cmp.Option) string
- func (d *VariableDie) DieFeed(r admissionregistrationv1.Variable) *VariableDie
- func (d *VariableDie) DieFeedJSON(j []byte) *VariableDie
- func (d *VariableDie) DieFeedPtr(r *admissionregistrationv1.Variable) *VariableDie
- func (d *VariableDie) DieFeedRawExtension(raw runtime.RawExtension) *VariableDie
- func (d *VariableDie) DieFeedYAML(y []byte) *VariableDie
- func (d *VariableDie) DieFeedYAMLFile(name string) *VariableDie
- func (d *VariableDie) DieImmutable(immutable bool) *VariableDie
- func (d *VariableDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *VariableDie) DieRelease() admissionregistrationv1.Variable
- func (d *VariableDie) DieReleaseJSON() []byte
- func (d *VariableDie) DieReleasePtr() *admissionregistrationv1.Variable
- func (d *VariableDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *VariableDie) DieReleaseYAML() []byte
- func (d *VariableDie) DieSeal() *VariableDie
- func (d *VariableDie) DieSealFeed(r admissionregistrationv1.Variable) *VariableDie
- func (d *VariableDie) DieSealFeedPtr(r *admissionregistrationv1.Variable) *VariableDie
- func (d *VariableDie) DieSealRelease() admissionregistrationv1.Variable
- func (d *VariableDie) DieSealReleasePtr() *admissionregistrationv1.Variable
- func (d *VariableDie) DieStamp(fn func(r *admissionregistrationv1.Variable)) *VariableDie
- func (d *VariableDie) DieStampAt(jp string, fn interface{}) *VariableDie
- func (d *VariableDie) DieWith(fns ...func(d *VariableDie)) *VariableDie
- func (d *VariableDie) Expression(v string) *VariableDie
- func (d *VariableDie) Name(v string) *VariableDie
- type WebhookClientConfigDie
- func (d *WebhookClientConfigDie) CABundle(v []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DeepCopy() *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieDiff(opts ...cmp.Option) string
- func (d *WebhookClientConfigDie) DieFeed(r admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedJSON(j []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedPtr(r *admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedYAML(y []byte) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieFeedYAMLFile(name string) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieImmutable(immutable bool) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DiePatch(patchType types.PatchType) ([]byte, error)
- func (d *WebhookClientConfigDie) DieRelease() admissionregistrationv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieReleaseJSON() []byte
- func (d *WebhookClientConfigDie) DieReleasePtr() *admissionregistrationv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *WebhookClientConfigDie) DieReleaseYAML() []byte
- func (d *WebhookClientConfigDie) DieSeal() *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieSealFeed(r admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieSealFeedPtr(r *admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieSealRelease() admissionregistrationv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieSealReleasePtr() *admissionregistrationv1.WebhookClientConfig
- func (d *WebhookClientConfigDie) DieStamp(fn func(r *admissionregistrationv1.WebhookClientConfig)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieStampAt(jp string, fn interface{}) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) DieWith(fns ...func(d *WebhookClientConfigDie)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) Service(v *admissionregistrationv1.ServiceReference) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) ServiceDie(fn func(d *ServiceReferenceDie)) *WebhookClientConfigDie
- func (d *WebhookClientConfigDie) URL(v *string) *WebhookClientConfigDie
Constants ¶
This section is empty.
Variables ¶
var AuditAnnotationBlank = (&AuditAnnotationDie{}).DieFeed(admissionregistrationv1.AuditAnnotation{})
var ExpressionWarningBlank = (&ExpressionWarningDie{}).DieFeed(admissionregistrationv1.ExpressionWarning{})
var MatchConditionBlank = (&MatchConditionDie{}).DieFeed(admissionregistrationv1.MatchCondition{})
var MatchResourcesBlank = (&MatchResourcesDie{}).DieFeed(admissionregistrationv1.MatchResources{})
var MutatingWebhookBlank = (&MutatingWebhookDie{}).DieFeed(admissionregistrationv1.MutatingWebhook{})
var MutatingWebhookConfigurationBlank = (&MutatingWebhookConfigurationDie{}).DieFeed(admissionregistrationv1.MutatingWebhookConfiguration{})
var NamedRuleWithOperationsBlank = (&NamedRuleWithOperationsDie{}).DieFeed(admissionregistrationv1.NamedRuleWithOperations{})
var ParamKindBlank = (&ParamKindDie{}).DieFeed(admissionregistrationv1.ParamKind{})
var ParamRefBlank = (&ParamRefDie{}).DieFeed(admissionregistrationv1.ParamRef{})
var RuleBlank = (&RuleDie{}).DieFeed(admissionregistrationv1.Rule{})
var RuleWithOperationsBlank = (&RuleWithOperationsDie{}).DieFeed(admissionregistrationv1.RuleWithOperations{})
var ServiceReferenceBlank = (&ServiceReferenceDie{}).DieFeed(admissionregistrationv1.ServiceReference{})
var TypeCheckingBlank = (&TypeCheckingDie{}).DieFeed(admissionregistrationv1.TypeChecking{})
var ValidatingAdmissionPolicyBindingBlank = (&ValidatingAdmissionPolicyBindingDie{}).DieFeed(admissionregistrationv1.ValidatingAdmissionPolicyBinding{})
var ValidatingAdmissionPolicyBindingSpecBlank = (&ValidatingAdmissionPolicyBindingSpecDie{}).DieFeed(admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec{})
var ValidatingAdmissionPolicyBlank = (&ValidatingAdmissionPolicyDie{}).DieFeed(admissionregistrationv1.ValidatingAdmissionPolicy{})
var ValidatingAdmissionPolicySpecBlank = (&ValidatingAdmissionPolicySpecDie{}).DieFeed(admissionregistrationv1.ValidatingAdmissionPolicySpec{})
var ValidatingAdmissionPolicyStatusBlank = (&ValidatingAdmissionPolicyStatusDie{}).DieFeed(admissionregistrationv1.ValidatingAdmissionPolicyStatus{})
var ValidatingWebhookBlank = (&ValidatingWebhookDie{}).DieFeed(admissionregistrationv1.ValidatingWebhook{})
var ValidatingWebhookConfigurationBlank = (&ValidatingWebhookConfigurationDie{}).DieFeed(admissionregistrationv1.ValidatingWebhookConfiguration{})
var ValidationBlank = (&ValidationDie{}).DieFeed(admissionregistrationv1.Validation{})
var VariableBlank = (&VariableDie{}).DieFeed(admissionregistrationv1.Variable{})
var WebhookClientConfigBlank = (&WebhookClientConfigDie{}).DieFeed(admissionregistrationv1.WebhookClientConfig{})
Functions ¶
This section is empty.
Types ¶
type AuditAnnotationDie ¶ added in v0.13.0
type AuditAnnotationDie struct {
// contains filtered or unexported fields
}
func (*AuditAnnotationDie) DeepCopy ¶ added in v0.13.0
func (d *AuditAnnotationDie) DeepCopy() *AuditAnnotationDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*AuditAnnotationDie) DieDiff ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*AuditAnnotationDie) DieFeed ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeed(r admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
DieFeed returns a new die with the provided resource.
func (*AuditAnnotationDie) DieFeedJSON ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeedJSON(j []byte) *AuditAnnotationDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*AuditAnnotationDie) DieFeedPtr ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeedPtr(r *admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*AuditAnnotationDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeedRawExtension(raw runtime.RawExtension) *AuditAnnotationDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*AuditAnnotationDie) DieFeedYAML ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeedYAML(y []byte) *AuditAnnotationDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*AuditAnnotationDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieFeedYAMLFile(name string) *AuditAnnotationDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*AuditAnnotationDie) DieImmutable ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieImmutable(immutable bool) *AuditAnnotationDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*AuditAnnotationDie) DiePatch ¶ added in v0.13.0
func (d *AuditAnnotationDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*AuditAnnotationDie) DieRelease ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieRelease() admissionregistrationv1.AuditAnnotation
DieRelease returns the resource managed by the die.
func (*AuditAnnotationDie) DieReleaseJSON ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*AuditAnnotationDie) DieReleasePtr ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieReleasePtr() *admissionregistrationv1.AuditAnnotation
DieReleasePtr returns a pointer to the resource managed by the die.
func (*AuditAnnotationDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*AuditAnnotationDie) DieReleaseYAML ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*AuditAnnotationDie) DieSeal ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieSeal() *AuditAnnotationDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*AuditAnnotationDie) DieSealFeed ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieSealFeed(r admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*AuditAnnotationDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieSealFeedPtr(r *admissionregistrationv1.AuditAnnotation) *AuditAnnotationDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*AuditAnnotationDie) DieSealRelease ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieSealRelease() admissionregistrationv1.AuditAnnotation
DieSealRelease returns the sealed resource managed by the die.
func (*AuditAnnotationDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieSealReleasePtr() *admissionregistrationv1.AuditAnnotation
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*AuditAnnotationDie) DieStamp ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieStamp(fn func(r *admissionregistrationv1.AuditAnnotation)) *AuditAnnotationDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*AuditAnnotationDie) DieStampAt ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieStampAt(jp string, fn interface{}) *AuditAnnotationDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*AuditAnnotationDie) DieWith ¶ added in v0.13.0
func (d *AuditAnnotationDie) DieWith(fns ...func(d *AuditAnnotationDie)) *AuditAnnotationDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*AuditAnnotationDie) Key ¶ added in v0.13.0
func (d *AuditAnnotationDie) Key(v string) *AuditAnnotationDie
key specifies the audit annotation key. The audit annotation keys of
a ValidatingAdmissionPolicy must be unique. The key must be a qualified
name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
The key is combined with the resource name of the ¶
ValidatingAdmissionPolicy to construct an audit annotation key:
"{ValidatingAdmissionPolicy name}/{key}".
If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy ¶
and the same audit annotation key, the annotation key will be identical.
In this case, the first annotation written with the key will be included ¶
in the audit event and all subsequent annotations with the same key
will be discarded.
Required.
func (*AuditAnnotationDie) ValueExpression ¶ added in v0.13.0
func (d *AuditAnnotationDie) ValueExpression(v string) *AuditAnnotationDie
valueExpression represents the expression which is evaluated by CEL to
produce an audit annotation value. The expression must evaluate to either
a string or null value. If the expression evaluates to a string, the
audit annotation is included with the string value. If the expression
evaluates to null or empty string the audit annotation will be omitted.
The valueExpression may be no longer than 5kb in length.
If the result of the valueExpression is more than 10kb in length, it ¶
will be truncated to 10kb.
If multiple ValidatingAdmissionPolicyBinding resources match an ¶
API request, then the valueExpression will be evaluated for ¶
each binding. All unique values produced by the valueExpressions
will be joined together in a comma-separated list.
Required.
type ExpressionWarningDie ¶ added in v0.13.0
type ExpressionWarningDie struct {
// contains filtered or unexported fields
}
func (*ExpressionWarningDie) DeepCopy ¶ added in v0.13.0
func (d *ExpressionWarningDie) DeepCopy() *ExpressionWarningDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ExpressionWarningDie) DieDiff ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ExpressionWarningDie) DieFeed ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeed(r admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
DieFeed returns a new die with the provided resource.
func (*ExpressionWarningDie) DieFeedJSON ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeedJSON(j []byte) *ExpressionWarningDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ExpressionWarningDie) DieFeedPtr ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeedPtr(r *admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ExpressionWarningDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeedRawExtension(raw runtime.RawExtension) *ExpressionWarningDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ExpressionWarningDie) DieFeedYAML ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeedYAML(y []byte) *ExpressionWarningDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ExpressionWarningDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieFeedYAMLFile(name string) *ExpressionWarningDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ExpressionWarningDie) DieImmutable ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieImmutable(immutable bool) *ExpressionWarningDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ExpressionWarningDie) DiePatch ¶ added in v0.13.0
func (d *ExpressionWarningDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ExpressionWarningDie) DieRelease ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieRelease() admissionregistrationv1.ExpressionWarning
DieRelease returns the resource managed by the die.
func (*ExpressionWarningDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ExpressionWarningDie) DieReleasePtr ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieReleasePtr() *admissionregistrationv1.ExpressionWarning
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ExpressionWarningDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ExpressionWarningDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ExpressionWarningDie) DieSeal ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieSeal() *ExpressionWarningDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ExpressionWarningDie) DieSealFeed ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieSealFeed(r admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ExpressionWarningDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieSealFeedPtr(r *admissionregistrationv1.ExpressionWarning) *ExpressionWarningDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ExpressionWarningDie) DieSealRelease ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieSealRelease() admissionregistrationv1.ExpressionWarning
DieSealRelease returns the sealed resource managed by the die.
func (*ExpressionWarningDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieSealReleasePtr() *admissionregistrationv1.ExpressionWarning
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ExpressionWarningDie) DieStamp ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieStamp(fn func(r *admissionregistrationv1.ExpressionWarning)) *ExpressionWarningDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ExpressionWarningDie) DieStampAt ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieStampAt(jp string, fn interface{}) *ExpressionWarningDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ExpressionWarningDie) DieWith ¶ added in v0.13.0
func (d *ExpressionWarningDie) DieWith(fns ...func(d *ExpressionWarningDie)) *ExpressionWarningDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ExpressionWarningDie) FieldRef ¶ added in v0.13.0
func (d *ExpressionWarningDie) FieldRef(v string) *ExpressionWarningDie
The path to the field that refers the expression.
For example, the reference to the expression of the first item of ¶
validations is "spec.validations[0].expression"
func (*ExpressionWarningDie) Warning ¶ added in v0.13.0
func (d *ExpressionWarningDie) Warning(v string) *ExpressionWarningDie
The content of type checking information in a human-readable form.
Each line of the warning contains the type that the expression is checked ¶
against, followed by the type check error from the compiler.
type MatchConditionDie ¶
type MatchConditionDie struct {
// contains filtered or unexported fields
}
func (*MatchConditionDie) DeepCopy ¶
func (d *MatchConditionDie) DeepCopy() *MatchConditionDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*MatchConditionDie) DieDiff ¶ added in v0.13.0
func (d *MatchConditionDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*MatchConditionDie) DieFeed ¶
func (d *MatchConditionDie) DieFeed(r admissionregistrationv1.MatchCondition) *MatchConditionDie
DieFeed returns a new die with the provided resource.
func (*MatchConditionDie) DieFeedJSON ¶
func (d *MatchConditionDie) DieFeedJSON(j []byte) *MatchConditionDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*MatchConditionDie) DieFeedPtr ¶
func (d *MatchConditionDie) DieFeedPtr(r *admissionregistrationv1.MatchCondition) *MatchConditionDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*MatchConditionDie) DieFeedRawExtension ¶
func (d *MatchConditionDie) DieFeedRawExtension(raw runtime.RawExtension) *MatchConditionDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MatchConditionDie) DieFeedYAML ¶
func (d *MatchConditionDie) DieFeedYAML(y []byte) *MatchConditionDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*MatchConditionDie) DieFeedYAMLFile ¶
func (d *MatchConditionDie) DieFeedYAMLFile(name string) *MatchConditionDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*MatchConditionDie) DieImmutable ¶
func (d *MatchConditionDie) DieImmutable(immutable bool) *MatchConditionDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*MatchConditionDie) DiePatch ¶ added in v0.13.0
func (d *MatchConditionDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*MatchConditionDie) DieRelease ¶
func (d *MatchConditionDie) DieRelease() admissionregistrationv1.MatchCondition
DieRelease returns the resource managed by the die.
func (*MatchConditionDie) DieReleaseJSON ¶
func (d *MatchConditionDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*MatchConditionDie) DieReleasePtr ¶
func (d *MatchConditionDie) DieReleasePtr() *admissionregistrationv1.MatchCondition
DieReleasePtr returns a pointer to the resource managed by the die.
func (*MatchConditionDie) DieReleaseRawExtension ¶
func (d *MatchConditionDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MatchConditionDie) DieReleaseYAML ¶
func (d *MatchConditionDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*MatchConditionDie) DieSeal ¶ added in v0.13.0
func (d *MatchConditionDie) DieSeal() *MatchConditionDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*MatchConditionDie) DieSealFeed ¶ added in v0.13.0
func (d *MatchConditionDie) DieSealFeed(r admissionregistrationv1.MatchCondition) *MatchConditionDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*MatchConditionDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *MatchConditionDie) DieSealFeedPtr(r *admissionregistrationv1.MatchCondition) *MatchConditionDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*MatchConditionDie) DieSealRelease ¶ added in v0.13.0
func (d *MatchConditionDie) DieSealRelease() admissionregistrationv1.MatchCondition
DieSealRelease returns the sealed resource managed by the die.
func (*MatchConditionDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *MatchConditionDie) DieSealReleasePtr() *admissionregistrationv1.MatchCondition
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*MatchConditionDie) DieStamp ¶
func (d *MatchConditionDie) DieStamp(fn func(r *admissionregistrationv1.MatchCondition)) *MatchConditionDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*MatchConditionDie) DieStampAt ¶
func (d *MatchConditionDie) DieStampAt(jp string, fn interface{}) *MatchConditionDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*MatchConditionDie) DieWith ¶
func (d *MatchConditionDie) DieWith(fns ...func(d *MatchConditionDie)) *MatchConditionDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*MatchConditionDie) Expression ¶
func (d *MatchConditionDie) Expression(v string) *MatchConditionDie
Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
'object' - The object from the incoming request. The value is null for DELETE requests.
'oldObject' - The existing object. The value is null for CREATE requests.
'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
request resource.
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
Required.
func (*MatchConditionDie) Name ¶
func (d *MatchConditionDie) Name(v string) *MatchConditionDie
Name is an identifier for this match condition, used for strategic merging of MatchConditions,
as well as providing an identifier for logging purposes. A good name should be descriptive of
the associated expression.
Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or
'123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
Required.
type MatchResourcesDie ¶ added in v0.13.0
type MatchResourcesDie struct {
// contains filtered or unexported fields
}
func (*MatchResourcesDie) DeepCopy ¶ added in v0.13.0
func (d *MatchResourcesDie) DeepCopy() *MatchResourcesDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*MatchResourcesDie) DieDiff ¶ added in v0.13.0
func (d *MatchResourcesDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*MatchResourcesDie) DieFeed ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeed(r admissionregistrationv1.MatchResources) *MatchResourcesDie
DieFeed returns a new die with the provided resource.
func (*MatchResourcesDie) DieFeedJSON ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeedJSON(j []byte) *MatchResourcesDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*MatchResourcesDie) DieFeedPtr ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeedPtr(r *admissionregistrationv1.MatchResources) *MatchResourcesDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*MatchResourcesDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeedRawExtension(raw runtime.RawExtension) *MatchResourcesDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MatchResourcesDie) DieFeedYAML ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeedYAML(y []byte) *MatchResourcesDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*MatchResourcesDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *MatchResourcesDie) DieFeedYAMLFile(name string) *MatchResourcesDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*MatchResourcesDie) DieImmutable ¶ added in v0.13.0
func (d *MatchResourcesDie) DieImmutable(immutable bool) *MatchResourcesDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*MatchResourcesDie) DiePatch ¶ added in v0.13.0
func (d *MatchResourcesDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*MatchResourcesDie) DieRelease ¶ added in v0.13.0
func (d *MatchResourcesDie) DieRelease() admissionregistrationv1.MatchResources
DieRelease returns the resource managed by the die.
func (*MatchResourcesDie) DieReleaseJSON ¶ added in v0.13.0
func (d *MatchResourcesDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*MatchResourcesDie) DieReleasePtr ¶ added in v0.13.0
func (d *MatchResourcesDie) DieReleasePtr() *admissionregistrationv1.MatchResources
DieReleasePtr returns a pointer to the resource managed by the die.
func (*MatchResourcesDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *MatchResourcesDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MatchResourcesDie) DieReleaseYAML ¶ added in v0.13.0
func (d *MatchResourcesDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*MatchResourcesDie) DieSeal ¶ added in v0.13.0
func (d *MatchResourcesDie) DieSeal() *MatchResourcesDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*MatchResourcesDie) DieSealFeed ¶ added in v0.13.0
func (d *MatchResourcesDie) DieSealFeed(r admissionregistrationv1.MatchResources) *MatchResourcesDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*MatchResourcesDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *MatchResourcesDie) DieSealFeedPtr(r *admissionregistrationv1.MatchResources) *MatchResourcesDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*MatchResourcesDie) DieSealRelease ¶ added in v0.13.0
func (d *MatchResourcesDie) DieSealRelease() admissionregistrationv1.MatchResources
DieSealRelease returns the sealed resource managed by the die.
func (*MatchResourcesDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *MatchResourcesDie) DieSealReleasePtr() *admissionregistrationv1.MatchResources
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*MatchResourcesDie) DieStamp ¶ added in v0.13.0
func (d *MatchResourcesDie) DieStamp(fn func(r *admissionregistrationv1.MatchResources)) *MatchResourcesDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*MatchResourcesDie) DieStampAt ¶ added in v0.13.0
func (d *MatchResourcesDie) DieStampAt(jp string, fn interface{}) *MatchResourcesDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*MatchResourcesDie) DieWith ¶ added in v0.13.0
func (d *MatchResourcesDie) DieWith(fns ...func(d *MatchResourcesDie)) *MatchResourcesDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*MatchResourcesDie) ExcludeResourceRules ¶ added in v0.13.0
func (d *MatchResourcesDie) ExcludeResourceRules(v ...admissionregistrationv1.NamedRuleWithOperations) *MatchResourcesDie
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
func (*MatchResourcesDie) ExcludeResourceRulesDie ¶ added in v0.13.0
func (d *MatchResourcesDie) ExcludeResourceRulesDie(v ...*NamedRuleWithOperationsDie) *MatchResourcesDie
ExcludeResourceRulesDie replaces ExcludeResourceRules by collecting the released value from each die passed.
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
func (*MatchResourcesDie) MatchPolicy ¶ added in v0.13.0
func (d *MatchResourcesDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *MatchResourcesDie
matchPolicy defines how the "MatchResources" list is used to match incoming requests.
Allowed values are "Exact" or "Equivalent".
- Exact: match a request only if it exactly matches a specified rule.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
Defaults to "Equivalent"
func (*MatchResourcesDie) NamespaceSelector ¶ added in v0.13.0
func (d *MatchResourcesDie) NamespaceSelector(v *apismetav1.LabelSelector) *MatchResourcesDie
NamespaceSelector decides whether to run the admission control policy on an object based
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the policy.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the policy on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*MatchResourcesDie) NamespaceSelectorDie ¶ added in v0.13.0
func (d *MatchResourcesDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MatchResourcesDie
NamespaceSelectorDie mutates NamespaceSelector as a die.
NamespaceSelector decides whether to run the admission control policy on an object based ¶
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the policy.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the policy on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*MatchResourcesDie) ObjectSelector ¶ added in v0.13.0
func (d *MatchResourcesDie) ObjectSelector(v *apismetav1.LabelSelector) *MatchResourcesDie
ObjectSelector decides whether to run the validation based on if the
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the cel validation, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*MatchResourcesDie) ObjectSelectorDie ¶ added in v0.13.0
func (d *MatchResourcesDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MatchResourcesDie
ObjectSelectorDie mutates ObjectSelector as a die.
ObjectSelector decides whether to run the validation based on if the ¶
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the cel validation, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*MatchResourcesDie) ResourceRules ¶ added in v0.13.0
func (d *MatchResourcesDie) ResourceRules(v ...admissionregistrationv1.NamedRuleWithOperations) *MatchResourcesDie
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
The policy cares about an operation if it matches _any_ Rule.
func (*MatchResourcesDie) ResourceRulesDie ¶ added in v0.13.0
func (d *MatchResourcesDie) ResourceRulesDie(v ...*NamedRuleWithOperationsDie) *MatchResourcesDie
ResourceRulesDie replaces ResourceRules by collecting the released value from each die passed.
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
The policy cares about an operation if it matches _any_ Rule.
type MutatingWebhookConfigurationDie ¶
type MutatingWebhookConfigurationDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*MutatingWebhookConfigurationDie) APIVersion ¶
func (d *MutatingWebhookConfigurationDie) APIVersion(v string) *MutatingWebhookConfigurationDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*MutatingWebhookConfigurationDie) DeepCopy ¶
func (d *MutatingWebhookConfigurationDie) DeepCopy() *MutatingWebhookConfigurationDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*MutatingWebhookConfigurationDie) DeepCopyObject ¶
func (d *MutatingWebhookConfigurationDie) DeepCopyObject() runtime.Object
func (*MutatingWebhookConfigurationDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieDefaultTypeMetadata() *MutatingWebhookConfigurationDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "admissionregistration.k8s.io/v1" and "MutatingWebhookConfiguration" respectively.
func (*MutatingWebhookConfigurationDie) DieDiff ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*MutatingWebhookConfigurationDie) DieFeed ¶
func (d *MutatingWebhookConfigurationDie) DieFeed(r admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
DieFeed returns a new die with the provided resource.
func (*MutatingWebhookConfigurationDie) DieFeedJSON ¶
func (d *MutatingWebhookConfigurationDie) DieFeedJSON(j []byte) *MutatingWebhookConfigurationDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*MutatingWebhookConfigurationDie) DieFeedPtr ¶
func (d *MutatingWebhookConfigurationDie) DieFeedPtr(r *admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*MutatingWebhookConfigurationDie) DieFeedRawExtension ¶
func (d *MutatingWebhookConfigurationDie) DieFeedRawExtension(raw runtime.RawExtension) *MutatingWebhookConfigurationDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MutatingWebhookConfigurationDie) DieFeedYAML ¶
func (d *MutatingWebhookConfigurationDie) DieFeedYAML(y []byte) *MutatingWebhookConfigurationDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*MutatingWebhookConfigurationDie) DieFeedYAMLFile ¶
func (d *MutatingWebhookConfigurationDie) DieFeedYAMLFile(name string) *MutatingWebhookConfigurationDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*MutatingWebhookConfigurationDie) DieImmutable ¶
func (d *MutatingWebhookConfigurationDie) DieImmutable(immutable bool) *MutatingWebhookConfigurationDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*MutatingWebhookConfigurationDie) DiePatch ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*MutatingWebhookConfigurationDie) DieRelease ¶
func (d *MutatingWebhookConfigurationDie) DieRelease() admissionregistrationv1.MutatingWebhookConfiguration
DieRelease returns the resource managed by the die.
func (*MutatingWebhookConfigurationDie) DieReleaseJSON ¶
func (d *MutatingWebhookConfigurationDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*MutatingWebhookConfigurationDie) DieReleasePtr ¶
func (d *MutatingWebhookConfigurationDie) DieReleasePtr() *admissionregistrationv1.MutatingWebhookConfiguration
DieReleasePtr returns a pointer to the resource managed by the die.
func (*MutatingWebhookConfigurationDie) DieReleaseRawExtension ¶
func (d *MutatingWebhookConfigurationDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MutatingWebhookConfigurationDie) DieReleaseUnstructured ¶
func (d *MutatingWebhookConfigurationDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*MutatingWebhookConfigurationDie) DieReleaseYAML ¶
func (d *MutatingWebhookConfigurationDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*MutatingWebhookConfigurationDie) DieSeal ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieSeal() *MutatingWebhookConfigurationDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*MutatingWebhookConfigurationDie) DieSealFeed ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieSealFeed(r admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*MutatingWebhookConfigurationDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieSealFeedPtr(r *admissionregistrationv1.MutatingWebhookConfiguration) *MutatingWebhookConfigurationDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*MutatingWebhookConfigurationDie) DieSealRelease ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieSealRelease() admissionregistrationv1.MutatingWebhookConfiguration
DieSealRelease returns the sealed resource managed by the die.
func (*MutatingWebhookConfigurationDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) DieSealReleasePtr() *admissionregistrationv1.MutatingWebhookConfiguration
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*MutatingWebhookConfigurationDie) DieStamp ¶
func (d *MutatingWebhookConfigurationDie) DieStamp(fn func(r *admissionregistrationv1.MutatingWebhookConfiguration)) *MutatingWebhookConfigurationDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*MutatingWebhookConfigurationDie) DieStampAt ¶
func (d *MutatingWebhookConfigurationDie) DieStampAt(jp string, fn interface{}) *MutatingWebhookConfigurationDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*MutatingWebhookConfigurationDie) DieWith ¶
func (d *MutatingWebhookConfigurationDie) DieWith(fns ...func(d *MutatingWebhookConfigurationDie)) *MutatingWebhookConfigurationDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*MutatingWebhookConfigurationDie) GetObjectKind ¶
func (d *MutatingWebhookConfigurationDie) GetObjectKind() schema.ObjectKind
func (*MutatingWebhookConfigurationDie) Kind ¶
func (d *MutatingWebhookConfigurationDie) Kind(v string) *MutatingWebhookConfigurationDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*MutatingWebhookConfigurationDie) MarshalJSON ¶
func (d *MutatingWebhookConfigurationDie) MarshalJSON() ([]byte, error)
func (*MutatingWebhookConfigurationDie) Metadata ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) Metadata(v apismetav1.ObjectMeta) *MutatingWebhookConfigurationDie
Metadata standard object's metadata.
func (*MutatingWebhookConfigurationDie) MetadataDie ¶
func (d *MutatingWebhookConfigurationDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *MutatingWebhookConfigurationDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*MutatingWebhookConfigurationDie) TypeMetadata ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) TypeMetadata(v apismetav1.TypeMeta) *MutatingWebhookConfigurationDie
TypeMetadata standard object's type metadata.
func (*MutatingWebhookConfigurationDie) TypeMetadataDie ¶ added in v0.13.0
func (d *MutatingWebhookConfigurationDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *MutatingWebhookConfigurationDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*MutatingWebhookConfigurationDie) UnmarshalJSON ¶
func (d *MutatingWebhookConfigurationDie) UnmarshalJSON(b []byte) error
func (*MutatingWebhookConfigurationDie) WebhookDie ¶
func (d *MutatingWebhookConfigurationDie) WebhookDie(v string, fn func(d *MutatingWebhookDie)) *MutatingWebhookConfigurationDie
WebhookDie mutates a single item in Webhooks matched by the nested field Name, appending a new item if no match is found.
Webhooks is a list of webhooks and the affected resources and operations.
func (*MutatingWebhookConfigurationDie) Webhooks ¶
func (d *MutatingWebhookConfigurationDie) Webhooks(v ...admissionregistrationv1.MutatingWebhook) *MutatingWebhookConfigurationDie
Webhooks is a list of webhooks and the affected resources and operations.
type MutatingWebhookDie ¶
type MutatingWebhookDie struct {
// contains filtered or unexported fields
}
func (*MutatingWebhookDie) AdmissionReviewVersions ¶
func (d *MutatingWebhookDie) AdmissionReviewVersions(v ...string) *MutatingWebhookDie
AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
versions the Webhook expects. API server will try to use first version in
the list which it supports. If none of the versions specified in this list
supported by API server, validation will fail for this object.
If a persisted webhook configuration specifies allowed versions and does not ¶
include any versions known to the API Server, calls to the webhook will fail
and be subject to the failure policy.
func (*MutatingWebhookDie) ClientConfig ¶
func (d *MutatingWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *MutatingWebhookDie
ClientConfig defines how to communicate with the hook.
Required
func (*MutatingWebhookDie) ClientConfigDie ¶
func (d *MutatingWebhookDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *MutatingWebhookDie
ClientConfigDie mutates ClientConfig as a die.
ClientConfig defines how to communicate with the hook.
Required
func (*MutatingWebhookDie) DeepCopy ¶
func (d *MutatingWebhookDie) DeepCopy() *MutatingWebhookDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*MutatingWebhookDie) DieDiff ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*MutatingWebhookDie) DieFeed ¶
func (d *MutatingWebhookDie) DieFeed(r admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
DieFeed returns a new die with the provided resource.
func (*MutatingWebhookDie) DieFeedJSON ¶
func (d *MutatingWebhookDie) DieFeedJSON(j []byte) *MutatingWebhookDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*MutatingWebhookDie) DieFeedPtr ¶
func (d *MutatingWebhookDie) DieFeedPtr(r *admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*MutatingWebhookDie) DieFeedRawExtension ¶
func (d *MutatingWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *MutatingWebhookDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MutatingWebhookDie) DieFeedYAML ¶
func (d *MutatingWebhookDie) DieFeedYAML(y []byte) *MutatingWebhookDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*MutatingWebhookDie) DieFeedYAMLFile ¶
func (d *MutatingWebhookDie) DieFeedYAMLFile(name string) *MutatingWebhookDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*MutatingWebhookDie) DieImmutable ¶
func (d *MutatingWebhookDie) DieImmutable(immutable bool) *MutatingWebhookDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*MutatingWebhookDie) DiePatch ¶ added in v0.13.0
func (d *MutatingWebhookDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*MutatingWebhookDie) DieRelease ¶
func (d *MutatingWebhookDie) DieRelease() admissionregistrationv1.MutatingWebhook
DieRelease returns the resource managed by the die.
func (*MutatingWebhookDie) DieReleaseJSON ¶
func (d *MutatingWebhookDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*MutatingWebhookDie) DieReleasePtr ¶
func (d *MutatingWebhookDie) DieReleasePtr() *admissionregistrationv1.MutatingWebhook
DieReleasePtr returns a pointer to the resource managed by the die.
func (*MutatingWebhookDie) DieReleaseRawExtension ¶
func (d *MutatingWebhookDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*MutatingWebhookDie) DieReleaseYAML ¶
func (d *MutatingWebhookDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*MutatingWebhookDie) DieSeal ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieSeal() *MutatingWebhookDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*MutatingWebhookDie) DieSealFeed ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieSealFeed(r admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*MutatingWebhookDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieSealFeedPtr(r *admissionregistrationv1.MutatingWebhook) *MutatingWebhookDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*MutatingWebhookDie) DieSealRelease ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieSealRelease() admissionregistrationv1.MutatingWebhook
DieSealRelease returns the sealed resource managed by the die.
func (*MutatingWebhookDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *MutatingWebhookDie) DieSealReleasePtr() *admissionregistrationv1.MutatingWebhook
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*MutatingWebhookDie) DieStamp ¶
func (d *MutatingWebhookDie) DieStamp(fn func(r *admissionregistrationv1.MutatingWebhook)) *MutatingWebhookDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*MutatingWebhookDie) DieStampAt ¶
func (d *MutatingWebhookDie) DieStampAt(jp string, fn interface{}) *MutatingWebhookDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*MutatingWebhookDie) DieWith ¶
func (d *MutatingWebhookDie) DieWith(fns ...func(d *MutatingWebhookDie)) *MutatingWebhookDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*MutatingWebhookDie) FailurePolicy ¶
func (d *MutatingWebhookDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *MutatingWebhookDie
FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
allowed values are Ignore or Fail. Defaults to Fail.
func (*MutatingWebhookDie) MatchConditionDie ¶
func (d *MutatingWebhookDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *MutatingWebhookDie
MatchConditionDie mutates a single item in MatchConditions matched by the nested field Name, appending a new item if no match is found.
MatchConditions is a list of conditions that must be met for a request to be sent to this ¶
webhook. Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
2. If ALL matchConditions evaluate to TRUE, the webhook is called.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the error is ignored and the webhook is skipped
func (*MutatingWebhookDie) MatchConditions ¶
func (d *MutatingWebhookDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *MutatingWebhookDie
MatchConditions is a list of conditions that must be met for a request to be sent to this
webhook. Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
2. If ALL matchConditions evaluate to TRUE, the webhook is called.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the error is ignored and the webhook is skipped
func (*MutatingWebhookDie) MatchPolicy ¶
func (d *MutatingWebhookDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *MutatingWebhookDie
matchPolicy defines how the "rules" list is used to match incoming requests.
Allowed values are "Exact" or "Equivalent".
- Exact: match a request only if it exactly matches a specified rule.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
Defaults to "Equivalent"
func (*MutatingWebhookDie) Name ¶
func (d *MutatingWebhookDie) Name(v string) *MutatingWebhookDie
The name of the admission webhook.
Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where ¶
"imagepolicy" is the name of the webhook, and kubernetes.io is the name
of the organization.
Required.
func (*MutatingWebhookDie) NamespaceSelector ¶
func (d *MutatingWebhookDie) NamespaceSelector(v *apismetav1.LabelSelector) *MutatingWebhookDie
NamespaceSelector decides whether to run the webhook on an object based
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the webhook.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the webhook on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*MutatingWebhookDie) NamespaceSelectorDie ¶
func (d *MutatingWebhookDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MutatingWebhookDie
NamespaceSelectorDie mutates NamespaceSelector as a die.
NamespaceSelector decides whether to run the webhook on an object based ¶
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the webhook.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the webhook on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*MutatingWebhookDie) ObjectSelector ¶
func (d *MutatingWebhookDie) ObjectSelector(v *apismetav1.LabelSelector) *MutatingWebhookDie
ObjectSelector decides whether to run the webhook based on if the
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the webhook, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*MutatingWebhookDie) ObjectSelectorDie ¶
func (d *MutatingWebhookDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *MutatingWebhookDie
ObjectSelectorDie mutates ObjectSelector as a die.
ObjectSelector decides whether to run the webhook based on if the ¶
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the webhook, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*MutatingWebhookDie) ReinvocationPolicy ¶
func (d *MutatingWebhookDie) ReinvocationPolicy(v *admissionregistrationv1.ReinvocationPolicyType) *MutatingWebhookDie
reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
Allowed values are "Never" and "IfNeeded".
Never: the webhook will not be called more than once in a single admission evaluation.
IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
if the object being admitted is modified by other admission plugins after the initial webhook call.
Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
Note:
* the number of additional invocations is not guaranteed to be exactly one.
* if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
* webhooks that use this option may be reordered to minimize the number of additional invocations.
* to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
Defaults to "Never".
func (*MutatingWebhookDie) Rules ¶
func (d *MutatingWebhookDie) Rules(v ...admissionregistrationv1.RuleWithOperations) *MutatingWebhookDie
Rules describes what operations on what resources/subresources the webhook cares about.
The webhook cares about an operation if it matches _any_ Rule.
However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks ¶
from putting the cluster in a state which cannot be recovered from without completely
disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
func (*MutatingWebhookDie) RulesDie ¶
func (d *MutatingWebhookDie) RulesDie(v ...*RuleWithOperationsDie) *MutatingWebhookDie
RulesDie replaces Rules by collecting the released value from each die passed.
Rules describes what operations on what resources/subresources the webhook cares about.
The webhook cares about an operation if it matches _any_ Rule.
However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks ¶
from putting the cluster in a state which cannot be recovered from without completely
disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
func (*MutatingWebhookDie) SideEffects ¶
func (d *MutatingWebhookDie) SideEffects(v *admissionregistrationv1.SideEffectClass) *MutatingWebhookDie
SideEffects states whether this webhook has side effects.
Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown).
Webhooks with side effects MUST implement a reconciliation system, since a request may be ¶
rejected by a future step in the admission chain and the side effects therefore need to be undone.
Requests with the dryRun attribute will be auto-rejected if they match a webhook with ¶
sideEffects == Unknown or Some.
func (*MutatingWebhookDie) TimeoutSeconds ¶
func (d *MutatingWebhookDie) TimeoutSeconds(v *int32) *MutatingWebhookDie
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
the webhook call will be ignored or the API call will fail based on the
failure policy.
The timeout value must be between 1 and 30 seconds.
Default to 10 seconds.
type NamedRuleWithOperationsDie ¶ added in v0.13.0
type NamedRuleWithOperationsDie struct {
// contains filtered or unexported fields
}
func (*NamedRuleWithOperationsDie) APIGroups ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) APIGroups(v ...string) *NamedRuleWithOperationsDie
func (*NamedRuleWithOperationsDie) APIVersions ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) APIVersions(v ...string) *NamedRuleWithOperationsDie
func (*NamedRuleWithOperationsDie) DeepCopy ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DeepCopy() *NamedRuleWithOperationsDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*NamedRuleWithOperationsDie) DieDiff ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*NamedRuleWithOperationsDie) DieFeed ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeed(r admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
DieFeed returns a new die with the provided resource.
func (*NamedRuleWithOperationsDie) DieFeedJSON ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeedJSON(j []byte) *NamedRuleWithOperationsDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*NamedRuleWithOperationsDie) DieFeedPtr ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeedPtr(r *admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*NamedRuleWithOperationsDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeedRawExtension(raw runtime.RawExtension) *NamedRuleWithOperationsDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NamedRuleWithOperationsDie) DieFeedYAML ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeedYAML(y []byte) *NamedRuleWithOperationsDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*NamedRuleWithOperationsDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieFeedYAMLFile(name string) *NamedRuleWithOperationsDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*NamedRuleWithOperationsDie) DieImmutable ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieImmutable(immutable bool) *NamedRuleWithOperationsDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*NamedRuleWithOperationsDie) DiePatch ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*NamedRuleWithOperationsDie) DieRelease ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieRelease() admissionregistrationv1.NamedRuleWithOperations
DieRelease returns the resource managed by the die.
func (*NamedRuleWithOperationsDie) DieReleaseJSON ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*NamedRuleWithOperationsDie) DieReleasePtr ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieReleasePtr() *admissionregistrationv1.NamedRuleWithOperations
DieReleasePtr returns a pointer to the resource managed by the die.
func (*NamedRuleWithOperationsDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*NamedRuleWithOperationsDie) DieReleaseYAML ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*NamedRuleWithOperationsDie) DieSeal ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieSeal() *NamedRuleWithOperationsDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*NamedRuleWithOperationsDie) DieSealFeed ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieSealFeed(r admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*NamedRuleWithOperationsDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieSealFeedPtr(r *admissionregistrationv1.NamedRuleWithOperations) *NamedRuleWithOperationsDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*NamedRuleWithOperationsDie) DieSealRelease ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieSealRelease() admissionregistrationv1.NamedRuleWithOperations
DieSealRelease returns the sealed resource managed by the die.
func (*NamedRuleWithOperationsDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieSealReleasePtr() *admissionregistrationv1.NamedRuleWithOperations
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*NamedRuleWithOperationsDie) DieStamp ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieStamp(fn func(r *admissionregistrationv1.NamedRuleWithOperations)) *NamedRuleWithOperationsDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*NamedRuleWithOperationsDie) DieStampAt ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieStampAt(jp string, fn interface{}) *NamedRuleWithOperationsDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*NamedRuleWithOperationsDie) DieWith ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) DieWith(fns ...func(d *NamedRuleWithOperationsDie)) *NamedRuleWithOperationsDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*NamedRuleWithOperationsDie) Operations ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) Operations(v ...admissionregistrationv1.OperationType) *NamedRuleWithOperationsDie
func (*NamedRuleWithOperationsDie) ResourceNames ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) ResourceNames(v ...string) *NamedRuleWithOperationsDie
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
func (*NamedRuleWithOperationsDie) Resources ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) Resources(v ...string) *NamedRuleWithOperationsDie
func (*NamedRuleWithOperationsDie) Rule ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) Rule(v admissionregistrationv1.Rule) *NamedRuleWithOperationsDie
func (*NamedRuleWithOperationsDie) RuleWithOperations ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) RuleWithOperations(v admissionregistrationv1.RuleWithOperations) *NamedRuleWithOperationsDie
RuleWithOperations is a tuple of Operations and Resources.
func (*NamedRuleWithOperationsDie) Scope ¶ added in v0.13.0
func (d *NamedRuleWithOperationsDie) Scope(v *admissionregistrationv1.ScopeType) *NamedRuleWithOperationsDie
type ParamKindDie ¶ added in v0.13.0
type ParamKindDie struct {
// contains filtered or unexported fields
}
func (*ParamKindDie) APIVersion ¶ added in v0.13.0
func (d *ParamKindDie) APIVersion(v string) *ParamKindDie
APIVersion is the API group version the resources belong to.
In format of "group/version".
Required.
func (*ParamKindDie) DeepCopy ¶ added in v0.13.0
func (d *ParamKindDie) DeepCopy() *ParamKindDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ParamKindDie) DieDiff ¶ added in v0.13.0
func (d *ParamKindDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ParamKindDie) DieFeed ¶ added in v0.13.0
func (d *ParamKindDie) DieFeed(r admissionregistrationv1.ParamKind) *ParamKindDie
DieFeed returns a new die with the provided resource.
func (*ParamKindDie) DieFeedJSON ¶ added in v0.13.0
func (d *ParamKindDie) DieFeedJSON(j []byte) *ParamKindDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ParamKindDie) DieFeedPtr ¶ added in v0.13.0
func (d *ParamKindDie) DieFeedPtr(r *admissionregistrationv1.ParamKind) *ParamKindDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ParamKindDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ParamKindDie) DieFeedRawExtension(raw runtime.RawExtension) *ParamKindDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ParamKindDie) DieFeedYAML ¶ added in v0.13.0
func (d *ParamKindDie) DieFeedYAML(y []byte) *ParamKindDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ParamKindDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ParamKindDie) DieFeedYAMLFile(name string) *ParamKindDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ParamKindDie) DieImmutable ¶ added in v0.13.0
func (d *ParamKindDie) DieImmutable(immutable bool) *ParamKindDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ParamKindDie) DiePatch ¶ added in v0.13.0
func (d *ParamKindDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ParamKindDie) DieRelease ¶ added in v0.13.0
func (d *ParamKindDie) DieRelease() admissionregistrationv1.ParamKind
DieRelease returns the resource managed by the die.
func (*ParamKindDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ParamKindDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ParamKindDie) DieReleasePtr ¶ added in v0.13.0
func (d *ParamKindDie) DieReleasePtr() *admissionregistrationv1.ParamKind
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ParamKindDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ParamKindDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ParamKindDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ParamKindDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ParamKindDie) DieSeal ¶ added in v0.13.0
func (d *ParamKindDie) DieSeal() *ParamKindDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ParamKindDie) DieSealFeed ¶ added in v0.13.0
func (d *ParamKindDie) DieSealFeed(r admissionregistrationv1.ParamKind) *ParamKindDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ParamKindDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ParamKindDie) DieSealFeedPtr(r *admissionregistrationv1.ParamKind) *ParamKindDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ParamKindDie) DieSealRelease ¶ added in v0.13.0
func (d *ParamKindDie) DieSealRelease() admissionregistrationv1.ParamKind
DieSealRelease returns the sealed resource managed by the die.
func (*ParamKindDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ParamKindDie) DieSealReleasePtr() *admissionregistrationv1.ParamKind
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ParamKindDie) DieStamp ¶ added in v0.13.0
func (d *ParamKindDie) DieStamp(fn func(r *admissionregistrationv1.ParamKind)) *ParamKindDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ParamKindDie) DieStampAt ¶ added in v0.13.0
func (d *ParamKindDie) DieStampAt(jp string, fn interface{}) *ParamKindDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ParamKindDie) DieWith ¶ added in v0.13.0
func (d *ParamKindDie) DieWith(fns ...func(d *ParamKindDie)) *ParamKindDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ParamKindDie) Kind ¶ added in v0.13.0
func (d *ParamKindDie) Kind(v string) *ParamKindDie
Kind is the API kind the resources belong to.
Required.
type ParamRefDie ¶ added in v0.13.0
type ParamRefDie struct {
// contains filtered or unexported fields
}
func (*ParamRefDie) DeepCopy ¶ added in v0.13.0
func (d *ParamRefDie) DeepCopy() *ParamRefDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ParamRefDie) DieDiff ¶ added in v0.13.0
func (d *ParamRefDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ParamRefDie) DieFeed ¶ added in v0.13.0
func (d *ParamRefDie) DieFeed(r admissionregistrationv1.ParamRef) *ParamRefDie
DieFeed returns a new die with the provided resource.
func (*ParamRefDie) DieFeedJSON ¶ added in v0.13.0
func (d *ParamRefDie) DieFeedJSON(j []byte) *ParamRefDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ParamRefDie) DieFeedPtr ¶ added in v0.13.0
func (d *ParamRefDie) DieFeedPtr(r *admissionregistrationv1.ParamRef) *ParamRefDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ParamRefDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ParamRefDie) DieFeedRawExtension(raw runtime.RawExtension) *ParamRefDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ParamRefDie) DieFeedYAML ¶ added in v0.13.0
func (d *ParamRefDie) DieFeedYAML(y []byte) *ParamRefDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ParamRefDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ParamRefDie) DieFeedYAMLFile(name string) *ParamRefDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ParamRefDie) DieImmutable ¶ added in v0.13.0
func (d *ParamRefDie) DieImmutable(immutable bool) *ParamRefDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ParamRefDie) DiePatch ¶ added in v0.13.0
func (d *ParamRefDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ParamRefDie) DieRelease ¶ added in v0.13.0
func (d *ParamRefDie) DieRelease() admissionregistrationv1.ParamRef
DieRelease returns the resource managed by the die.
func (*ParamRefDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ParamRefDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ParamRefDie) DieReleasePtr ¶ added in v0.13.0
func (d *ParamRefDie) DieReleasePtr() *admissionregistrationv1.ParamRef
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ParamRefDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ParamRefDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ParamRefDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ParamRefDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ParamRefDie) DieSeal ¶ added in v0.13.0
func (d *ParamRefDie) DieSeal() *ParamRefDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ParamRefDie) DieSealFeed ¶ added in v0.13.0
func (d *ParamRefDie) DieSealFeed(r admissionregistrationv1.ParamRef) *ParamRefDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ParamRefDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ParamRefDie) DieSealFeedPtr(r *admissionregistrationv1.ParamRef) *ParamRefDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ParamRefDie) DieSealRelease ¶ added in v0.13.0
func (d *ParamRefDie) DieSealRelease() admissionregistrationv1.ParamRef
DieSealRelease returns the sealed resource managed by the die.
func (*ParamRefDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ParamRefDie) DieSealReleasePtr() *admissionregistrationv1.ParamRef
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ParamRefDie) DieStamp ¶ added in v0.13.0
func (d *ParamRefDie) DieStamp(fn func(r *admissionregistrationv1.ParamRef)) *ParamRefDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ParamRefDie) DieStampAt ¶ added in v0.13.0
func (d *ParamRefDie) DieStampAt(jp string, fn interface{}) *ParamRefDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ParamRefDie) DieWith ¶ added in v0.13.0
func (d *ParamRefDie) DieWith(fns ...func(d *ParamRefDie)) *ParamRefDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ParamRefDie) Name ¶ added in v0.13.0
func (d *ParamRefDie) Name(v string) *ParamRefDie
name is the name of the resource being referenced.
One of `name` or `selector` must be set, but `name` and `selector` are ¶
mutually exclusive properties. If one is set, the other must be unset.
A single parameter used for all admission requests can be configured ¶
by setting the `name` field, leaving `selector` blank, and setting namespace
if `paramKind` is namespace-scoped.
func (*ParamRefDie) Namespace ¶ added in v0.13.0
func (d *ParamRefDie) Namespace(v string) *ParamRefDie
namespace is the namespace of the referenced resource. Allows limiting
the search for params to a specific namespace. Applies to both `name` and
`selector` fields.
A per-namespace parameter may be used by specifying a namespace-scoped ¶
`paramKind` in the policy and leaving this field empty.
- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this
field results in a configuration error.
- If `paramKind` is namespace-scoped, the namespace of the object being
evaluated for admission will be used when this field is left unset. Take
care that if this is left empty the binding must not match any cluster-scoped
resources, which will result in an error.
func (*ParamRefDie) ParameterNotFoundAction ¶ added in v0.13.0
func (d *ParamRefDie) ParameterNotFoundAction(v *admissionregistrationv1.ParameterNotFoundActionType) *ParamRefDie
`parameterNotFoundAction` controls the behavior of the binding when the resource
exists, and name or selector is valid, but there are no parameters
matched by the binding. If the value is set to `Allow`, then no
matched parameters will be treated as successful validation by the binding.
If set to `Deny`, then no matched parameters will be subject to the ¶
`failurePolicy` of the policy.
Allowed values are `Allow` or `Deny`
Required
func (*ParamRefDie) Selector ¶ added in v0.13.0
func (d *ParamRefDie) Selector(v *apismetav1.LabelSelector) *ParamRefDie
selector can be used to match multiple param objects based on their labels.
Supply selector: {} to match all resources of the ParamKind.
If multiple params are found, they are all evaluated with the policy expressions ¶
and the results are ANDed together.
One of `name` or `selector` must be set, but `name` and `selector` are ¶
mutually exclusive properties. If one is set, the other must be unset.
func (*ParamRefDie) SelectorDie ¶ added in v0.13.0
func (d *ParamRefDie) SelectorDie(fn func(d *metav1.LabelSelectorDie)) *ParamRefDie
SelectorDie mutates Selector as a die.
selector can be used to match multiple param objects based on their labels.
Supply selector: {} to match all resources of the ParamKind.
If multiple params are found, they are all evaluated with the policy expressions ¶
and the results are ANDed together.
One of `name` or `selector` must be set, but `name` and `selector` are ¶
mutually exclusive properties. If one is set, the other must be unset.
type RuleDie ¶
type RuleDie struct {
// contains filtered or unexported fields
}
func (*RuleDie) APIGroups ¶
APIGroups is the API groups the resources belong to. '*' is all groups.
If '*' is present, the length of the slice must be one.
Required.
func (*RuleDie) APIVersions ¶
APIVersions is the API versions the resources belong to. '*' is all versions.
If '*' is present, the length of the slice must be one.
Required.
func (*RuleDie) DeepCopy ¶
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*RuleDie) DieDiff ¶ added in v0.13.0
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*RuleDie) DieFeed ¶
func (d *RuleDie) DieFeed(r admissionregistrationv1.Rule) *RuleDie
DieFeed returns a new die with the provided resource.
func (*RuleDie) DieFeedJSON ¶
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*RuleDie) DieFeedPtr ¶
func (d *RuleDie) DieFeedPtr(r *admissionregistrationv1.Rule) *RuleDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*RuleDie) DieFeedRawExtension ¶
func (d *RuleDie) DieFeedRawExtension(raw runtime.RawExtension) *RuleDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*RuleDie) DieFeedYAML ¶
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*RuleDie) DieFeedYAMLFile ¶
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*RuleDie) DieImmutable ¶
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*RuleDie) DiePatch ¶ added in v0.13.0
DiePatch generates a patch between the current value of the die and the sealed value.
func (*RuleDie) DieRelease ¶
func (d *RuleDie) DieRelease() admissionregistrationv1.Rule
DieRelease returns the resource managed by the die.
func (*RuleDie) DieReleaseJSON ¶
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*RuleDie) DieReleasePtr ¶
func (d *RuleDie) DieReleasePtr() *admissionregistrationv1.Rule
DieReleasePtr returns a pointer to the resource managed by the die.
func (*RuleDie) DieReleaseRawExtension ¶
func (d *RuleDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*RuleDie) DieReleaseYAML ¶
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*RuleDie) DieSeal ¶ added in v0.13.0
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*RuleDie) DieSealFeed ¶ added in v0.13.0
func (d *RuleDie) DieSealFeed(r admissionregistrationv1.Rule) *RuleDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*RuleDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *RuleDie) DieSealFeedPtr(r *admissionregistrationv1.Rule) *RuleDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*RuleDie) DieSealRelease ¶ added in v0.13.0
func (d *RuleDie) DieSealRelease() admissionregistrationv1.Rule
DieSealRelease returns the sealed resource managed by the die.
func (*RuleDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *RuleDie) DieSealReleasePtr() *admissionregistrationv1.Rule
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*RuleDie) DieStamp ¶
func (d *RuleDie) DieStamp(fn func(r *admissionregistrationv1.Rule)) *RuleDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*RuleDie) DieStampAt ¶
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*RuleDie) DieWith ¶
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*RuleDie) Resources ¶
Resources is a list of resources this rule applies to.
For example:
'pods' means pods.
'pods/log' means the log subresource of pods.
'*' means all resources, but not subresources.
'pods/*' means all subresources of pods.
'*/scale' means all scale subresources.
'*/*' means all resources and their subresources.
If wildcard is present, the validation rule will ensure resources do not ¶
overlap with each other.
Depending on the enclosing object, subresources might not be allowed.
Required.
func (*RuleDie) Scope ¶
func (d *RuleDie) Scope(v *admissionregistrationv1.ScopeType) *RuleDie
scope specifies the scope of this rule.
Valid values are "Cluster", "Namespaced", and "*"
"Cluster" means that only cluster-scoped resources will match this rule.
Namespace API objects are cluster-scoped.
"Namespaced" means that only namespaced resources will match this rule.
"*" means that there are no scope restrictions.
Subresources match the scope of their parent resource.
Default is "*".
type RuleWithOperationsDie ¶
type RuleWithOperationsDie struct {
// contains filtered or unexported fields
}
func (*RuleWithOperationsDie) APIGroups ¶
func (d *RuleWithOperationsDie) APIGroups(v ...string) *RuleWithOperationsDie
func (*RuleWithOperationsDie) APIVersions ¶
func (d *RuleWithOperationsDie) APIVersions(v ...string) *RuleWithOperationsDie
func (*RuleWithOperationsDie) DeepCopy ¶
func (d *RuleWithOperationsDie) DeepCopy() *RuleWithOperationsDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*RuleWithOperationsDie) DieDiff ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*RuleWithOperationsDie) DieFeed ¶
func (d *RuleWithOperationsDie) DieFeed(r admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
DieFeed returns a new die with the provided resource.
func (*RuleWithOperationsDie) DieFeedJSON ¶
func (d *RuleWithOperationsDie) DieFeedJSON(j []byte) *RuleWithOperationsDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*RuleWithOperationsDie) DieFeedPtr ¶
func (d *RuleWithOperationsDie) DieFeedPtr(r *admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*RuleWithOperationsDie) DieFeedRawExtension ¶
func (d *RuleWithOperationsDie) DieFeedRawExtension(raw runtime.RawExtension) *RuleWithOperationsDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*RuleWithOperationsDie) DieFeedYAML ¶
func (d *RuleWithOperationsDie) DieFeedYAML(y []byte) *RuleWithOperationsDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*RuleWithOperationsDie) DieFeedYAMLFile ¶
func (d *RuleWithOperationsDie) DieFeedYAMLFile(name string) *RuleWithOperationsDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*RuleWithOperationsDie) DieImmutable ¶
func (d *RuleWithOperationsDie) DieImmutable(immutable bool) *RuleWithOperationsDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*RuleWithOperationsDie) DiePatch ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*RuleWithOperationsDie) DieRelease ¶
func (d *RuleWithOperationsDie) DieRelease() admissionregistrationv1.RuleWithOperations
DieRelease returns the resource managed by the die.
func (*RuleWithOperationsDie) DieReleaseJSON ¶
func (d *RuleWithOperationsDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*RuleWithOperationsDie) DieReleasePtr ¶
func (d *RuleWithOperationsDie) DieReleasePtr() *admissionregistrationv1.RuleWithOperations
DieReleasePtr returns a pointer to the resource managed by the die.
func (*RuleWithOperationsDie) DieReleaseRawExtension ¶
func (d *RuleWithOperationsDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*RuleWithOperationsDie) DieReleaseYAML ¶
func (d *RuleWithOperationsDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*RuleWithOperationsDie) DieSeal ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieSeal() *RuleWithOperationsDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*RuleWithOperationsDie) DieSealFeed ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieSealFeed(r admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*RuleWithOperationsDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieSealFeedPtr(r *admissionregistrationv1.RuleWithOperations) *RuleWithOperationsDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*RuleWithOperationsDie) DieSealRelease ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieSealRelease() admissionregistrationv1.RuleWithOperations
DieSealRelease returns the sealed resource managed by the die.
func (*RuleWithOperationsDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *RuleWithOperationsDie) DieSealReleasePtr() *admissionregistrationv1.RuleWithOperations
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*RuleWithOperationsDie) DieStamp ¶
func (d *RuleWithOperationsDie) DieStamp(fn func(r *admissionregistrationv1.RuleWithOperations)) *RuleWithOperationsDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*RuleWithOperationsDie) DieStampAt ¶
func (d *RuleWithOperationsDie) DieStampAt(jp string, fn interface{}) *RuleWithOperationsDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*RuleWithOperationsDie) DieWith ¶
func (d *RuleWithOperationsDie) DieWith(fns ...func(d *RuleWithOperationsDie)) *RuleWithOperationsDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*RuleWithOperationsDie) Operations ¶
func (d *RuleWithOperationsDie) Operations(v ...admissionregistrationv1.OperationType) *RuleWithOperationsDie
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
for all of those operations and any future admission operations that are added.
If '*' is present, the length of the slice must be one.
Required.
func (*RuleWithOperationsDie) Resources ¶
func (d *RuleWithOperationsDie) Resources(v ...string) *RuleWithOperationsDie
func (*RuleWithOperationsDie) Rule ¶
func (d *RuleWithOperationsDie) Rule(v admissionregistrationv1.Rule) *RuleWithOperationsDie
Rule is embedded, it describes other criteria of the rule, like
APIGroups, APIVersions, Resources, etc.
func (*RuleWithOperationsDie) Scope ¶
func (d *RuleWithOperationsDie) Scope(v *admissionregistrationv1.ScopeType) *RuleWithOperationsDie
type ServiceReferenceDie ¶
type ServiceReferenceDie struct {
// contains filtered or unexported fields
}
func (*ServiceReferenceDie) DeepCopy ¶
func (d *ServiceReferenceDie) DeepCopy() *ServiceReferenceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ServiceReferenceDie) DieDiff ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ServiceReferenceDie) DieFeed ¶
func (d *ServiceReferenceDie) DieFeed(r admissionregistrationv1.ServiceReference) *ServiceReferenceDie
DieFeed returns a new die with the provided resource.
func (*ServiceReferenceDie) DieFeedJSON ¶
func (d *ServiceReferenceDie) DieFeedJSON(j []byte) *ServiceReferenceDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ServiceReferenceDie) DieFeedPtr ¶
func (d *ServiceReferenceDie) DieFeedPtr(r *admissionregistrationv1.ServiceReference) *ServiceReferenceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ServiceReferenceDie) DieFeedRawExtension ¶
func (d *ServiceReferenceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceReferenceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ServiceReferenceDie) DieFeedYAML ¶
func (d *ServiceReferenceDie) DieFeedYAML(y []byte) *ServiceReferenceDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ServiceReferenceDie) DieFeedYAMLFile ¶
func (d *ServiceReferenceDie) DieFeedYAMLFile(name string) *ServiceReferenceDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ServiceReferenceDie) DieImmutable ¶
func (d *ServiceReferenceDie) DieImmutable(immutable bool) *ServiceReferenceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ServiceReferenceDie) DiePatch ¶ added in v0.13.0
func (d *ServiceReferenceDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ServiceReferenceDie) DieRelease ¶
func (d *ServiceReferenceDie) DieRelease() admissionregistrationv1.ServiceReference
DieRelease returns the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseJSON ¶
func (d *ServiceReferenceDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ServiceReferenceDie) DieReleasePtr ¶
func (d *ServiceReferenceDie) DieReleasePtr() *admissionregistrationv1.ServiceReference
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ServiceReferenceDie) DieReleaseRawExtension ¶
func (d *ServiceReferenceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ServiceReferenceDie) DieReleaseYAML ¶
func (d *ServiceReferenceDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ServiceReferenceDie) DieSeal ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieSeal() *ServiceReferenceDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ServiceReferenceDie) DieSealFeed ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieSealFeed(r admissionregistrationv1.ServiceReference) *ServiceReferenceDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ServiceReferenceDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieSealFeedPtr(r *admissionregistrationv1.ServiceReference) *ServiceReferenceDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ServiceReferenceDie) DieSealRelease ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieSealRelease() admissionregistrationv1.ServiceReference
DieSealRelease returns the sealed resource managed by the die.
func (*ServiceReferenceDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ServiceReferenceDie) DieSealReleasePtr() *admissionregistrationv1.ServiceReference
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ServiceReferenceDie) DieStamp ¶
func (d *ServiceReferenceDie) DieStamp(fn func(r *admissionregistrationv1.ServiceReference)) *ServiceReferenceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ServiceReferenceDie) DieStampAt ¶
func (d *ServiceReferenceDie) DieStampAt(jp string, fn interface{}) *ServiceReferenceDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ServiceReferenceDie) DieWith ¶
func (d *ServiceReferenceDie) DieWith(fns ...func(d *ServiceReferenceDie)) *ServiceReferenceDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ServiceReferenceDie) Name ¶
func (d *ServiceReferenceDie) Name(v string) *ServiceReferenceDie
`name` is the name of the service.
Required
func (*ServiceReferenceDie) Namespace ¶
func (d *ServiceReferenceDie) Namespace(v string) *ServiceReferenceDie
`namespace` is the namespace of the service.
Required
func (*ServiceReferenceDie) Path ¶
func (d *ServiceReferenceDie) Path(v *string) *ServiceReferenceDie
`path` is an optional URL path which will be sent in any request to
this service.
func (*ServiceReferenceDie) Port ¶
func (d *ServiceReferenceDie) Port(v *int32) *ServiceReferenceDie
If specified, the port on the service that hosting webhook.
Default to 443 for backward compatibility.
`port` should be a valid port number (1-65535, inclusive).
type TypeCheckingDie ¶ added in v0.13.0
type TypeCheckingDie struct {
// contains filtered or unexported fields
}
func (*TypeCheckingDie) DeepCopy ¶ added in v0.13.0
func (d *TypeCheckingDie) DeepCopy() *TypeCheckingDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*TypeCheckingDie) DieDiff ¶ added in v0.13.0
func (d *TypeCheckingDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*TypeCheckingDie) DieFeed ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeed(r admissionregistrationv1.TypeChecking) *TypeCheckingDie
DieFeed returns a new die with the provided resource.
func (*TypeCheckingDie) DieFeedJSON ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeedJSON(j []byte) *TypeCheckingDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*TypeCheckingDie) DieFeedPtr ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeedPtr(r *admissionregistrationv1.TypeChecking) *TypeCheckingDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*TypeCheckingDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeedRawExtension(raw runtime.RawExtension) *TypeCheckingDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*TypeCheckingDie) DieFeedYAML ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeedYAML(y []byte) *TypeCheckingDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*TypeCheckingDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *TypeCheckingDie) DieFeedYAMLFile(name string) *TypeCheckingDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*TypeCheckingDie) DieImmutable ¶ added in v0.13.0
func (d *TypeCheckingDie) DieImmutable(immutable bool) *TypeCheckingDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*TypeCheckingDie) DiePatch ¶ added in v0.13.0
func (d *TypeCheckingDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*TypeCheckingDie) DieRelease ¶ added in v0.13.0
func (d *TypeCheckingDie) DieRelease() admissionregistrationv1.TypeChecking
DieRelease returns the resource managed by the die.
func (*TypeCheckingDie) DieReleaseJSON ¶ added in v0.13.0
func (d *TypeCheckingDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*TypeCheckingDie) DieReleasePtr ¶ added in v0.13.0
func (d *TypeCheckingDie) DieReleasePtr() *admissionregistrationv1.TypeChecking
DieReleasePtr returns a pointer to the resource managed by the die.
func (*TypeCheckingDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *TypeCheckingDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*TypeCheckingDie) DieReleaseYAML ¶ added in v0.13.0
func (d *TypeCheckingDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*TypeCheckingDie) DieSeal ¶ added in v0.13.0
func (d *TypeCheckingDie) DieSeal() *TypeCheckingDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*TypeCheckingDie) DieSealFeed ¶ added in v0.13.0
func (d *TypeCheckingDie) DieSealFeed(r admissionregistrationv1.TypeChecking) *TypeCheckingDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*TypeCheckingDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *TypeCheckingDie) DieSealFeedPtr(r *admissionregistrationv1.TypeChecking) *TypeCheckingDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*TypeCheckingDie) DieSealRelease ¶ added in v0.13.0
func (d *TypeCheckingDie) DieSealRelease() admissionregistrationv1.TypeChecking
DieSealRelease returns the sealed resource managed by the die.
func (*TypeCheckingDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *TypeCheckingDie) DieSealReleasePtr() *admissionregistrationv1.TypeChecking
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*TypeCheckingDie) DieStamp ¶ added in v0.13.0
func (d *TypeCheckingDie) DieStamp(fn func(r *admissionregistrationv1.TypeChecking)) *TypeCheckingDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*TypeCheckingDie) DieStampAt ¶ added in v0.13.0
func (d *TypeCheckingDie) DieStampAt(jp string, fn interface{}) *TypeCheckingDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*TypeCheckingDie) DieWith ¶ added in v0.13.0
func (d *TypeCheckingDie) DieWith(fns ...func(d *TypeCheckingDie)) *TypeCheckingDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*TypeCheckingDie) ExpressionWarnings ¶ added in v0.13.0
func (d *TypeCheckingDie) ExpressionWarnings(v ...admissionregistrationv1.ExpressionWarning) *TypeCheckingDie
The type checking warnings for each expression.
func (*TypeCheckingDie) ExpressionWarningsDie ¶ added in v0.13.0
func (d *TypeCheckingDie) ExpressionWarningsDie(v ...*ExpressionWarningDie) *TypeCheckingDie
ExpressionWarningsDie replaces ExpressionWarnings by collecting the released value from each die passed.
The type checking warnings for each expression.
type ValidatingAdmissionPolicyBindingDie ¶ added in v0.13.0
type ValidatingAdmissionPolicyBindingDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*ValidatingAdmissionPolicyBindingDie) APIVersion ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) APIVersion(v string) *ValidatingAdmissionPolicyBindingDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*ValidatingAdmissionPolicyBindingDie) DeepCopy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DeepCopy() *ValidatingAdmissionPolicyBindingDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingAdmissionPolicyBindingDie) DeepCopyObject ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DeepCopyObject() runtime.Object
func (*ValidatingAdmissionPolicyBindingDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieDefaultTypeMetadata() *ValidatingAdmissionPolicyBindingDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "admissionregistration.k8s.io/v1" and "ValidatingAdmissionPolicyBinding" respectively.
func (*ValidatingAdmissionPolicyBindingDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingAdmissionPolicyBindingDie) DieFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
DieFeed returns a new die with the provided resource.
func (*ValidatingAdmissionPolicyBindingDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyBindingDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyBindingDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyBindingDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyBindingDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyBindingDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieImmutable ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyBindingDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingAdmissionPolicyBindingDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingAdmissionPolicyBindingDie) DieRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyBinding
DieRelease returns the resource managed by the die.
func (*ValidatingAdmissionPolicyBindingDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBinding
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingAdmissionPolicyBindingDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieReleaseUnstructured ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingAdmissionPolicyBindingDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieSeal() *ValidatingAdmissionPolicyBindingDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyBindingDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyBindingDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding) *ValidatingAdmissionPolicyBindingDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyBindingDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyBinding
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingAdmissionPolicyBindingDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBinding
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingAdmissionPolicyBindingDie) DieStamp ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyBinding)) *ValidatingAdmissionPolicyBindingDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingAdmissionPolicyBindingDie) DieStampAt ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyBindingDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingAdmissionPolicyBindingDie) DieWith ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyBindingDie)) *ValidatingAdmissionPolicyBindingDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingAdmissionPolicyBindingDie) GetObjectKind ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) GetObjectKind() schema.ObjectKind
func (*ValidatingAdmissionPolicyBindingDie) Kind ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) Kind(v string) *ValidatingAdmissionPolicyBindingDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*ValidatingAdmissionPolicyBindingDie) MarshalJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) MarshalJSON() ([]byte, error)
func (*ValidatingAdmissionPolicyBindingDie) Metadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) Metadata(v apismetav1.ObjectMeta) *ValidatingAdmissionPolicyBindingDie
Metadata standard object's metadata.
func (*ValidatingAdmissionPolicyBindingDie) MetadataDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingAdmissionPolicyBindingDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*ValidatingAdmissionPolicyBindingDie) Spec ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) Spec(v admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingDie
Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
func (*ValidatingAdmissionPolicyBindingDie) SpecDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) SpecDie(fn func(d *ValidatingAdmissionPolicyBindingSpecDie)) *ValidatingAdmissionPolicyBindingDie
SpecDie stamps the resource's spec field with a mutable die.
func (*ValidatingAdmissionPolicyBindingDie) TypeMetadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingAdmissionPolicyBindingDie
TypeMetadata standard object's type metadata.
func (*ValidatingAdmissionPolicyBindingDie) TypeMetadataDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingAdmissionPolicyBindingDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*ValidatingAdmissionPolicyBindingDie) UnmarshalJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingDie) UnmarshalJSON(b []byte) error
type ValidatingAdmissionPolicyBindingSpecDie ¶ added in v0.13.0
type ValidatingAdmissionPolicyBindingSpecDie struct {
// contains filtered or unexported fields
}
func (*ValidatingAdmissionPolicyBindingSpecDie) DeepCopy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DeepCopy() *ValidatingAdmissionPolicyBindingSpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
DieFeed returns a new die with the provided resource.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyBindingSpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyBindingSpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyBindingSpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyBindingSpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieImmutable ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyBindingSpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingAdmissionPolicyBindingSpecDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
DieRelease returns the resource managed by the die.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSeal() *ValidatingAdmissionPolicyBindingSpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec) *ValidatingAdmissionPolicyBindingSpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieStamp ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyBindingSpec)) *ValidatingAdmissionPolicyBindingSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieStampAt ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyBindingSpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingAdmissionPolicyBindingSpecDie) DieWith ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyBindingSpecDie)) *ValidatingAdmissionPolicyBindingSpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingAdmissionPolicyBindingSpecDie) MatchResources ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) MatchResources(v *admissionregistrationv1.MatchResources) *ValidatingAdmissionPolicyBindingSpecDie
MatchResources declares what resources match this binding and will be validated by it.
Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
If this is unset, all resources matched by the policy are validated by this binding ¶
When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
func (*ValidatingAdmissionPolicyBindingSpecDie) MatchResourcesDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) MatchResourcesDie(fn func(d *MatchResourcesDie)) *ValidatingAdmissionPolicyBindingSpecDie
MatchResourcesDie mutates MatchResources as a die.
MatchResources declares what resources match this binding and will be validated by it.
Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
If this is unset, all resources matched by the policy are validated by this binding ¶
When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
func (*ValidatingAdmissionPolicyBindingSpecDie) ParamRef ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) ParamRef(v *admissionregistrationv1.ParamRef) *ValidatingAdmissionPolicyBindingSpecDie
paramRef specifies the parameter resource used to configure the admission control policy.
It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy.
If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied.
If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
func (*ValidatingAdmissionPolicyBindingSpecDie) ParamRefDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) ParamRefDie(fn func(d *ParamRefDie)) *ValidatingAdmissionPolicyBindingSpecDie
ParamRefDie mutates ParamRef as a die.
paramRef specifies the parameter resource used to configure the admission control policy.
It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy.
If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied.
If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
func (*ValidatingAdmissionPolicyBindingSpecDie) PolicyName ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) PolicyName(v string) *ValidatingAdmissionPolicyBindingSpecDie
PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
If the referenced resource does not exist, this binding is considered invalid and will be ignored ¶
Required.
func (*ValidatingAdmissionPolicyBindingSpecDie) ValidationActions ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyBindingSpecDie) ValidationActions(v ...admissionregistrationv1.ValidationAction) *ValidatingAdmissionPolicyBindingSpecDie
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced.
If a validation evaluates to false it is always enforced according to these actions.
Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according ¶
to these actions only if the FailurePolicy is set to Fail, otherwise the failures are
ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
validationActions is declared as a set of action values. Order does
not matter. validationActions may not contain duplicates of the same action.
The supported actions values are:
"Deny" specifies that a validation failure results in a denied request.
"Warn" specifies that a validation failure is reported to the request client
in HTTP Warning headers, with a warning code of 299. Warnings can be sent
both for allowed or denied admission responses.
"Audit" specifies that a validation failure is included in the published
audit event for the request. The audit event will contain a
`validation.policy.admission.k8s.io/validation_failure` audit annotation
with a value containing the details of the validation failures, formatted as
a JSON list of objects, each with the following fields:
- message: The validation failure message string
- policy: The resource name of the ValidatingAdmissionPolicy
- binding: The resource name of the ValidatingAdmissionPolicyBinding
- expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy
- validationActions: The enforcement actions enacted for the validation failure
Example audit annotation:
`"validation.policy.admission.k8s.io/validation_failure": "[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]"`
Clients should expect to handle additional values by ignoring ¶
any values not recognized.
"Deny" and "Warn" may not be used together since this combination
needlessly duplicates the validation failure both in the
API response body and the HTTP warning headers.
Required.
type ValidatingAdmissionPolicyDie ¶ added in v0.13.0
type ValidatingAdmissionPolicyDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*ValidatingAdmissionPolicyDie) APIVersion ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) APIVersion(v string) *ValidatingAdmissionPolicyDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*ValidatingAdmissionPolicyDie) DeepCopy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DeepCopy() *ValidatingAdmissionPolicyDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingAdmissionPolicyDie) DeepCopyObject ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DeepCopyObject() runtime.Object
func (*ValidatingAdmissionPolicyDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieDefaultTypeMetadata() *ValidatingAdmissionPolicyDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "admissionregistration.k8s.io/v1" and "ValidatingAdmissionPolicy" respectively.
func (*ValidatingAdmissionPolicyDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingAdmissionPolicyDie) DieFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
DieFeed returns a new die with the provided resource.
func (*ValidatingAdmissionPolicyDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieImmutable ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingAdmissionPolicyDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingAdmissionPolicyDie) DieRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicy
DieRelease returns the resource managed by the die.
func (*ValidatingAdmissionPolicyDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicy
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingAdmissionPolicyDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieReleaseUnstructured ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingAdmissionPolicyDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieSeal() *ValidatingAdmissionPolicyDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicy) *ValidatingAdmissionPolicyDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicy
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingAdmissionPolicyDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicy
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingAdmissionPolicyDie) DieStamp ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicy)) *ValidatingAdmissionPolicyDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingAdmissionPolicyDie) DieStampAt ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingAdmissionPolicyDie) DieWith ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyDie)) *ValidatingAdmissionPolicyDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingAdmissionPolicyDie) GetObjectKind ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) GetObjectKind() schema.ObjectKind
func (*ValidatingAdmissionPolicyDie) Kind ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) Kind(v string) *ValidatingAdmissionPolicyDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*ValidatingAdmissionPolicyDie) MarshalJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) MarshalJSON() ([]byte, error)
func (*ValidatingAdmissionPolicyDie) Metadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) Metadata(v apismetav1.ObjectMeta) *ValidatingAdmissionPolicyDie
Metadata standard object's metadata.
func (*ValidatingAdmissionPolicyDie) MetadataDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingAdmissionPolicyDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*ValidatingAdmissionPolicyDie) Spec ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) Spec(v admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicyDie
Specification of the desired behavior of the ValidatingAdmissionPolicy.
func (*ValidatingAdmissionPolicyDie) SpecDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) SpecDie(fn func(d *ValidatingAdmissionPolicySpecDie)) *ValidatingAdmissionPolicyDie
SpecDie stamps the resource's spec field with a mutable die.
func (*ValidatingAdmissionPolicyDie) Status ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) Status(v admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyDie
The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
behaves in the expected way.
Populated by the system.
Read-only.
func (*ValidatingAdmissionPolicyDie) StatusDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) StatusDie(fn func(d *ValidatingAdmissionPolicyStatusDie)) *ValidatingAdmissionPolicyDie
StatusDie stamps the resource's status field with a mutable die.
func (*ValidatingAdmissionPolicyDie) TypeMetadata ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingAdmissionPolicyDie
TypeMetadata standard object's type metadata.
func (*ValidatingAdmissionPolicyDie) TypeMetadataDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingAdmissionPolicyDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*ValidatingAdmissionPolicyDie) UnmarshalJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyDie) UnmarshalJSON(b []byte) error
type ValidatingAdmissionPolicySpecDie ¶ added in v0.13.0
type ValidatingAdmissionPolicySpecDie struct {
// contains filtered or unexported fields
}
func (*ValidatingAdmissionPolicySpecDie) AuditAnnotations ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) AuditAnnotations(v ...admissionregistrationv1.AuditAnnotation) *ValidatingAdmissionPolicySpecDie
auditAnnotations contains CEL expressions which are used to produce audit
annotations for the audit event of the API request.
validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is
required.
func (*ValidatingAdmissionPolicySpecDie) AuditAnnotationsDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) AuditAnnotationsDie(v ...*AuditAnnotationDie) *ValidatingAdmissionPolicySpecDie
AuditAnnotationsDie replaces AuditAnnotations by collecting the released value from each die passed.
auditAnnotations contains CEL expressions which are used to produce audit
annotations for the audit event of the API request.
validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is
required.
func (*ValidatingAdmissionPolicySpecDie) DeepCopy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DeepCopy() *ValidatingAdmissionPolicySpecDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingAdmissionPolicySpecDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingAdmissionPolicySpecDie) DieFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
DieFeed returns a new die with the provided resource.
func (*ValidatingAdmissionPolicySpecDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicySpecDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicySpecDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicySpecDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicySpecDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicySpecDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieImmutable ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicySpecDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingAdmissionPolicySpecDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingAdmissionPolicySpecDie) DieRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicySpec
DieRelease returns the resource managed by the die.
func (*ValidatingAdmissionPolicySpecDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicySpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingAdmissionPolicySpecDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingAdmissionPolicySpecDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieSeal() *ValidatingAdmissionPolicySpecDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicySpecDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicySpecDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicySpec) *ValidatingAdmissionPolicySpecDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicySpecDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicySpec
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingAdmissionPolicySpecDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicySpec
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingAdmissionPolicySpecDie) DieStamp ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicySpec)) *ValidatingAdmissionPolicySpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingAdmissionPolicySpecDie) DieStampAt ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicySpecDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingAdmissionPolicySpecDie) DieWith ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) DieWith(fns ...func(d *ValidatingAdmissionPolicySpecDie)) *ValidatingAdmissionPolicySpecDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingAdmissionPolicySpecDie) FailurePolicy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *ValidatingAdmissionPolicySpecDie
failurePolicy defines how to handle failures for the admission policy. Failures can
occur from CEL expression parse errors, type check errors, runtime errors and invalid
or mis-configured policy definitions or bindings.
A policy is invalid if spec.paramKind refers to a non-existent Kind.
A binding is invalid if spec.paramRef.name refers to a non-existent resource.
failurePolicy does not define how validations that evaluate to false are handled.
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions ¶
define how failures are enforced.
Allowed values are Ignore or Fail. Defaults to Fail.
func (*ValidatingAdmissionPolicySpecDie) MatchConditionDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *ValidatingAdmissionPolicySpecDie
MatchConditionDie mutates a single item in MatchConditions matched by the nested field Name, appending a new item if no match is found.
MatchConditions is a list of conditions that must be met for a request to be validated.
Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
If a parameter object is provided, it can be accessed via the `params` handle in the same ¶
manner as validation expressions.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the policy is skipped
func (*ValidatingAdmissionPolicySpecDie) MatchConditions ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *ValidatingAdmissionPolicySpecDie
MatchConditions is a list of conditions that must be met for a request to be validated.
Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
If a parameter object is provided, it can be accessed via the `params` handle in the same ¶
manner as validation expressions.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the policy is skipped
func (*ValidatingAdmissionPolicySpecDie) MatchConstraints ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) MatchConstraints(v *admissionregistrationv1.MatchResources) *ValidatingAdmissionPolicySpecDie
MatchConstraints specifies what resources this policy is designed to validate.
The AdmissionPolicy cares about a request if it matches _all_ Constraints.
However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ¶
ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
Required.
func (*ValidatingAdmissionPolicySpecDie) MatchConstraintsDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) MatchConstraintsDie(fn func(d *MatchResourcesDie)) *ValidatingAdmissionPolicySpecDie
MatchConstraintsDie mutates MatchConstraints as a die.
MatchConstraints specifies what resources this policy is designed to validate.
The AdmissionPolicy cares about a request if it matches _all_ Constraints.
However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ¶
ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
Required.
func (*ValidatingAdmissionPolicySpecDie) ParamKind ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) ParamKind(v *admissionregistrationv1.ParamKind) *ValidatingAdmissionPolicySpecDie
ParamKind specifies the kind of resources used to parameterize this policy.
If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
func (*ValidatingAdmissionPolicySpecDie) ParamKindDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) ParamKindDie(fn func(d *ParamKindDie)) *ValidatingAdmissionPolicySpecDie
ParamKindDie mutates ParamKind as a die.
ParamKind specifies the kind of resources used to parameterize this policy.
If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
func (*ValidatingAdmissionPolicySpecDie) Validations ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) Validations(v ...admissionregistrationv1.Validation) *ValidatingAdmissionPolicySpecDie
Validations contain CEL expressions which is used to apply the validation.
Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
required.
func (*ValidatingAdmissionPolicySpecDie) ValidationsDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) ValidationsDie(v ...*ValidationDie) *ValidatingAdmissionPolicySpecDie
ValidationsDie replaces Validations by collecting the released value from each die passed.
Validations contain CEL expressions which is used to apply the validation.
Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
required.
func (*ValidatingAdmissionPolicySpecDie) VariableDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) VariableDie(v string, fn func(d *VariableDie)) *ValidatingAdmissionPolicySpecDie
VariableDie mutates a single item in Variables matched by the nested field Name, appending a new item if no match is found.
Variables contain definitions of variables that can be used in composition of other expressions.
Each variable is defined as a named CEL expression.
The variables defined here will be available under `variables` in other expressions of the policy ¶
except MatchConditions because MatchConditions are evaluated before the rest of the policy.
The expression of a variable can refer to other variables defined earlier in the list but not those after.
Thus, Variables must be sorted by the order of first appearance and acyclic.
func (*ValidatingAdmissionPolicySpecDie) Variables ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) Variables(v ...admissionregistrationv1.Variable) *ValidatingAdmissionPolicySpecDie
Variables contain definitions of variables that can be used in composition of other expressions.
Each variable is defined as a named CEL expression.
The variables defined here will be available under `variables` in other expressions of the policy ¶
except MatchConditions because MatchConditions are evaluated before the rest of the policy.
The expression of a variable can refer to other variables defined earlier in the list but not those after.
Thus, Variables must be sorted by the order of first appearance and acyclic.
func (*ValidatingAdmissionPolicySpecDie) VariablesDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicySpecDie) VariablesDie(name string, fn func(d *VariableDie)) *ValidatingAdmissionPolicySpecDie
deprecated: use VariableDie instead
type ValidatingAdmissionPolicyStatusDie ¶ added in v0.13.0
type ValidatingAdmissionPolicyStatusDie struct {
// contains filtered or unexported fields
}
func (*ValidatingAdmissionPolicyStatusDie) Conditions ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) Conditions(v ...apismetav1.Condition) *ValidatingAdmissionPolicyStatusDie
The conditions represent the latest available observations of a policy's current state.
func (*ValidatingAdmissionPolicyStatusDie) ConditionsDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) ConditionsDie(v ...*metav1.ConditionDie) *ValidatingAdmissionPolicyStatusDie
ConditionsDie replaces Conditions by collecting the released value from each die passed.
The conditions represent the latest available observations of a policy's current state.
func (*ValidatingAdmissionPolicyStatusDie) DeepCopy ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DeepCopy() *ValidatingAdmissionPolicyStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingAdmissionPolicyStatusDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingAdmissionPolicyStatusDie) DieFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeed(r admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
DieFeed returns a new die with the provided resource.
func (*ValidatingAdmissionPolicyStatusDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeedJSON(j []byte) *ValidatingAdmissionPolicyStatusDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyStatusDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingAdmissionPolicyStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeedYAML(y []byte) *ValidatingAdmissionPolicyStatusDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieFeedYAMLFile(name string) *ValidatingAdmissionPolicyStatusDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieImmutable ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieImmutable(immutable bool) *ValidatingAdmissionPolicyStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingAdmissionPolicyStatusDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingAdmissionPolicyStatusDie) DieRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieRelease() admissionregistrationv1.ValidatingAdmissionPolicyStatus
DieRelease returns the resource managed by the die.
func (*ValidatingAdmissionPolicyStatusDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingAdmissionPolicyStatusDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingAdmissionPolicyStatusDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieSeal() *ValidatingAdmissionPolicyStatusDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyStatusDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieSealFeed(r admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingAdmissionPolicyStatusDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus) *ValidatingAdmissionPolicyStatusDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingAdmissionPolicyStatusDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieSealRelease() admissionregistrationv1.ValidatingAdmissionPolicyStatus
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingAdmissionPolicyStatusDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingAdmissionPolicyStatus
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingAdmissionPolicyStatusDie) DieStamp ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingAdmissionPolicyStatus)) *ValidatingAdmissionPolicyStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingAdmissionPolicyStatusDie) DieStampAt ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieStampAt(jp string, fn interface{}) *ValidatingAdmissionPolicyStatusDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingAdmissionPolicyStatusDie) DieWith ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) DieWith(fns ...func(d *ValidatingAdmissionPolicyStatusDie)) *ValidatingAdmissionPolicyStatusDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingAdmissionPolicyStatusDie) ObservedGeneration ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) ObservedGeneration(v int64) *ValidatingAdmissionPolicyStatusDie
The generation observed by the controller.
func (*ValidatingAdmissionPolicyStatusDie) TypeChecking ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) TypeChecking(v *admissionregistrationv1.TypeChecking) *ValidatingAdmissionPolicyStatusDie
The results of type checking for each expression.
Presence of this field indicates the completion of the type checking.
func (*ValidatingAdmissionPolicyStatusDie) TypeCheckingDie ¶ added in v0.13.0
func (d *ValidatingAdmissionPolicyStatusDie) TypeCheckingDie(fn func(d *TypeCheckingDie)) *ValidatingAdmissionPolicyStatusDie
TypeCheckingDie mutates TypeChecking as a die.
The results of type checking for each expression.
Presence of this field indicates the completion of the type checking.
type ValidatingWebhookConfigurationDie ¶
type ValidatingWebhookConfigurationDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*ValidatingWebhookConfigurationDie) APIVersion ¶
func (d *ValidatingWebhookConfigurationDie) APIVersion(v string) *ValidatingWebhookConfigurationDie
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (*ValidatingWebhookConfigurationDie) DeepCopy ¶
func (d *ValidatingWebhookConfigurationDie) DeepCopy() *ValidatingWebhookConfigurationDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingWebhookConfigurationDie) DeepCopyObject ¶
func (d *ValidatingWebhookConfigurationDie) DeepCopyObject() runtime.Object
func (*ValidatingWebhookConfigurationDie) DieDefaultTypeMetadata ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieDefaultTypeMetadata() *ValidatingWebhookConfigurationDie
DieDefaultTypeMetadata sets the APIVersion and Kind to "admissionregistration.k8s.io/v1" and "ValidatingWebhookConfiguration" respectively.
func (*ValidatingWebhookConfigurationDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingWebhookConfigurationDie) DieFeed ¶
func (d *ValidatingWebhookConfigurationDie) DieFeed(r admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
DieFeed returns a new die with the provided resource.
func (*ValidatingWebhookConfigurationDie) DieFeedJSON ¶
func (d *ValidatingWebhookConfigurationDie) DieFeedJSON(j []byte) *ValidatingWebhookConfigurationDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieFeedPtr ¶
func (d *ValidatingWebhookConfigurationDie) DieFeedPtr(r *admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingWebhookConfigurationDie) DieFeedRawExtension ¶
func (d *ValidatingWebhookConfigurationDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingWebhookConfigurationDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieFeedYAML ¶
func (d *ValidatingWebhookConfigurationDie) DieFeedYAML(y []byte) *ValidatingWebhookConfigurationDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieFeedYAMLFile ¶
func (d *ValidatingWebhookConfigurationDie) DieFeedYAMLFile(name string) *ValidatingWebhookConfigurationDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieImmutable ¶
func (d *ValidatingWebhookConfigurationDie) DieImmutable(immutable bool) *ValidatingWebhookConfigurationDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingWebhookConfigurationDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingWebhookConfigurationDie) DieRelease ¶
func (d *ValidatingWebhookConfigurationDie) DieRelease() admissionregistrationv1.ValidatingWebhookConfiguration
DieRelease returns the resource managed by the die.
func (*ValidatingWebhookConfigurationDie) DieReleaseJSON ¶
func (d *ValidatingWebhookConfigurationDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieReleasePtr ¶
func (d *ValidatingWebhookConfigurationDie) DieReleasePtr() *admissionregistrationv1.ValidatingWebhookConfiguration
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingWebhookConfigurationDie) DieReleaseRawExtension ¶
func (d *ValidatingWebhookConfigurationDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieReleaseUnstructured ¶
func (d *ValidatingWebhookConfigurationDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieReleaseYAML ¶
func (d *ValidatingWebhookConfigurationDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingWebhookConfigurationDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieSeal() *ValidatingWebhookConfigurationDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingWebhookConfigurationDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieSealFeed(r admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingWebhookConfigurationDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingWebhookConfigurationDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingWebhookConfigurationDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieSealRelease() admissionregistrationv1.ValidatingWebhookConfiguration
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingWebhookConfigurationDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingWebhookConfiguration
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingWebhookConfigurationDie) DieStamp ¶
func (d *ValidatingWebhookConfigurationDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingWebhookConfiguration)) *ValidatingWebhookConfigurationDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingWebhookConfigurationDie) DieStampAt ¶
func (d *ValidatingWebhookConfigurationDie) DieStampAt(jp string, fn interface{}) *ValidatingWebhookConfigurationDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingWebhookConfigurationDie) DieWith ¶
func (d *ValidatingWebhookConfigurationDie) DieWith(fns ...func(d *ValidatingWebhookConfigurationDie)) *ValidatingWebhookConfigurationDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingWebhookConfigurationDie) GetObjectKind ¶
func (d *ValidatingWebhookConfigurationDie) GetObjectKind() schema.ObjectKind
func (*ValidatingWebhookConfigurationDie) Kind ¶
func (d *ValidatingWebhookConfigurationDie) Kind(v string) *ValidatingWebhookConfigurationDie
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (*ValidatingWebhookConfigurationDie) MarshalJSON ¶
func (d *ValidatingWebhookConfigurationDie) MarshalJSON() ([]byte, error)
func (*ValidatingWebhookConfigurationDie) Metadata ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) Metadata(v apismetav1.ObjectMeta) *ValidatingWebhookConfigurationDie
Metadata standard object's metadata.
func (*ValidatingWebhookConfigurationDie) MetadataDie ¶
func (d *ValidatingWebhookConfigurationDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ValidatingWebhookConfigurationDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*ValidatingWebhookConfigurationDie) TypeMetadata ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) TypeMetadata(v apismetav1.TypeMeta) *ValidatingWebhookConfigurationDie
TypeMetadata standard object's type metadata.
func (*ValidatingWebhookConfigurationDie) TypeMetadataDie ¶ added in v0.13.0
func (d *ValidatingWebhookConfigurationDie) TypeMetadataDie(fn func(d *metav1.TypeMetaDie)) *ValidatingWebhookConfigurationDie
TypeMetadataDie stamps the resource's TypeMeta field with a mutable die.
func (*ValidatingWebhookConfigurationDie) UnmarshalJSON ¶
func (d *ValidatingWebhookConfigurationDie) UnmarshalJSON(b []byte) error
func (*ValidatingWebhookConfigurationDie) WebhookDie ¶
func (d *ValidatingWebhookConfigurationDie) WebhookDie(v string, fn func(d *ValidatingWebhookDie)) *ValidatingWebhookConfigurationDie
WebhookDie mutates a single item in Webhooks matched by the nested field Name, appending a new item if no match is found.
Webhooks is a list of webhooks and the affected resources and operations.
func (*ValidatingWebhookConfigurationDie) Webhooks ¶
func (d *ValidatingWebhookConfigurationDie) Webhooks(v ...admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookConfigurationDie
Webhooks is a list of webhooks and the affected resources and operations.
type ValidatingWebhookDie ¶
type ValidatingWebhookDie struct {
// contains filtered or unexported fields
}
func (*ValidatingWebhookDie) AdmissionReviewVersions ¶
func (d *ValidatingWebhookDie) AdmissionReviewVersions(v ...string) *ValidatingWebhookDie
AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
versions the Webhook expects. API server will try to use first version in
the list which it supports. If none of the versions specified in this list
supported by API server, validation will fail for this object.
If a persisted webhook configuration specifies allowed versions and does not ¶
include any versions known to the API Server, calls to the webhook will fail
and be subject to the failure policy.
func (*ValidatingWebhookDie) ClientConfig ¶
func (d *ValidatingWebhookDie) ClientConfig(v admissionregistrationv1.WebhookClientConfig) *ValidatingWebhookDie
ClientConfig defines how to communicate with the hook.
Required
func (*ValidatingWebhookDie) ClientConfigDie ¶
func (d *ValidatingWebhookDie) ClientConfigDie(fn func(d *WebhookClientConfigDie)) *ValidatingWebhookDie
ClientConfigDie mutates ClientConfig as a die.
ClientConfig defines how to communicate with the hook.
Required
func (*ValidatingWebhookDie) DeepCopy ¶
func (d *ValidatingWebhookDie) DeepCopy() *ValidatingWebhookDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidatingWebhookDie) DieDiff ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidatingWebhookDie) DieFeed ¶
func (d *ValidatingWebhookDie) DieFeed(r admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
DieFeed returns a new die with the provided resource.
func (*ValidatingWebhookDie) DieFeedJSON ¶
func (d *ValidatingWebhookDie) DieFeedJSON(j []byte) *ValidatingWebhookDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidatingWebhookDie) DieFeedPtr ¶
func (d *ValidatingWebhookDie) DieFeedPtr(r *admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidatingWebhookDie) DieFeedRawExtension ¶
func (d *ValidatingWebhookDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidatingWebhookDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingWebhookDie) DieFeedYAML ¶
func (d *ValidatingWebhookDie) DieFeedYAML(y []byte) *ValidatingWebhookDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidatingWebhookDie) DieFeedYAMLFile ¶
func (d *ValidatingWebhookDie) DieFeedYAMLFile(name string) *ValidatingWebhookDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidatingWebhookDie) DieImmutable ¶
func (d *ValidatingWebhookDie) DieImmutable(immutable bool) *ValidatingWebhookDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidatingWebhookDie) DiePatch ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidatingWebhookDie) DieRelease ¶
func (d *ValidatingWebhookDie) DieRelease() admissionregistrationv1.ValidatingWebhook
DieRelease returns the resource managed by the die.
func (*ValidatingWebhookDie) DieReleaseJSON ¶
func (d *ValidatingWebhookDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidatingWebhookDie) DieReleasePtr ¶
func (d *ValidatingWebhookDie) DieReleasePtr() *admissionregistrationv1.ValidatingWebhook
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidatingWebhookDie) DieReleaseRawExtension ¶
func (d *ValidatingWebhookDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidatingWebhookDie) DieReleaseYAML ¶
func (d *ValidatingWebhookDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidatingWebhookDie) DieSeal ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieSeal() *ValidatingWebhookDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidatingWebhookDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieSealFeed(r admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidatingWebhookDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieSealFeedPtr(r *admissionregistrationv1.ValidatingWebhook) *ValidatingWebhookDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidatingWebhookDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieSealRelease() admissionregistrationv1.ValidatingWebhook
DieSealRelease returns the sealed resource managed by the die.
func (*ValidatingWebhookDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidatingWebhookDie) DieSealReleasePtr() *admissionregistrationv1.ValidatingWebhook
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidatingWebhookDie) DieStamp ¶
func (d *ValidatingWebhookDie) DieStamp(fn func(r *admissionregistrationv1.ValidatingWebhook)) *ValidatingWebhookDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidatingWebhookDie) DieStampAt ¶
func (d *ValidatingWebhookDie) DieStampAt(jp string, fn interface{}) *ValidatingWebhookDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidatingWebhookDie) DieWith ¶
func (d *ValidatingWebhookDie) DieWith(fns ...func(d *ValidatingWebhookDie)) *ValidatingWebhookDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidatingWebhookDie) FailurePolicy ¶
func (d *ValidatingWebhookDie) FailurePolicy(v *admissionregistrationv1.FailurePolicyType) *ValidatingWebhookDie
FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
allowed values are Ignore or Fail. Defaults to Fail.
func (*ValidatingWebhookDie) MatchConditionDie ¶
func (d *ValidatingWebhookDie) MatchConditionDie(v string, fn func(d *MatchConditionDie)) *ValidatingWebhookDie
MatchConditionDie mutates a single item in MatchConditions matched by the nested field Name, appending a new item if no match is found.
MatchConditions is a list of conditions that must be met for a request to be sent to this ¶
webhook. Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
2. If ALL matchConditions evaluate to TRUE, the webhook is called.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the error is ignored and the webhook is skipped
func (*ValidatingWebhookDie) MatchConditions ¶
func (d *ValidatingWebhookDie) MatchConditions(v ...admissionregistrationv1.MatchCondition) *ValidatingWebhookDie
MatchConditions is a list of conditions that must be met for a request to be sent to this
webhook. Match conditions filter requests that have already been matched by the rules,
namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
There are a maximum of 64 match conditions allowed.
The exact matching logic is (in order):
1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
2. If ALL matchConditions evaluate to TRUE, the webhook is called.
3. If any matchCondition evaluates to an error (but none are FALSE):
- If failurePolicy=Fail, reject the request
- If failurePolicy=Ignore, the error is ignored and the webhook is skipped
func (*ValidatingWebhookDie) MatchPolicy ¶
func (d *ValidatingWebhookDie) MatchPolicy(v *admissionregistrationv1.MatchPolicyType) *ValidatingWebhookDie
matchPolicy defines how the "rules" list is used to match incoming requests.
Allowed values are "Exact" or "Equivalent".
- Exact: match a request only if it exactly matches a specified rule.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
Defaults to "Equivalent"
func (*ValidatingWebhookDie) Name ¶
func (d *ValidatingWebhookDie) Name(v string) *ValidatingWebhookDie
The name of the admission webhook.
Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where ¶
"imagepolicy" is the name of the webhook, and kubernetes.io is the name
of the organization.
Required.
func (*ValidatingWebhookDie) NamespaceSelector ¶
func (d *ValidatingWebhookDie) NamespaceSelector(v *apismetav1.LabelSelector) *ValidatingWebhookDie
NamespaceSelector decides whether to run the webhook on an object based
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the webhook.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the webhook on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*ValidatingWebhookDie) NamespaceSelectorDie ¶
func (d *ValidatingWebhookDie) NamespaceSelectorDie(fn func(d *metav1.LabelSelectorDie)) *ValidatingWebhookDie
NamespaceSelectorDie mutates NamespaceSelector as a die.
NamespaceSelector decides whether to run the webhook on an object based ¶
on whether the namespace for that object matches the selector. If the
object itself is a namespace, the matching is performed on
object.metadata.labels. If the object is another cluster scoped resource,
it never skips the webhook.
For example, to run the webhook on any objects whose namespace is not ¶
associated with "runlevel" of "0" or "1"; you will set the selector as
follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "runlevel",
"operator": "NotIn",
"values": [
"0",
"1"
]
}
]
}
If instead you want to only run the webhook on any objects whose ¶
namespace is associated with the "environment" of "prod" or "staging";
you will set the selector as follows:
"namespaceSelector": {
"matchExpressions": [
{
"key": "environment",
"operator": "In",
"values": [
"prod",
"staging"
]
}
]
}
See ¶
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
for more examples of label selectors.
Default to the empty LabelSelector, which matches everything.
func (*ValidatingWebhookDie) ObjectSelector ¶
func (d *ValidatingWebhookDie) ObjectSelector(v *apismetav1.LabelSelector) *ValidatingWebhookDie
ObjectSelector decides whether to run the webhook based on if the
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the webhook, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*ValidatingWebhookDie) ObjectSelectorDie ¶
func (d *ValidatingWebhookDie) ObjectSelectorDie(fn func(d *metav1.LabelSelectorDie)) *ValidatingWebhookDie
ObjectSelectorDie mutates ObjectSelector as a die.
ObjectSelector decides whether to run the webhook based on if the ¶
object has matching labels. objectSelector is evaluated against both
the oldObject and newObject that would be sent to the webhook, and
is considered to match if either object matches the selector. A null
object (oldObject in the case of create, or newObject in the case of
delete) or an object that cannot have labels (like a
DeploymentRollback or a PodProxyOptions object) is not considered to ¶
match.
Use the object selector only if the webhook is opt-in, because end ¶
users may skip the admission webhook by setting the labels.
Default to the empty LabelSelector, which matches everything.
func (*ValidatingWebhookDie) Rules ¶
func (d *ValidatingWebhookDie) Rules(v ...admissionregistrationv1.RuleWithOperations) *ValidatingWebhookDie
Rules describes what operations on what resources/subresources the webhook cares about.
The webhook cares about an operation if it matches _any_ Rule.
However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks ¶
from putting the cluster in a state which cannot be recovered from without completely
disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
func (*ValidatingWebhookDie) RulesDie ¶
func (d *ValidatingWebhookDie) RulesDie(v ...*RuleWithOperationsDie) *ValidatingWebhookDie
RulesDie replaces Rules by collecting the released value from each die passed.
Rules describes what operations on what resources/subresources the webhook cares about.
The webhook cares about an operation if it matches _any_ Rule.
However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks ¶
from putting the cluster in a state which cannot be recovered from without completely
disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
func (*ValidatingWebhookDie) SideEffects ¶
func (d *ValidatingWebhookDie) SideEffects(v *admissionregistrationv1.SideEffectClass) *ValidatingWebhookDie
SideEffects states whether this webhook has side effects.
Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown).
Webhooks with side effects MUST implement a reconciliation system, since a request may be ¶
rejected by a future step in the admission chain and the side effects therefore need to be undone.
Requests with the dryRun attribute will be auto-rejected if they match a webhook with ¶
sideEffects == Unknown or Some.
func (*ValidatingWebhookDie) TimeoutSeconds ¶
func (d *ValidatingWebhookDie) TimeoutSeconds(v *int32) *ValidatingWebhookDie
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
the webhook call will be ignored or the API call will fail based on the
failure policy.
The timeout value must be between 1 and 30 seconds.
Default to 10 seconds.
type ValidationDie ¶ added in v0.13.0
type ValidationDie struct {
// contains filtered or unexported fields
}
func (*ValidationDie) DeepCopy ¶ added in v0.13.0
func (d *ValidationDie) DeepCopy() *ValidationDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ValidationDie) DieDiff ¶ added in v0.13.0
func (d *ValidationDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*ValidationDie) DieFeed ¶ added in v0.13.0
func (d *ValidationDie) DieFeed(r admissionregistrationv1.Validation) *ValidationDie
DieFeed returns a new die with the provided resource.
func (*ValidationDie) DieFeedJSON ¶ added in v0.13.0
func (d *ValidationDie) DieFeedJSON(j []byte) *ValidationDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*ValidationDie) DieFeedPtr ¶ added in v0.13.0
func (d *ValidationDie) DieFeedPtr(r *admissionregistrationv1.Validation) *ValidationDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ValidationDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *ValidationDie) DieFeedRawExtension(raw runtime.RawExtension) *ValidationDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidationDie) DieFeedYAML ¶ added in v0.13.0
func (d *ValidationDie) DieFeedYAML(y []byte) *ValidationDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*ValidationDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *ValidationDie) DieFeedYAMLFile(name string) *ValidationDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*ValidationDie) DieImmutable ¶ added in v0.13.0
func (d *ValidationDie) DieImmutable(immutable bool) *ValidationDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ValidationDie) DiePatch ¶ added in v0.13.0
func (d *ValidationDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*ValidationDie) DieRelease ¶ added in v0.13.0
func (d *ValidationDie) DieRelease() admissionregistrationv1.Validation
DieRelease returns the resource managed by the die.
func (*ValidationDie) DieReleaseJSON ¶ added in v0.13.0
func (d *ValidationDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*ValidationDie) DieReleasePtr ¶ added in v0.13.0
func (d *ValidationDie) DieReleasePtr() *admissionregistrationv1.Validation
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ValidationDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *ValidationDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*ValidationDie) DieReleaseYAML ¶ added in v0.13.0
func (d *ValidationDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*ValidationDie) DieSeal ¶ added in v0.13.0
func (d *ValidationDie) DieSeal() *ValidationDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*ValidationDie) DieSealFeed ¶ added in v0.13.0
func (d *ValidationDie) DieSealFeed(r admissionregistrationv1.Validation) *ValidationDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*ValidationDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *ValidationDie) DieSealFeedPtr(r *admissionregistrationv1.Validation) *ValidationDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*ValidationDie) DieSealRelease ¶ added in v0.13.0
func (d *ValidationDie) DieSealRelease() admissionregistrationv1.Validation
DieSealRelease returns the sealed resource managed by the die.
func (*ValidationDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *ValidationDie) DieSealReleasePtr() *admissionregistrationv1.Validation
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*ValidationDie) DieStamp ¶ added in v0.13.0
func (d *ValidationDie) DieStamp(fn func(r *admissionregistrationv1.Validation)) *ValidationDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ValidationDie) DieStampAt ¶ added in v0.13.0
func (d *ValidationDie) DieStampAt(jp string, fn interface{}) *ValidationDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*ValidationDie) DieWith ¶ added in v0.13.0
func (d *ValidationDie) DieWith(fns ...func(d *ValidationDie)) *ValidationDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*ValidationDie) Expression ¶ added in v0.13.0
func (d *ValidationDie) Expression(v string) *ValidationDie
Expression represents the expression which will be evaluated by CEL.
ref: https://github.com/google/cel-spec
CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
- 'object' - The object from the incoming request. The value is null for DELETE requests.
- 'oldObject' - The existing object. The value is null for CREATE requests.
- 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
- 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
- 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
- 'variables' - Map of composited variables, from its name to its lazily evaluated value.
For example, a variable named 'foo' can be accessed as 'variables.foo'.
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
request resource.
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the ¶
object. No other metadata properties are accessible.
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
Accessible property names are escaped according to the following rules when accessed in the expression:
- '__' escapes to '__underscores__'
- '.' escapes to '__dot__'
- '-' escapes to '__dash__'
- '/' escapes to '__slash__'
- Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
"true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
"import", "let", "loop", "package", "namespace", "return".
Examples:
- Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
- Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
- Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1].
Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
- 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
non-intersecting elements in `Y` are appended, retaining their partial order.
- 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
non-intersecting keys are appended, retaining their partial order.
Required.
func (*ValidationDie) Message ¶ added in v0.13.0
func (d *ValidationDie) Message(v string) *ValidationDie
Message represents the message displayed when validation fails. The message is required if the Expression contains
line breaks. The message must not contain line breaks.
If unset, the message is "failed rule: {Rule}".
e.g. "must be a URL with the host matching spec.host"
If the Expression contains line breaks. Message is required.
The message must not contain line breaks.
If unset, the message is "failed Expression: {Expression}".
func (*ValidationDie) MessageExpression ¶ added in v0.13.0
func (d *ValidationDie) MessageExpression(v string) *ValidationDie
messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails.
Since messageExpression is used as a failure message, it must evaluate to a string.
If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails.
If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced ¶
as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string
that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and
the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged.
messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'.
Example:
"object.x must be less than max ("+string(params.max)+")"
func (*ValidationDie) Reason ¶ added in v0.13.0
func (d *ValidationDie) Reason(v *apismetav1.StatusReason) *ValidationDie
Reason represents a machine-readable description of why this validation failed.
If this is the first validation in the list to fail, this reason, as well as the ¶
corresponding HTTP response code, are used in the
HTTP response to the client.
The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge".
If not set, StatusReasonInvalid is used in the response to the client.
type VariableDie ¶ added in v0.13.0
type VariableDie struct {
// contains filtered or unexported fields
}
func (*VariableDie) DeepCopy ¶ added in v0.13.0
func (d *VariableDie) DeepCopy() *VariableDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*VariableDie) DieDiff ¶ added in v0.13.0
func (d *VariableDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*VariableDie) DieFeed ¶ added in v0.13.0
func (d *VariableDie) DieFeed(r admissionregistrationv1.Variable) *VariableDie
DieFeed returns a new die with the provided resource.
func (*VariableDie) DieFeedJSON ¶ added in v0.13.0
func (d *VariableDie) DieFeedJSON(j []byte) *VariableDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*VariableDie) DieFeedPtr ¶ added in v0.13.0
func (d *VariableDie) DieFeedPtr(r *admissionregistrationv1.Variable) *VariableDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*VariableDie) DieFeedRawExtension ¶ added in v0.13.0
func (d *VariableDie) DieFeedRawExtension(raw runtime.RawExtension) *VariableDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VariableDie) DieFeedYAML ¶ added in v0.13.0
func (d *VariableDie) DieFeedYAML(y []byte) *VariableDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*VariableDie) DieFeedYAMLFile ¶ added in v0.13.0
func (d *VariableDie) DieFeedYAMLFile(name string) *VariableDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*VariableDie) DieImmutable ¶ added in v0.13.0
func (d *VariableDie) DieImmutable(immutable bool) *VariableDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*VariableDie) DiePatch ¶ added in v0.13.0
func (d *VariableDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*VariableDie) DieRelease ¶ added in v0.13.0
func (d *VariableDie) DieRelease() admissionregistrationv1.Variable
DieRelease returns the resource managed by the die.
func (*VariableDie) DieReleaseJSON ¶ added in v0.13.0
func (d *VariableDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*VariableDie) DieReleasePtr ¶ added in v0.13.0
func (d *VariableDie) DieReleasePtr() *admissionregistrationv1.Variable
DieReleasePtr returns a pointer to the resource managed by the die.
func (*VariableDie) DieReleaseRawExtension ¶ added in v0.13.0
func (d *VariableDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*VariableDie) DieReleaseYAML ¶ added in v0.13.0
func (d *VariableDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*VariableDie) DieSeal ¶ added in v0.13.0
func (d *VariableDie) DieSeal() *VariableDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*VariableDie) DieSealFeed ¶ added in v0.13.0
func (d *VariableDie) DieSealFeed(r admissionregistrationv1.Variable) *VariableDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*VariableDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *VariableDie) DieSealFeedPtr(r *admissionregistrationv1.Variable) *VariableDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*VariableDie) DieSealRelease ¶ added in v0.13.0
func (d *VariableDie) DieSealRelease() admissionregistrationv1.Variable
DieSealRelease returns the sealed resource managed by the die.
func (*VariableDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *VariableDie) DieSealReleasePtr() *admissionregistrationv1.Variable
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*VariableDie) DieStamp ¶ added in v0.13.0
func (d *VariableDie) DieStamp(fn func(r *admissionregistrationv1.Variable)) *VariableDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*VariableDie) DieStampAt ¶ added in v0.13.0
func (d *VariableDie) DieStampAt(jp string, fn interface{}) *VariableDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*VariableDie) DieWith ¶ added in v0.13.0
func (d *VariableDie) DieWith(fns ...func(d *VariableDie)) *VariableDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*VariableDie) Expression ¶ added in v0.13.0
func (d *VariableDie) Expression(v string) *VariableDie
Expression is the expression that will be evaluated as the value of the variable.
The CEL expression has access to the same identifiers as the CEL expressions in Validation.
func (*VariableDie) Name ¶ added in v0.13.0
func (d *VariableDie) Name(v string) *VariableDie
Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
The variable can be accessed in other expressions through `variables`
For example, if name is "foo", the variable will be available as `variables.foo`
type WebhookClientConfigDie ¶
type WebhookClientConfigDie struct {
// contains filtered or unexported fields
}
func (*WebhookClientConfigDie) CABundle ¶
func (d *WebhookClientConfigDie) CABundle(v []byte) *WebhookClientConfigDie
`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
If unspecified, system trust roots on the apiserver are used.
func (*WebhookClientConfigDie) DeepCopy ¶
func (d *WebhookClientConfigDie) DeepCopy() *WebhookClientConfigDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*WebhookClientConfigDie) DieDiff ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieDiff(opts ...cmp.Option) string
DieDiff uses cmp.Diff to compare the current value of the die with the sealed value.
func (*WebhookClientConfigDie) DieFeed ¶
func (d *WebhookClientConfigDie) DieFeed(r admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
DieFeed returns a new die with the provided resource.
func (*WebhookClientConfigDie) DieFeedJSON ¶
func (d *WebhookClientConfigDie) DieFeedJSON(j []byte) *WebhookClientConfigDie
DieFeedJSON returns a new die with the provided JSON. Panics on error.
func (*WebhookClientConfigDie) DieFeedPtr ¶
func (d *WebhookClientConfigDie) DieFeedPtr(r *admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*WebhookClientConfigDie) DieFeedRawExtension ¶
func (d *WebhookClientConfigDie) DieFeedRawExtension(raw runtime.RawExtension) *WebhookClientConfigDie
DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookClientConfigDie) DieFeedYAML ¶
func (d *WebhookClientConfigDie) DieFeedYAML(y []byte) *WebhookClientConfigDie
DieFeedYAML returns a new die with the provided YAML. Panics on error.
func (*WebhookClientConfigDie) DieFeedYAMLFile ¶
func (d *WebhookClientConfigDie) DieFeedYAMLFile(name string) *WebhookClientConfigDie
DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.
func (*WebhookClientConfigDie) DieImmutable ¶
func (d *WebhookClientConfigDie) DieImmutable(immutable bool) *WebhookClientConfigDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*WebhookClientConfigDie) DiePatch ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DiePatch(patchType types.PatchType) ([]byte, error)
DiePatch generates a patch between the current value of the die and the sealed value.
func (*WebhookClientConfigDie) DieRelease ¶
func (d *WebhookClientConfigDie) DieRelease() admissionregistrationv1.WebhookClientConfig
DieRelease returns the resource managed by the die.
func (*WebhookClientConfigDie) DieReleaseJSON ¶
func (d *WebhookClientConfigDie) DieReleaseJSON() []byte
DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.
func (*WebhookClientConfigDie) DieReleasePtr ¶
func (d *WebhookClientConfigDie) DieReleasePtr() *admissionregistrationv1.WebhookClientConfig
DieReleasePtr returns a pointer to the resource managed by the die.
func (*WebhookClientConfigDie) DieReleaseRawExtension ¶
func (d *WebhookClientConfigDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.
func (*WebhookClientConfigDie) DieReleaseYAML ¶
func (d *WebhookClientConfigDie) DieReleaseYAML() []byte
DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.
func (*WebhookClientConfigDie) DieSeal ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieSeal() *WebhookClientConfigDie
DieSeal returns a new die for the current die's state that is sealed for comparison in future diff and patch operations.
func (*WebhookClientConfigDie) DieSealFeed ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieSealFeed(r admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
DieSealFeed returns a new die for the current die's state that uses a specific resource for comparison in future diff and patch operations.
func (*WebhookClientConfigDie) DieSealFeedPtr ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieSealFeedPtr(r *admissionregistrationv1.WebhookClientConfig) *WebhookClientConfigDie
DieSealFeedPtr returns a new die for the current die's state that uses a specific resource pointer for comparison in future diff and patch operations. If the resource is nil, the empty value is used instead.
func (*WebhookClientConfigDie) DieSealRelease ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieSealRelease() admissionregistrationv1.WebhookClientConfig
DieSealRelease returns the sealed resource managed by the die.
func (*WebhookClientConfigDie) DieSealReleasePtr ¶ added in v0.13.0
func (d *WebhookClientConfigDie) DieSealReleasePtr() *admissionregistrationv1.WebhookClientConfig
DieSealReleasePtr returns the sealed resource pointer managed by the die.
func (*WebhookClientConfigDie) DieStamp ¶
func (d *WebhookClientConfigDie) DieStamp(fn func(r *admissionregistrationv1.WebhookClientConfig)) *WebhookClientConfigDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*WebhookClientConfigDie) DieStampAt ¶
func (d *WebhookClientConfigDie) DieStampAt(jp string, fn interface{}) *WebhookClientConfigDie
Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.
Future iterations will improve type coercion from the resource to the callback argument.
func (*WebhookClientConfigDie) DieWith ¶
func (d *WebhookClientConfigDie) DieWith(fns ...func(d *WebhookClientConfigDie)) *WebhookClientConfigDie
DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.
func (*WebhookClientConfigDie) Service ¶
func (d *WebhookClientConfigDie) Service(v *admissionregistrationv1.ServiceReference) *WebhookClientConfigDie
`service` is a reference to the service for this webhook. Either
`service` or `url` must be specified.
If the webhook is running within the cluster, then you should use `service`.
func (*WebhookClientConfigDie) ServiceDie ¶
func (d *WebhookClientConfigDie) ServiceDie(fn func(d *ServiceReferenceDie)) *WebhookClientConfigDie
ServiceDie mutates Service as a die.
`service` is a reference to the service for this webhook. Either
`service` or `url` must be specified.
If the webhook is running within the cluster, then you should use `service`.
func (*WebhookClientConfigDie) URL ¶
func (d *WebhookClientConfigDie) URL(v *string) *WebhookClientConfigDie
`url` gives the location of the webhook, in standard URL form
(`scheme://host:port/path`). Exactly one of `url` or `service`
must be specified.
The `host` should not refer to a service running in the cluster; use
the `service` field instead. The host might be resolved via external
DNS in some apiservers (e.g., `kube-apiserver` cannot resolve ¶
in-cluster DNS as that would be a layering violation). `host` may
also be an IP address.
Please note that using `localhost` or `127.0.0.1` as a `host` is ¶
risky unless you take great care to run this webhook on all hosts
which run an apiserver which might need to make calls to this
webhook. Such installs are likely to be non-portable, i.e., not easy
to turn up in a new cluster.
The scheme must be "https"; the URL must begin with "https://".
A path is optional, and if present may be any string permissible in ¶
a URL. You may use the path to pass an arbitrary string to the
webhook, for example, a cluster identifier.
Attempting to use a user or basic auth e.g. "user:password@" is not
allowed. Fragments ("#...") and query parameters ("?...") are not
allowed, either.