You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: bump controller gen to 0.14.0 (kyverno#9953)
* chore: update controller-gen version and cmd
controller gen throws an error when multiple instances of the same generator 'crd' in this case is specified. See: kubernetes-sigs/controller-tools#829
Signed-off-by: Vishal Choudhary <[email protected]>
* chore: generate code
Signed-off-by: Vishal Choudhary <[email protected]>
---------
Signed-off-by: Vishal Choudhary <[email protected]>
Co-authored-by: Charles-Edouard Brétéché <[email protected]>
Copy file name to clipboardExpand all lines: charts/kyverno/charts/crds/templates/kyverno.io/kyverno.io_globalcontextentries.yaml
+81-70Lines changed: 81 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ metadata:
9
9
{{- with .Values.annotations }}
10
10
{{- toYaml . | nindent 4 }}
11
11
{{- end }}
12
-
controller-gen.kubebuilder.io/version: v0.12.0
12
+
controller-gen.kubebuilder.io/version: v0.14.0
13
13
name: globalcontextentries.kyverno.io
14
14
spec:
15
15
group: kyverno.io
@@ -43,32 +43,38 @@ spec:
43
43
description: GlobalContextEntry declares resources to be cached.
44
44
properties:
45
45
apiVersion:
46
-
description: 'APIVersion defines the versioned schema of this representation
47
-
of an object. Servers should convert recognized schemas to the latest
48
-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
46
+
description: |-
47
+
APIVersion defines the versioned schema of this representation of an object.
48
+
Servers should convert recognized schemas to the latest internal value, and
49
+
may reject unrecognized values.
50
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
49
51
type: string
50
52
kind:
51
-
description: 'Kind is a string value representing the REST resource this
52
-
object represents. Servers may infer this from the endpoint the client
53
-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
53
+
description: |-
54
+
Kind is a string value representing the REST resource this object represents.
55
+
Servers may infer this from the endpoint the client submits requests to.
56
+
Cannot be updated.
57
+
In CamelCase.
58
+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
description: 'Stores results from an API call which will be cached.
62
-
Mutually exclusive with KubernetesResource. This can be used to
63
-
make calls to external (non-Kubernetes API server) services. It
64
-
can also be used to make calls to the Kubernetes API server in such
65
-
cases: 1. A POST is needed to create a resource. 2. Finer-grained
66
-
control is needed. Example: To restrict the number of resources
67
-
cached.'
66
+
description: |-
67
+
Stores results from an API call which will be cached.
68
+
Mutually exclusive with KubernetesResource.
69
+
This can be used to make calls to external (non-Kubernetes API server) services.
70
+
It can also be used to make calls to the Kubernetes API server in such cases:
71
+
1. A POST is needed to create a resource.
72
+
2. Finer-grained control is needed. Example: To restrict the number of resources cached.
68
73
properties:
69
74
data:
70
-
description: The data object specifies the POST data sent to the
71
-
server. Only applicable when the method field is set to POST.
75
+
description: |-
76
+
The data object specifies the POST data sent to the server.
77
+
Only applicable when the method field is set to POST.
72
78
items:
73
79
description: RequestData contains the HTTP POST data
74
80
properties:
@@ -93,54 +99,58 @@ spec:
93
99
type: string
94
100
refreshInterval:
95
101
default: 10m
96
-
description: RefreshInterval defines the interval in duration
97
-
at which to poll the APICall. The duration is a sequence of
98
-
decimal numbers, each with optional fraction and a unit suffix,
99
-
such as "300ms", "1.5h" or "2h45m". Valid time units are "ns",
100
-
"us"(or "µs"), "ms", "s", "m", "h".
102
+
description: |-
103
+
RefreshInterval defines the interval in duration at which to poll the APICall.
104
+
The duration is a sequence of decimal numbers, each with optional fraction and a unit suffix,
105
+
such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
101
106
format: duration
102
107
type: string
103
108
service:
104
-
description: Service is an API call to a JSON web service. This
105
-
is used for non-Kubernetes API server calls. It's mutually exclusive
106
-
with the URLPath field.
109
+
description: |-
110
+
Service is an API call to a JSON web service.
111
+
This is used for non-Kubernetes API server calls.
112
+
It's mutually exclusive with the URLPath field.
107
113
properties:
108
114
caBundle:
109
-
description: CABundle is a PEM encoded CA bundle which will
110
-
be used to validate the server certificate.
115
+
description: |-
116
+
CABundle is a PEM encoded CA bundle which will be used to validate
117
+
the server certificate.
111
118
type: string
112
119
url:
113
-
description: URL is the JSON web service URL. A typical form
114
-
is `https://{service}.{namespace}:{port}/{path}`.
120
+
description: |-
121
+
URL is the JSON web service URL. A typical form is
122
+
`https://{service}.{namespace}:{port}/{path}`.
115
123
type: string
116
124
required:
117
125
- url
118
126
type: object
119
127
urlPath:
120
-
description: URLPath is the URL path to be used in the HTTP GET
121
-
or POST request to the Kubernetes API server (e.g. "/api/v1/namespaces"
122
-
or "/apis/apps/v1/deployments"). The format required is the
123
-
same format used by the `kubectl get --raw` command. See https://kyverno.io/docs/writing-policies/external-data-sources/#variables-from-kubernetes-api-server-calls
124
-
for details. It's mutually exclusive with the Service field.
128
+
description: |-
129
+
URLPath is the URL path to be used in the HTTP GET or POST request to the
130
+
Kubernetes API server (e.g. "/api/v1/namespaces" or "/apis/apps/v1/deployments").
131
+
The format required is the same format used by the `kubectl get --raw` command.
132
+
See https://kyverno.io/docs/writing-policies/external-data-sources/#variables-from-kubernetes-api-server-calls
133
+
for details.
134
+
It's mutually exclusive with the Service field.
125
135
type: string
126
136
type: object
127
137
kubernetesResource:
128
-
description: Stores a list of Kubernetes resources which will be cached.
138
+
description: |-
139
+
Stores a list of Kubernetes resources which will be cached.
129
140
Mutually exclusive with APICall.
130
141
properties:
131
142
group:
132
143
description: Group defines the group of the resource.
133
144
type: string
134
145
namespace:
135
-
description: Namespace defines the namespace of the resource.
136
-
Leave empty for cluster scoped resources. If left empty for
137
-
namespaced resources, all resources from all namespaces will
138
-
be cached.
146
+
description: |-
147
+
Namespace defines the namespace of the resource. Leave empty for cluster scoped resources.
148
+
If left empty for namespaced resources, all resources from all namespaces will be cached.
139
149
type: string
140
150
resource:
141
-
description: Resource defines the type of the resource. Requires
142
-
the pluralized form of the resource kind in lowercase. (Ex.,
143
-
"deployments")
151
+
description: |-
152
+
Resource defines the type of the resource.
153
+
Requires the pluralized form of the resource kind in lowercase. (Ex., "deployments")
144
154
type: string
145
155
version:
146
156
description: Version defines the version of the resource.
@@ -157,42 +167,42 @@ spec:
157
167
conditions:
158
168
items:
159
169
description: "Condition contains details for one aspect of the current
160
-
state of this API Resource. --- This struct is intended for direct
161
-
use as an array at the field path .status.conditions. For example,
162
-
\n type FooStatus struct{ // Represents the observations of a
163
-
foo's current state. // Known .status.conditions.type are: \"Available\",
164
-
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
0 commit comments