From ce5cd476dfa08456719e1e09a534ab2f9090ab4d Mon Sep 17 00:00:00 2001 From: Jim Bugwadia Date: Mon, 9 Sep 2024 14:04:08 -0700 Subject: [PATCH] support HTTP headers in service API calls (#11041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support HTTP headers in service API calls Signed-off-by: Jim Bugwadia * generate CRDs Signed-off-by: Jim Bugwadia * fix chunked tests Signed-off-by: Jim Bugwadia * fix POST call Signed-off-by: Jim Bugwadia --------- Signed-off-by: Jim Bugwadia Co-authored-by: Charles-Edouard Brétéché --- api/kyverno/v1/common_types.go | 14 +- api/kyverno/v1/zz_generated.deepcopy.go | 23 +- .../kyverno.io_cleanuppolicies.yaml | 40 +- .../kyverno.io_clustercleanuppolicies.yaml | 40 +- .../kyverno.io_clusterpolicies.yaml | 448 +++++++- .../kyverno.io_globalcontextentries.yaml | 16 + .../kyverno.io/kyverno.io_policies.yaml | 448 +++++++- .../data/crds/kyverno.io_clusterpolicies.yaml | 448 +++++++- .../data/crds/kyverno.io_policies.yaml | 448 +++++++- .../kyverno/kyverno.io_cleanuppolicies.yaml | 40 +- .../kyverno.io_clustercleanuppolicies.yaml | 40 +- .../kyverno/kyverno.io_clusterpolicies.yaml | 448 +++++++- .../kyverno.io_globalcontextentries.yaml | 16 + config/crds/kyverno/kyverno.io_policies.yaml | 448 +++++++- config/install-latest-testing.yaml | 992 ++++++++++++++++-- docs/user/crd/index.html | 58 +- docs/user/crd/kyverno.v1.html | 128 ++- .../kyverno/v1/httpheader.go | 48 + .../kyverno/v1/servicecall.go | 18 +- pkg/client/applyconfigurations/utils.go | 2 + pkg/engine/apicall/apiCall_test.go | 88 +- pkg/engine/apicall/executor.go | 55 +- 22 files changed, 3927 insertions(+), 379 deletions(-) create mode 100644 pkg/client/applyconfigurations/kyverno/v1/httpheader.go diff --git a/api/kyverno/v1/common_types.go b/api/kyverno/v1/common_types.go index eb56dff894..133688dd19 100644 --- a/api/kyverno/v1/common_types.go +++ b/api/kyverno/v1/common_types.go @@ -217,8 +217,8 @@ type APICall struct { type ContextAPICall struct { APICall `json:",inline"` - // Default is an optional arbitrary JSON object that the context may take if the apiCall - // returns error + // Default is an optional arbitrary JSON object that the context + // value is set to, if the apiCall returns error. // +optional Default *apiextv1.JSON `json:"default,omitempty"` @@ -250,6 +250,9 @@ type ServiceCall struct { // `https://{service}.{namespace}:{port}/{path}`. URL string `json:"url"` + // Headers is a list of optional HTTP headers to be included in the request. + Headers []HTTPHeader `json:"headers,omitempty"` + // CABundle is a PEM encoded CA bundle which will be used to validate // the server certificate. // +kubebuilder:validation:Optional @@ -269,6 +272,13 @@ type RequestData struct { Value *apiextv1.JSON `json:"value"` } +type HTTPHeader struct { + // Key is the header key + Key string `json:"key"` + // Value is the header value + Value string `json:"value"` +} + // Condition defines variable-based conditional criteria for rule execution. type Condition struct { // Key is the context entry (using JMESPath) for conditional rule evaluation. diff --git a/api/kyverno/v1/zz_generated.deepcopy.go b/api/kyverno/v1/zz_generated.deepcopy.go index 978e553a21..e317397785 100755 --- a/api/kyverno/v1/zz_generated.deepcopy.go +++ b/api/kyverno/v1/zz_generated.deepcopy.go @@ -44,7 +44,7 @@ func (in *APICall) DeepCopyInto(out *APICall) { if in.Service != nil { in, out := &in.Service, &out.Service *out = new(ServiceCall) - **out = **in + (*in).DeepCopyInto(*out) } return } @@ -733,6 +733,22 @@ func (in *GlobalContextEntryReference) DeepCopy() *GlobalContextEntryReference { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHeader. +func (in *HTTPHeader) DeepCopy() *HTTPHeader { + if in == nil { + return nil + } + out := new(HTTPHeader) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in IgnoreFieldList) DeepCopyInto(out *IgnoreFieldList) { { @@ -1472,6 +1488,11 @@ func (in *SecretReference) DeepCopy() *SecretReference { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceCall) DeepCopyInto(out *ServiceCall) { *out = *in + if in.Headers != nil { + in, out := &in.Headers, &out.Headers + *out = make([]HTTPHeader, len(*in)) + copy(*out, *in) + } return } diff --git a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_cleanuppolicies.yaml b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_cleanuppolicies.yaml index cb1cea5d66..a82f846fdc 100644 --- a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_cleanuppolicies.yaml +++ b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_cleanuppolicies.yaml @@ -194,8 +194,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -224,6 +224,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1463,8 +1479,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1493,6 +1509,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clustercleanuppolicies.yaml b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clustercleanuppolicies.yaml index 14cf969c5b..5d12728830 100644 --- a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clustercleanuppolicies.yaml +++ b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clustercleanuppolicies.yaml @@ -194,8 +194,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -224,6 +224,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1463,8 +1479,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1493,6 +1509,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clusterpolicies.yaml b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clusterpolicies.yaml index 7779ba1653..5154339fd2 100644 --- a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clusterpolicies.yaml +++ b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_clusterpolicies.yaml @@ -230,8 +230,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -260,6 +260,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1248,8 +1264,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1278,6 +1294,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2314,8 +2349,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2344,6 +2379,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2678,8 +2732,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2708,6 +2762,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3362,8 +3435,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3392,6 +3465,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5164,8 +5256,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5194,6 +5286,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6192,8 +6300,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6222,6 +6330,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7270,8 +7397,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7300,6 +7427,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7643,8 +7789,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7673,6 +7819,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8340,8 +8505,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8370,6 +8535,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10216,8 +10400,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10246,6 +10430,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11028,8 +11228,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11058,6 +11258,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11888,8 +12107,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11918,6 +12137,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12252,8 +12490,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12282,6 +12520,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13101,8 +13358,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13131,6 +13388,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14872,8 +15148,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14902,6 +15178,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15900,8 +16192,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15930,6 +16222,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16978,8 +17289,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17008,6 +17319,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17351,8 +17681,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17381,6 +17711,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18048,8 +18397,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18078,6 +18427,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_globalcontextentries.yaml b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_globalcontextentries.yaml index 82bea71d98..274b2537be 100644 --- a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_globalcontextentries.yaml +++ b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_globalcontextentries.yaml @@ -127,6 +127,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers to + be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_policies.yaml b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_policies.yaml index e0b8fab9f7..d888d7d46e 100644 --- a/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_policies.yaml +++ b/charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_policies.yaml @@ -231,8 +231,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -261,6 +261,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1249,8 +1265,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1279,6 +1295,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2315,8 +2350,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2345,6 +2380,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2679,8 +2733,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2709,6 +2763,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3363,8 +3436,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3393,6 +3466,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5166,8 +5258,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5196,6 +5288,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6194,8 +6302,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6224,6 +6332,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7272,8 +7399,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7302,6 +7429,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7645,8 +7791,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7675,6 +7821,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8342,8 +8507,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8372,6 +8537,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10219,8 +10403,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10249,6 +10433,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11031,8 +11231,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11061,6 +11261,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11891,8 +12110,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11921,6 +12140,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12255,8 +12493,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12285,6 +12523,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13104,8 +13361,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13134,6 +13391,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14875,8 +15151,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14905,6 +15181,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15903,8 +16195,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15933,6 +16225,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16981,8 +17292,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17011,6 +17322,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17354,8 +17684,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17384,6 +17714,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18051,8 +18400,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18081,6 +18430,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_clusterpolicies.yaml b/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_clusterpolicies.yaml index 23f954f88b..13aa222910 100644 --- a/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_clusterpolicies.yaml +++ b/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_clusterpolicies.yaml @@ -224,8 +224,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -254,6 +254,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1242,8 +1258,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1272,6 +1288,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2308,8 +2343,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2338,6 +2373,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2672,8 +2726,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2702,6 +2756,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3356,8 +3429,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3386,6 +3459,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5158,8 +5250,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5188,6 +5280,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6186,8 +6294,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6216,6 +6324,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7264,8 +7391,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7294,6 +7421,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7637,8 +7783,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7667,6 +7813,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8334,8 +8499,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8364,6 +8529,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10210,8 +10394,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10240,6 +10424,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11022,8 +11222,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11052,6 +11252,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11882,8 +12101,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11912,6 +12131,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12246,8 +12484,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12276,6 +12514,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13095,8 +13352,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13125,6 +13382,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14866,8 +15142,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14896,6 +15172,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15894,8 +16186,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15924,6 +16216,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16972,8 +17283,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17002,6 +17313,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17345,8 +17675,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17375,6 +17705,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18042,8 +18391,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18072,6 +18421,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_policies.yaml b/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_policies.yaml index bbd66276cd..f9d1f7b461 100644 --- a/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_policies.yaml +++ b/cmd/cli/kubectl-kyverno/data/crds/kyverno.io_policies.yaml @@ -225,8 +225,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -255,6 +255,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1243,8 +1259,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1273,6 +1289,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2309,8 +2344,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2339,6 +2374,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2673,8 +2727,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2703,6 +2757,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3357,8 +3430,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3387,6 +3460,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5160,8 +5252,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5190,6 +5282,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6188,8 +6296,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6218,6 +6326,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7266,8 +7393,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7296,6 +7423,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7639,8 +7785,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7669,6 +7815,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8336,8 +8501,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8366,6 +8531,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10213,8 +10397,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10243,6 +10427,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11025,8 +11225,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11055,6 +11255,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11885,8 +12104,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11915,6 +12134,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12249,8 +12487,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12279,6 +12517,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13098,8 +13355,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13128,6 +13385,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14869,8 +15145,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14899,6 +15175,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15897,8 +16189,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15927,6 +16219,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16975,8 +17286,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17005,6 +17316,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17348,8 +17678,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17378,6 +17708,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18045,8 +18394,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18075,6 +18424,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/crds/kyverno/kyverno.io_cleanuppolicies.yaml b/config/crds/kyverno/kyverno.io_cleanuppolicies.yaml index 994ccf98af..1a15acc71f 100644 --- a/config/crds/kyverno/kyverno.io_cleanuppolicies.yaml +++ b/config/crds/kyverno/kyverno.io_cleanuppolicies.yaml @@ -188,8 +188,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -218,6 +218,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1457,8 +1473,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1487,6 +1503,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/crds/kyverno/kyverno.io_clustercleanuppolicies.yaml b/config/crds/kyverno/kyverno.io_clustercleanuppolicies.yaml index 8705b61d46..3692662963 100644 --- a/config/crds/kyverno/kyverno.io_clustercleanuppolicies.yaml +++ b/config/crds/kyverno/kyverno.io_clustercleanuppolicies.yaml @@ -188,8 +188,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -218,6 +218,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1457,8 +1473,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1487,6 +1503,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/crds/kyverno/kyverno.io_clusterpolicies.yaml b/config/crds/kyverno/kyverno.io_clusterpolicies.yaml index 23f954f88b..13aa222910 100644 --- a/config/crds/kyverno/kyverno.io_clusterpolicies.yaml +++ b/config/crds/kyverno/kyverno.io_clusterpolicies.yaml @@ -224,8 +224,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -254,6 +254,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1242,8 +1258,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1272,6 +1288,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2308,8 +2343,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2338,6 +2373,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2672,8 +2726,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2702,6 +2756,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3356,8 +3429,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3386,6 +3459,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5158,8 +5250,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5188,6 +5280,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6186,8 +6294,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6216,6 +6324,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7264,8 +7391,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7294,6 +7421,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7637,8 +7783,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7667,6 +7813,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8334,8 +8499,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8364,6 +8529,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10210,8 +10394,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10240,6 +10424,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11022,8 +11222,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11052,6 +11252,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11882,8 +12101,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11912,6 +12131,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12246,8 +12484,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12276,6 +12514,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13095,8 +13352,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13125,6 +13382,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14866,8 +15142,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14896,6 +15172,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15894,8 +16186,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15924,6 +16216,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16972,8 +17283,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17002,6 +17313,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17345,8 +17675,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17375,6 +17705,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18042,8 +18391,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18072,6 +18421,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/crds/kyverno/kyverno.io_globalcontextentries.yaml b/config/crds/kyverno/kyverno.io_globalcontextentries.yaml index e5101b9c18..7b0329dccf 100644 --- a/config/crds/kyverno/kyverno.io_globalcontextentries.yaml +++ b/config/crds/kyverno/kyverno.io_globalcontextentries.yaml @@ -121,6 +121,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers to + be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/crds/kyverno/kyverno.io_policies.yaml b/config/crds/kyverno/kyverno.io_policies.yaml index bbd66276cd..f9d1f7b461 100644 --- a/config/crds/kyverno/kyverno.io_policies.yaml +++ b/config/crds/kyverno/kyverno.io_policies.yaml @@ -225,8 +225,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -255,6 +255,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1243,8 +1259,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1273,6 +1289,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2309,8 +2344,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2339,6 +2374,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2673,8 +2727,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2703,6 +2757,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -3357,8 +3430,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -3387,6 +3460,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5160,8 +5252,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5190,6 +5282,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6188,8 +6296,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6218,6 +6326,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7266,8 +7393,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7296,6 +7423,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7639,8 +7785,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7669,6 +7815,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8336,8 +8501,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8366,6 +8531,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10213,8 +10397,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10243,6 +10427,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11025,8 +11225,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11055,6 +11255,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11885,8 +12104,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11915,6 +12134,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12249,8 +12487,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12279,6 +12517,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13098,8 +13355,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13128,6 +13385,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -14869,8 +15145,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -14899,6 +15175,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15897,8 +16189,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15927,6 +16219,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16975,8 +17286,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17005,6 +17316,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17348,8 +17678,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17378,6 +17708,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18045,8 +18394,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18075,6 +18424,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/config/install-latest-testing.yaml b/config/install-latest-testing.yaml index 84b3df249e..be9d67004b 100644 --- a/config/install-latest-testing.yaml +++ b/config/install-latest-testing.yaml @@ -387,8 +387,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -417,6 +417,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -1656,8 +1672,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -1686,6 +1702,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -2951,8 +2983,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -2981,6 +3013,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -4220,8 +4268,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -4250,6 +4298,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers + to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -5551,8 +5615,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -5581,6 +5645,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -6569,8 +6649,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -6599,6 +6679,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7635,8 +7734,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -7665,6 +7764,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -7999,8 +8117,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8029,6 +8147,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -8683,8 +8820,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -8713,6 +8850,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -10485,8 +10641,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -10515,6 +10671,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -11513,8 +11685,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -11543,6 +11715,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12591,8 +12782,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12621,6 +12812,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -12964,8 +13174,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -12994,6 +13204,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -13661,8 +13890,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -13691,6 +13920,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -15537,8 +15785,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -15567,6 +15815,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -16349,8 +16613,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -16379,6 +16643,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17209,8 +17492,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17239,6 +17522,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -17573,8 +17875,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -17603,6 +17905,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -18422,8 +18743,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -18452,6 +18773,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -20193,8 +20533,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -20223,6 +20563,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -21221,8 +21577,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -21251,6 +21607,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -22299,8 +22674,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -22329,6 +22704,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -22672,8 +23066,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -22702,6 +23096,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -23369,8 +23782,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -23399,6 +23812,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -25175,6 +25607,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP headers to + be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -25528,8 +25976,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -25558,6 +26006,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -26546,8 +27010,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -26576,6 +27040,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -27612,8 +28095,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -27642,6 +28125,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -27976,8 +28478,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -28006,6 +28508,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -28660,8 +29181,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -28690,6 +29211,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -30463,8 +31003,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -30493,6 +31033,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -31491,8 +32047,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -31521,6 +32077,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -32569,8 +33144,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -32599,6 +33174,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -32942,8 +33536,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -32972,6 +33566,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -33639,8 +34252,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -33669,6 +34282,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -35516,8 +36148,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -35546,6 +36178,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional HTTP + headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -36328,8 +36976,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -36358,6 +37006,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -37188,8 +37855,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -37218,6 +37885,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -37552,8 +38238,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -37582,6 +38268,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -38401,8 +39106,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -38431,6 +39136,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the + request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the header + value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -40172,8 +40896,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -40202,6 +40926,22 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of optional + HTTP headers to be included in the request. + items: + properties: + key: + description: Key is the header key + type: string + value: + description: Value is the header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -41200,8 +41940,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -41230,6 +41970,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -42278,8 +43037,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -42308,6 +43067,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -42651,8 +43429,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -42681,6 +43459,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is @@ -43348,8 +44145,8 @@ spec: type: array default: description: |- - Default is an optional arbitrary JSON object that the context may take if the apiCall - returns error + Default is an optional arbitrary JSON object that the context + value is set to, if the apiCall returns error. x-kubernetes-preserve-unknown-fields: true jmesPath: description: |- @@ -43378,6 +44175,25 @@ spec: CABundle is a PEM encoded CA bundle which will be used to validate the server certificate. type: string + headers: + description: Headers is a list of + optional HTTP headers to be included + in the request. + items: + properties: + key: + description: Key is the header + key + type: string + value: + description: Value is the + header value + type: string + required: + - key + - value + type: object + type: array url: description: |- URL is the JSON web service URL. A typical form is diff --git a/docs/user/crd/index.html b/docs/user/crd/index.html index eb2a3b7232..fb88135c80 100644 --- a/docs/user/crd/index.html +++ b/docs/user/crd/index.html @@ -1491,8 +1491,8 @@ Kubernetes apiextensions/v1.JSON (Optional) -

Default is an optional arbitrary JSON object that the context may take if the apiCall -returns error

+

Default is an optional arbitrary JSON object that the context +value is set to, if the apiCall returns error.

@@ -2334,6 +2334,47 @@ of deployments across all namespaces.


+

HTTPHeader +

+

+(Appears on: +ServiceCall) +

+

+

+ + + + + + + + + + + + + + + + + +
FieldDescription
+key
+ +string + +
+

Key is the header key

+
+value
+ +string + +
+

Value is the header value

+
+

ImageExtractorConfig

@@ -4204,6 +4245,19 @@ string +headers
+ + +[]HTTPHeader + + + + +

Headers is a list of optional HTTP headers to be included in the request.

+ + + + caBundle
string diff --git a/docs/user/crd/kyverno.v1.html b/docs/user/crd/kyverno.v1.html index 1f014d0713..b3400e3274 100644 --- a/docs/user/crd/kyverno.v1.html +++ b/docs/user/crd/kyverno.v1.html @@ -3064,8 +3064,8 @@ or can be variables declared using JMESPath.

-

Default is an optional arbitrary JSON object that the context may take if the apiCall -returns error

+

Default is an optional arbitrary JSON object that the context +value is set to, if the apiCall returns error.

@@ -4766,6 +4766,99 @@ of deployments across all namespaces.

+ + + + +

HTTPHeader +

+ + +

+ (Appears in: + ServiceCall) +

+ + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldDescription
key + + * + +
+ + + + + string + + +
+ + +

Key is the header key

+ + + + + +
value + + * + +
+ + + + + string + + +
+ + +

Value is the header value

+ + + + + +
@@ -8406,6 +8499,37 @@ validate, generate, mutate and verify images rules

+ + headers + + * + +
+ + + + + + []HTTPHeader + + + + + + + +

Headers is a list of optional HTTP headers to be included in the request.

+ + + + + + + + + + + caBundle diff --git a/pkg/client/applyconfigurations/kyverno/v1/httpheader.go b/pkg/client/applyconfigurations/kyverno/v1/httpheader.go new file mode 100644 index 0000000000..2a50d91fa6 --- /dev/null +++ b/pkg/client/applyconfigurations/kyverno/v1/httpheader.go @@ -0,0 +1,48 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by applyconfiguration-gen. DO NOT EDIT. + +package v1 + +// HTTPHeaderApplyConfiguration represents an declarative configuration of the HTTPHeader type for use +// with apply. +type HTTPHeaderApplyConfiguration struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} + +// HTTPHeaderApplyConfiguration constructs an declarative configuration of the HTTPHeader type for use with +// apply. +func HTTPHeader() *HTTPHeaderApplyConfiguration { + return &HTTPHeaderApplyConfiguration{} +} + +// WithKey sets the Key field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Key field is set to the value of the last call. +func (b *HTTPHeaderApplyConfiguration) WithKey(value string) *HTTPHeaderApplyConfiguration { + b.Key = &value + return b +} + +// WithValue sets the Value field in the declarative configuration to the given value +// and returns the receiver, so that objects can be built by chaining "With" function invocations. +// If called multiple times, the Value field is set to the value of the last call. +func (b *HTTPHeaderApplyConfiguration) WithValue(value string) *HTTPHeaderApplyConfiguration { + b.Value = &value + return b +} diff --git a/pkg/client/applyconfigurations/kyverno/v1/servicecall.go b/pkg/client/applyconfigurations/kyverno/v1/servicecall.go index cedc9969a5..1bac9d4768 100644 --- a/pkg/client/applyconfigurations/kyverno/v1/servicecall.go +++ b/pkg/client/applyconfigurations/kyverno/v1/servicecall.go @@ -21,8 +21,9 @@ package v1 // ServiceCallApplyConfiguration represents an declarative configuration of the ServiceCall type for use // with apply. type ServiceCallApplyConfiguration struct { - URL *string `json:"url,omitempty"` - CABundle *string `json:"caBundle,omitempty"` + URL *string `json:"url,omitempty"` + Headers []HTTPHeaderApplyConfiguration `json:"headers,omitempty"` + CABundle *string `json:"caBundle,omitempty"` } // ServiceCallApplyConfiguration constructs an declarative configuration of the ServiceCall type for use with @@ -39,6 +40,19 @@ func (b *ServiceCallApplyConfiguration) WithURL(value string) *ServiceCallApplyC return b } +// WithHeaders adds the given value to the Headers field in the declarative configuration +// and returns the receiver, so that objects can be build by chaining "With" function invocations. +// If called multiple times, values provided by each call will be appended to the Headers field. +func (b *ServiceCallApplyConfiguration) WithHeaders(values ...*HTTPHeaderApplyConfiguration) *ServiceCallApplyConfiguration { + for i := range values { + if values[i] == nil { + panic("nil value passed to WithHeaders") + } + b.Headers = append(b.Headers, *values[i]) + } + return b +} + // WithCABundle sets the CABundle field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the CABundle field is set to the value of the last call. diff --git a/pkg/client/applyconfigurations/utils.go b/pkg/client/applyconfigurations/utils.go index 5addd1898a..d051d1d11a 100644 --- a/pkg/client/applyconfigurations/utils.go +++ b/pkg/client/applyconfigurations/utils.go @@ -89,6 +89,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} { return &kyvernov1.GenerationApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("GlobalContextEntryReference"): return &kyvernov1.GlobalContextEntryReferenceApplyConfiguration{} + case v1.SchemeGroupVersion.WithKind("HTTPHeader"): + return &kyvernov1.HTTPHeaderApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("ImageExtractorConfig"): return &kyvernov1.ImageExtractorConfigApplyConfiguration{} case v1.SchemeGroupVersion.WithKind("ImageRegistry"): diff --git a/pkg/engine/apicall/apiCall_test.go b/pkg/engine/apicall/apiCall_test.go index 3034a9a3db..e088835ecd 100644 --- a/pkg/engine/apicall/apiCall_test.go +++ b/pkg/engine/apicall/apiCall_test.go @@ -2,7 +2,7 @@ package apicall import ( "context" - "fmt" + "encoding/json" "io" "net/http" "net/http/httptest" @@ -34,17 +34,34 @@ func buildTestServer(responseData []byte, useChunked bool) *httptest.Server { mux := http.NewServeMux() mux.HandleFunc("/resource", func(w http.ResponseWriter, r *http.Request) { if r.Method == "GET" { - w.Write(responseData) + auth := r.Header.Get("Authorization") + if auth != "Bearer 1234567890" { + http.Error(w, "Unauthorized", http.StatusUnauthorized) + return + } + + contentType := r.Header.Get("Content-Type") + if contentType != "application/json" { + http.Error(w, "StatusUnsupportedMediaType", http.StatusUnsupportedMediaType) + return + } if useChunked { flusher, ok := w.(http.Flusher) if !ok { - panic("expected http.ResponseWriter to be an http.Flusher") + http.Error(w, "expected http.ResponseWriter to be an http.Flusher", http.StatusInternalServerError) + return } - for i := 1; i <= 10; i++ { - fmt.Fprintf(w, "Chunk #%d\n", i) + chunkSize := len(responseData) / 10 + for i := 0; i < 10; i++ { + data := responseData[i*chunkSize : (i+1)*chunkSize] + w.Write(data) flusher.Flush() } + w.Write(responseData[10*chunkSize:]) + flusher.Flush() + } else { + w.Write(responseData) } return @@ -63,7 +80,7 @@ func buildTestServer(responseData []byte, useChunked bool) *httptest.Server { func Test_serviceGetRequest(t *testing.T) { testfn := func(t *testing.T, useChunked bool) { serverResponse := []byte(`{ "day": "Sunday" }`) - s := buildTestServer(serverResponse, false) + s := buildTestServer(serverResponse, useChunked) defer s.Close() entry := kyvernov1.ContextEntry{} @@ -77,6 +94,10 @@ func Test_serviceGetRequest(t *testing.T) { APICall: kyvernov1.APICall{ Service: &kyvernov1.ServiceCall{ URL: s.URL, + Headers: []kyvernov1.HTTPHeader{ + {Key: "Authorization", Value: "Bearer 1234567890"}, + {Key: "Content-Type", Value: "application/json"}, + }, }, }, } @@ -192,3 +213,58 @@ func Test_servicePostRequest(t *testing.T) { expectedResults := `{"images":["https://ghcr.io/tomcat/tomcat:9","https://ghcr.io/vault/vault:v3","https://ghcr.io/busybox/busybox:latest"]}` assert.Equal(t, string(expectedResults)+"\n", string(data)) } + +func buildEchoHeaderTestServer() *httptest.Server { + mux := http.NewServeMux() + mux.HandleFunc("/resource", func(w http.ResponseWriter, r *http.Request) { + if r.Method == "GET" { + responseData := make(map[string][]string) + for k, v := range r.Header { + responseData[k] = v + } + responseBytes, err := json.Marshal(responseData) + if err != nil { + http.Error(w, "Internal Server Error", http.StatusInternalServerError) + return + } + w.Write(responseBytes) + } + }) + return httptest.NewServer(mux) +} + +func Test_serviceHeaders(t *testing.T) { + s := buildEchoHeaderTestServer() + defer s.Close() + + entry := kyvernov1.ContextEntry{} + ctx := enginecontext.NewContext(jp) + + entry.Name = "test" + entry.APICall = &kyvernov1.ContextAPICall{ + APICall: kyvernov1.APICall{ + Method: "GET", + Service: &kyvernov1.ServiceCall{ + URL: s.URL + "/resource", + Headers: []kyvernov1.HTTPHeader{ + {Key: "Content-Type", Value: "application/json"}, + {Key: "Custom-Key", Value: "CustomVal"}, + }, + }, + }, + } + + entry.APICall.Service.URL = s.URL + "/resource" + call, err := New(logr.Discard(), jp, entry, ctx, nil, apiConfig) + assert.NilError(t, err) + data, err := call.FetchAndLoad(context.TODO()) + assert.NilError(t, err) + assert.Assert(t, data != nil, "nil data") + + var responseHeaders map[string][]string + err = json.Unmarshal(data, &responseHeaders) + assert.NilError(t, err) + assert.Equal(t, 4, len(responseHeaders)) + assert.Equal(t, "application/json", responseHeaders["Content-Type"][0]) + assert.Equal(t, "CustomVal", responseHeaders["Custom-Key"][0]) +} diff --git a/pkg/engine/apicall/executor.go b/pkg/engine/apicall/executor.go index e43509ea5e..34bf231cf9 100644 --- a/pkg/engine/apicall/executor.go +++ b/pkg/engine/apicall/executor.go @@ -110,34 +110,49 @@ func (a *executor) executeServiceCall(ctx context.Context, apiCall *kyvernov1.AP return body, nil } -func (a *executor) buildHTTPRequest(ctx context.Context, apiCall *kyvernov1.APICall) (req *http.Request, err error) { +func (a *executor) buildHTTPRequest(ctx context.Context, apiCall *kyvernov1.APICall) (*http.Request, error) { if apiCall.Service == nil { return nil, fmt.Errorf("missing service") } - token := a.getToken() - defer func() { - if token != "" && req != nil { + if apiCall.Method != "GET" && apiCall.Method != "POST" { + return nil, fmt.Errorf("invalid request type %s for APICall %s", apiCall.Method, a.name) + } + + var data io.Reader = nil + if apiCall.Method == "POST" { + var err error + data, err = a.buildRequestData(apiCall.Data) + if err != nil { + return nil, fmt.Errorf("failed to build request data for APICall %s: %w", a.name, err) + } + } + + req, err := http.NewRequestWithContext(ctx, string(apiCall.Method), apiCall.Service.URL, data) + if err != nil { + return nil, fmt.Errorf("failed to build request for APICall %s: %w", a.name, err) + } + + if err := a.addHTTPHeaders(req, apiCall.Service.Headers); err != nil { + return nil, fmt.Errorf("failed to add headers for APICall %s: %w", a.name, err) + } + + return req, nil +} + +func (a *executor) addHTTPHeaders(req *http.Request, headers []kyvernov1.HTTPHeader) error { + for _, header := range headers { + req.Header.Add(header.Key, header.Value) + } + + if req.Header.Get("Authorization") == "" { + token := a.getToken() + if token != "" { req.Header.Add("Authorization", "Bearer "+token) } - }() - - if apiCall.Method == "GET" { - req, err = http.NewRequestWithContext(ctx, "GET", apiCall.Service.URL, nil) - return } - if apiCall.Method == "POST" { - data, dataErr := a.buildRequestData(apiCall.Data) - if dataErr != nil { - return nil, dataErr - } - - req, err = http.NewRequest("POST", apiCall.Service.URL, data) - return - } - - return nil, fmt.Errorf("invalid request type %s for APICall %s", apiCall.Method, a.name) + return nil } func (a *executor) getToken() string {