Velero Backup Validation Error CC_CLI
Description of the problem
When enabling Velero via cc_cli wizard
, the generated inventory is not schema-compliant.
The backup
object is missing, although the schema defines it as required.
This causes cc_cli validate
to fail immediately.
Preconditions & Environment
- CIVITAS/CORE latest version (v1.2)
- Using
cc_cli
- Local environment (k3d)
List the steps to reproduce the problem:
- install cc_cli
- run
cc_cli wizard
- enable velero backup
- run
cc_cli validate
Expected behavior
- Validation should succeed if Velero is enabled with default values.
- No schema errors should be raised.
Observed behavior
Syntax validation failed: 'backup' is a required property
Failed validating 'required' in schema['properties']['all']['properties']['children']['properties']['controller']['properties']['vars']['properties']['inv_op_stack']['properties']['velero']:
{'type': 'object',
'additionalProperties': False,
'properties': {'enable': {'type': 'boolean'},
'ns_name': {'type': 'string'},
'velero_namespace_suffix': {'type': 'string'},
'backup': {'$ref': '#/definitions/Backup'}},
'required': ['backup', 'enable', 'velero_namespace_suffix'],
'title': 'Velero'}
On instance['all']['children']['controller']['vars']['inv_op_stack']['velero']:
{'enable': True}
Screenshots
If relevant, copy and paste screenshots or photos of the problem here.