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
--alpha-select-external string Selector to select external validators to run. It should be set to a Unix path list ("/path/to/e1.sh:/path/to/e2")
241
234
-h, --help help for validate
242
235
-b, --image-builder string Tool to pull and unpack bundle images. Only used when validating a bundle image. One of: [docker, podman, none] (default "docker")
243
236
--list-optional List all optional validators available. When set, no validators will be run
@@ -253,93 +246,12 @@ Global Flags:
253
246
**--help* works as is
254
247
**--image-builder* works as is
255
248
**--list-optional* would need to be updated to locate external validators.
256
-
257
-
TODO: How do we locate these validators? Do we use the XDG_CONFIG like Phase
258
-
2? Or allow users to pass in the location of the validators?
259
-
260
249
**--optional-values* would continue to be passed to the validators
261
250
**--output* indicates how we want to output the results.
251
+
**--select-optional* works as is
252
+
**-- alpha-select-external* added; takes in the location of the executable to run as
253
+
the validator, i.e. `/path/to/validator/the-executable:/path/to/another`
262
254
263
-
TODO: what types do we want to support?
264
-
265
-
**--select-optional* takes in a label selector to specify which optional test
266
-
to run. We could allow a new label to indicate the location of the executable
267
-
to run as the validator. i.e. `validator-path=/path/to/validator/the-executable`
268
-
269
-
TODO: need to define what the CLI for operator-sdk will look like. Are there
270
-
any new flags? Do we use the environment variable?
271
-
272
-
NOTE: what would the CLI look like?
273
-
274
-
275
-
##### Default validators run by operator-sdk
276
-
277
-
List of current validators:
278
-
TODO: do we need these validators called out like this?
279
-
280
-
* BundleValidator
281
-
* validates the bundle
282
-
* looks for duplicate keys in bundle
283
-
* verifies all owned keys match a CRD in the bundle
284
-
* verifies that all CRDs present in the bundle are in the CSV
285
-
* validates the service account
286
-
287
-
* ClusterServiceVersionValidator
288
-
* operator-sdk checks to see if the CSV is nil on the bundle (that's the first
289
-
check)
290
-
* checks that the CSV name is a valid format
291
-
* DNS1123
292
-
* valid label
293
-
* verifies replaces name is also a valid format
294
-
* DNS1123
295
-
* valid label
296
-
* ensures that both `alm-examples` and `olm.examples` are not both present
297
-
* decodes the example yaml, to validate its format
298
-
* checks provided APIs
299
-
* validates the `InstallModes`
300
-
* verifies that conversion CRDs support `AllNamespaces`
301
-
* checks for missing mandatory fields
302
-
* validates the annotation names
303
-
* validates the version and kind
304
-
305
-
* CustomResourceDefinitionValidator
306
-
* operator-sdk puts the v1beta1 and v1 CRDs together for validation
0 commit comments