1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/olmv1-clusterextension-watchnamespace-validation-errors.adoc

35 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

// Module included in the following assemblies:
//
// * extensions/ce/olmv1-configuring-extensions.adoc
:_mod-docs-content-type: REFERENCE
[id="olmv1-clusterextension-watchnamespace-validation-errors_{context}"]
= Watch namespace validation errors
[role="_abstract"]
Validation errors occur when the `watchNamespace` field is omitted or contains an invalid value for the install modes supported by the bundle.
.Common `watchNamespace` field validation errors
[cols="2,3,3",options="header"]
|===
| Error | Cause | Resolution
| Required field missing
| The bundle requires the `watchNamespace` field but it is omitted.
| Add the `watchNamespace` field with a value that matches the install modes supported by the bundle.
| `OwnNamespace` validation error
| The bundle only supports `OwnNamespace` mode but the `watchNamespace` value does not match the `.spec.namespace` field.
| Set the `watchNamespace` field to the same value as the `.spec.namespace` field.
| `SingleNamespace` validation error
| The bundle only supports `SingleNamespace` mode but the `watchNamespace` value matches the `.spec.namespace` field.
| Set the `watchNamespace` field to a different namespace than the `.spec.namespace` field.
| Invalid configuration
| The `.spec.config` structure is malformed or has unsupported fields.
| Verify the configuration follows the correct API structure with `configType: Inline` and valid `inline` fields.
|===