mirror of https://github.com/k3s-io/k3s
codegen: Add mutating admission webhook reinvocation
parent
55ecc45455
commit
939a04f0ed
|
@ -30,6 +30,10 @@
|
||||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
|
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
|
||||||
"description": "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.\n\nFor 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\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf 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\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything."
|
"description": "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.\n\nFor 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\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf 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\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything."
|
||||||
},
|
},
|
||||||
|
"reinvocationPolicy": {
|
||||||
|
"description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: 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.\n\nDefaults to \"Never\".",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"description": "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.",
|
"description": "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.",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
|
@ -152,6 +152,7 @@ func autoConvert_v1beta1_MutatingWebhook_To_admissionregistration_MutatingWebhoo
|
||||||
out.SideEffects = (*admissionregistration.SideEffectClass)(unsafe.Pointer(in.SideEffects))
|
out.SideEffects = (*admissionregistration.SideEffectClass)(unsafe.Pointer(in.SideEffects))
|
||||||
out.TimeoutSeconds = (*int32)(unsafe.Pointer(in.TimeoutSeconds))
|
out.TimeoutSeconds = (*int32)(unsafe.Pointer(in.TimeoutSeconds))
|
||||||
out.AdmissionReviewVersions = *(*[]string)(unsafe.Pointer(&in.AdmissionReviewVersions))
|
out.AdmissionReviewVersions = *(*[]string)(unsafe.Pointer(&in.AdmissionReviewVersions))
|
||||||
|
out.ReinvocationPolicy = (*admissionregistration.ReinvocationPolicyType)(unsafe.Pointer(in.ReinvocationPolicy))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,6 +173,7 @@ func autoConvert_admissionregistration_MutatingWebhook_To_v1beta1_MutatingWebhoo
|
||||||
out.SideEffects = (*v1beta1.SideEffectClass)(unsafe.Pointer(in.SideEffects))
|
out.SideEffects = (*v1beta1.SideEffectClass)(unsafe.Pointer(in.SideEffects))
|
||||||
out.TimeoutSeconds = (*int32)(unsafe.Pointer(in.TimeoutSeconds))
|
out.TimeoutSeconds = (*int32)(unsafe.Pointer(in.TimeoutSeconds))
|
||||||
out.AdmissionReviewVersions = *(*[]string)(unsafe.Pointer(&in.AdmissionReviewVersions))
|
out.AdmissionReviewVersions = *(*[]string)(unsafe.Pointer(&in.AdmissionReviewVersions))
|
||||||
|
out.ReinvocationPolicy = (*v1beta1.ReinvocationPolicyType)(unsafe.Pointer(in.ReinvocationPolicy))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,11 @@ func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) {
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
copy(*out, *in)
|
copy(*out, *in)
|
||||||
}
|
}
|
||||||
|
if in.ReinvocationPolicy != nil {
|
||||||
|
in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy
|
||||||
|
*out = new(ReinvocationPolicyType)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,12 @@ func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) {
|
||||||
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
|
||||||
i += copy(dAtA[i:], *m.MatchPolicy)
|
i += copy(dAtA[i:], *m.MatchPolicy)
|
||||||
}
|
}
|
||||||
|
if m.ReinvocationPolicy != nil {
|
||||||
|
dAtA[i] = 0x52
|
||||||
|
i++
|
||||||
|
i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy)))
|
||||||
|
i += copy(dAtA[i:], *m.ReinvocationPolicy)
|
||||||
|
}
|
||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -685,6 +691,10 @@ func (m *MutatingWebhook) Size() (n int) {
|
||||||
l = len(*m.MatchPolicy)
|
l = len(*m.MatchPolicy)
|
||||||
n += 1 + l + sovGenerated(uint64(l))
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
}
|
}
|
||||||
|
if m.ReinvocationPolicy != nil {
|
||||||
|
l = len(*m.ReinvocationPolicy)
|
||||||
|
n += 1 + l + sovGenerated(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -889,6 +899,7 @@ func (this *MutatingWebhook) String() string {
|
||||||
`TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
|
`TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
|
||||||
`AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
|
`AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
|
||||||
`MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
|
`MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
|
||||||
|
`ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
|
@ -1303,6 +1314,36 @@ func (m *MutatingWebhook) Unmarshal(dAtA []byte) error {
|
||||||
s := MatchPolicyType(dAtA[iNdEx:postIndex])
|
s := MatchPolicyType(dAtA[iNdEx:postIndex])
|
||||||
m.MatchPolicy = &s
|
m.MatchPolicy = &s
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
|
case 10:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType)
|
||||||
|
}
|
||||||
|
var stringLen uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowGenerated
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
stringLen |= (uint64(b) & 0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
|
return ErrInvalidLengthGenerated
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + intStringLen
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
s := ReinvocationPolicyType(dAtA[iNdEx:postIndex])
|
||||||
|
m.ReinvocationPolicy = &s
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipGenerated(dAtA[iNdEx:])
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
||||||
|
@ -2768,71 +2809,73 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var fileDescriptorGenerated = []byte{
|
var fileDescriptorGenerated = []byte{
|
||||||
// 1056 bytes of a gzipped FileDescriptorProto
|
// 1088 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4d, 0x6f, 0xe3, 0x44,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4f, 0x6f, 0x1b, 0x45,
|
||||||
0x18, 0xae, 0x9b, 0x84, 0x26, 0x93, 0x76, 0xbb, 0x1d, 0x3e, 0x36, 0x94, 0x55, 0x1c, 0xe5, 0x80,
|
0x14, 0xcf, 0xc6, 0x76, 0x63, 0x8f, 0x93, 0xb6, 0x19, 0xa0, 0x35, 0xa5, 0xf2, 0x5a, 0x3e, 0x20,
|
||||||
0x22, 0xc1, 0xda, 0xb4, 0x20, 0x04, 0x0b, 0x08, 0xd5, 0x85, 0x85, 0x4a, 0xed, 0x6e, 0x99, 0xee,
|
0x4b, 0xd0, 0xdd, 0x26, 0x20, 0x04, 0x05, 0x84, 0xb2, 0x81, 0x42, 0xa4, 0xa4, 0x0d, 0x93, 0xfe,
|
||||||
0x87, 0xc4, 0x87, 0xc4, 0xc4, 0x99, 0x24, 0x43, 0x62, 0x8f, 0xe5, 0x19, 0xa7, 0xf4, 0xc6, 0x4f,
|
0x91, 0xf8, 0x23, 0x75, 0xbc, 0x7e, 0xb6, 0x07, 0xdb, 0x3b, 0xab, 0x9d, 0x59, 0x87, 0xdc, 0xf8,
|
||||||
0xe0, 0x2f, 0x70, 0xe2, 0x57, 0x70, 0xe0, 0xd6, 0xe3, 0x1e, 0xf7, 0x82, 0x45, 0xcd, 0x99, 0x03,
|
0x08, 0x7c, 0x05, 0x4e, 0x7c, 0x0a, 0x0e, 0xdc, 0x72, 0xec, 0x31, 0x17, 0x56, 0x64, 0x39, 0x73,
|
||||||
0x17, 0x84, 0x7a, 0x42, 0x33, 0x9e, 0xd8, 0xf9, 0x68, 0x97, 0x00, 0xd2, 0x5e, 0x76, 0x6f, 0x7e,
|
0xe0, 0x86, 0x72, 0x42, 0x3b, 0x3b, 0x5e, 0xff, 0x4b, 0x8a, 0x01, 0xa9, 0x17, 0x7a, 0xdb, 0xf7,
|
||||||
0x9f, 0x77, 0xde, 0x8f, 0x67, 0xe6, 0xf1, 0xfb, 0x82, 0xcf, 0x06, 0xef, 0x70, 0x8b, 0x32, 0x7b,
|
0x7b, 0xf3, 0x7e, 0xef, 0xbd, 0x99, 0xdf, 0xbe, 0x87, 0x3e, 0xef, 0xbd, 0x2b, 0x2c, 0xc6, 0xed,
|
||||||
0x10, 0xb5, 0x49, 0xe8, 0x13, 0x41, 0xb8, 0x3d, 0x22, 0x7e, 0x87, 0x85, 0xb6, 0x76, 0xe0, 0x80,
|
0x5e, 0xd8, 0x84, 0xc0, 0x03, 0x09, 0xc2, 0x1e, 0x82, 0xd7, 0xe2, 0x81, 0xad, 0x1d, 0xd4, 0x67,
|
||||||
0xda, 0xb8, 0xe3, 0x51, 0xce, 0x29, 0xf3, 0x43, 0xd2, 0xa3, 0x5c, 0x84, 0x58, 0x50, 0xe6, 0xdb,
|
0x36, 0x6d, 0x0d, 0x98, 0x10, 0x8c, 0x7b, 0x01, 0x74, 0x98, 0x90, 0x01, 0x95, 0x8c, 0x7b, 0xf6,
|
||||||
0xa3, 0xad, 0x36, 0x11, 0x78, 0xcb, 0xee, 0x11, 0x9f, 0x84, 0x58, 0x90, 0x8e, 0x15, 0x84, 0x4c,
|
0x70, 0xa3, 0x09, 0x92, 0x6e, 0xd8, 0x1d, 0xf0, 0x20, 0xa0, 0x12, 0x5a, 0x96, 0x1f, 0x70, 0xc9,
|
||||||
0x30, 0xd8, 0x4a, 0x23, 0x2d, 0x1c, 0x50, 0xeb, 0xc2, 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0xd6, 0x2e, 0x6d, 0x42, 0x7f, 0x14,
|
||||||
0x71, 0xa8, 0xf3, 0x62, 0x12, 0x9b, 0x1b, 0xb7, 0x67, 0x33, 0xa2, 0xf9, 0x22, 0xf0, 0x23, 0x50,
|
0xea, 0xbc, 0x12, 0x47, 0xe6, 0xfa, 0xbd, 0x59, 0x46, 0x32, 0x9f, 0x04, 0x7f, 0x8c, 0xca, 0x82,
|
||||||
0xe5, 0xb4, 0x43, 0x3e, 0xee, 0x76, 0x89, 0x2b, 0x78, 0xed, 0x39, 0xc5, 0xa2, 0x99, 0xc4, 0x66,
|
0xb5, 0xe0, 0x93, 0x76, 0x1b, 0x5c, 0x29, 0x2a, 0x97, 0x54, 0x17, 0xf5, 0x38, 0x32, 0xcb, 0x07,
|
||||||
0xf5, 0x28, 0x87, 0xcf, 0x63, 0x73, 0x3d, 0x37, 0x77, 0x87, 0x98, 0x73, 0x34, 0x19, 0x06, 0x6f,
|
0x63, 0xf8, 0x2c, 0x32, 0xaf, 0x8c, 0xcd, 0xed, 0x3e, 0x15, 0x82, 0x4c, 0x86, 0xe1, 0x3b, 0xe8,
|
||||||
0x82, 0x2b, 0x52, 0x3e, 0x2c, 0x12, 0x47, 0xc4, 0x65, 0x7e, 0x87, 0xd7, 0x56, 0x1a, 0x46, 0xab,
|
0x72, 0x22, 0x1f, 0x1e, 0xca, 0x03, 0x70, 0xb9, 0xd7, 0x12, 0x95, 0x95, 0x9a, 0xd1, 0x28, 0x38,
|
||||||
0xe4, 0xc0, 0x24, 0x36, 0xaf, 0xdc, 0x9d, 0xf2, 0xa0, 0x99, 0x93, 0xf0, 0x1e, 0xb8, 0x96, 0xbd,
|
0x38, 0x8e, 0xcc, 0xcb, 0x0f, 0xa6, 0x3c, 0x64, 0xe6, 0x24, 0x7e, 0x88, 0xae, 0x67, 0x6f, 0x42,
|
||||||
0x09, 0x22, 0x23, 0x4a, 0x8e, 0xef, 0x93, 0x50, 0x1a, 0xbc, 0x56, 0x6e, 0x14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x6b, 0x49,
|
||||||
0x3c, 0x36, 0xd7, 0x32, 0x4b, 0xa5, 0x9c, 0x08, 0x81, 0x87, 0xa0, 0x28, 0x67, 0x9b, 0x1e, 0xd3,
|
0xd9, 0x07, 0x09, 0x70, 0x16, 0x99, 0x25, 0xf5, 0xa1, 0x04, 0x9a, 0x1e, 0xaa, 0xff, 0x68, 0x20,
|
||||||
0xd6, 0xbf, 0x1b, 0x9a, 0xf9, 0x02, 0x90, 0x16, 0x52, 0x99, 0x9a, 0x3f, 0x18, 0xe0, 0xea, 0x11,
|
0x3c, 0x3f, 0x09, 0xf1, 0x47, 0x08, 0xf1, 0xcc, 0xd2, 0x2d, 0x99, 0x4a, 0x55, 0x19, 0x7a, 0x16,
|
||||||
0x09, 0x47, 0xd4, 0x25, 0x88, 0x74, 0x49, 0x48, 0x7c, 0x97, 0x40, 0x1b, 0x54, 0xb2, 0x31, 0xa4,
|
0x99, 0x6b, 0x99, 0xa5, 0x28, 0x27, 0x42, 0xf0, 0x3e, 0xca, 0x27, 0xd3, 0x53, 0x2f, 0x02, 0xeb,
|
||||||
0x97, 0xc7, 0x86, 0x8e, 0xad, 0x64, 0x23, 0x0b, 0xe5, 0x67, 0xb2, 0x45, 0xb3, 0x7c, 0xe9, 0xa2,
|
0x9f, 0x8d, 0xe5, 0xf1, 0x8a, 0x49, 0x2c, 0xa2, 0x98, 0xea, 0x3f, 0x18, 0xe8, 0xea, 0x01, 0x04,
|
||||||
0xb9, 0x0e, 0x8a, 0x01, 0x16, 0xfd, 0x5a, 0x41, 0x9d, 0x28, 0x4b, 0xef, 0x21, 0x16, 0x7d, 0xa4,
|
0x43, 0xe6, 0x02, 0x81, 0x36, 0x04, 0xe0, 0xb9, 0x80, 0x6d, 0x54, 0xca, 0x06, 0x9d, 0x5e, 0x4f,
|
||||||
0x50, 0xe5, 0x65, 0xa1, 0x50, 0x97, 0x5b, 0xd2, 0x5e, 0x16, 0x0a, 0xa4, 0xd0, 0xe6, 0x5f, 0x25,
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, 0x00,
|
0xd3, 0xd3, 0xea, 0xd2, 0xc9, 0x69, 0x75, 0xe9, 0xbb, 0xb8, 0x6a, 0x1c, 0xc7, 0x55, 0xe3, 0x69,
|
||||||
|
0x5c, 0x35, 0x4e, 0xe2, 0xaa, 0xf1, 0x6b, 0x5c, 0x35, 0xbe, 0xff, 0xad, 0xba, 0xf4, 0xc5, 0x8a,
|
||||||
|
0x2e, 0xed, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x5c, 0x48, 0x5c, 0x4a, 0x0e, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,24 @@ message MutatingWebhook {
|
||||||
// Default to `['v1beta1']`.
|
// Default to `['v1beta1']`.
|
||||||
// +optional
|
// +optional
|
||||||
repeated string admissionReviewVersions = 8;
|
repeated string admissionReviewVersions = 8;
|
||||||
|
|
||||||
|
// 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".
|
||||||
|
// +optional
|
||||||
|
optional string reinvocationPolicy = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
|
// MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
|
||||||
|
|
|
@ -38,6 +38,7 @@ var map_MutatingWebhook = map[string]string{
|
||||||
"sideEffects": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change 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. Defaults to Unknown.",
|
"sideEffects": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change 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. Defaults to Unknown.",
|
||||||
"timeoutSeconds": "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 30 seconds.",
|
"timeoutSeconds": "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 30 seconds.",
|
||||||
"admissionReviewVersions": "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. Default to `['v1beta1']`.",
|
"admissionReviewVersions": "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. Default to `['v1beta1']`.",
|
||||||
|
"reinvocationPolicy": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: 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.\n\nDefaults to \"Never\".",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (MutatingWebhook) SwaggerDoc() map[string]string {
|
func (MutatingWebhook) SwaggerDoc() map[string]string {
|
||||||
|
|
|
@ -66,6 +66,11 @@ func (in *MutatingWebhook) DeepCopyInto(out *MutatingWebhook) {
|
||||||
*out = make([]string, len(*in))
|
*out = make([]string, len(*in))
|
||||||
copy(*out, *in)
|
copy(*out, *in)
|
||||||
}
|
}
|
||||||
|
if in.ReinvocationPolicy != nil {
|
||||||
|
in, out := &in.ReinvocationPolicy, &out.ReinvocationPolicy
|
||||||
|
*out = new(ReinvocationPolicyType)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue