Skip to content

Validation of cc_cli generated inventory fails

Description of the problem

The cc_cli wizard in "easy" mode for "remote test deployment" generates an inventory file that fails validation due to a missing required property k8s_secret_name in the platform configuration section.

Preconditions & Environment

  • Environment: Development environment with cc_cli tool
  • cc_cli mode: Easy wizard mode
  • Deployment target: Remote test deployment

Steps to reproduce it

  1. Run cc_cli wizard
  2. Select "easy" wizard mode
  3. Select "remote test deployment" as deployment target
  4. Complete all wizard prompts with the following values:
    • Domain: dev-cluster.civitascore.de
    • Environment name: cc-tst
    • Kubernetes context: civitas-dev
    • Storage class: default
    • Cert manager issuer: letsencrypt-prod
    • Email server: mail.dev-cluster.civitascore.de
    • Email user: admin@dev-cluster.civitascore.de
    • Email from: noreply@dev-cluster.civitascore.de
    • Auto-generate passwords: No
    • Private GitLab repos: No
    • Components: ['APISIX', 'Frost', 'GeoServer', 'Masterportal', 'PgAdmin', 'QuantumLeap', 'Service Portal', 'Stellio', 'Superset']
  5. Complete wizard (creates cc_cli_inventory.yml)
  6. Run cc_cli validate

Expected behavior

The cc_cli validate command should successfully validate the inventory file generated by the wizard without any schema validation errors.

Observed behavior

The validation fails with the error:

Syntax validation failed: 'k8s_secret_name' is a required property

  Failed validating 'required' in schema['properties']['all']['properties'][
  'children']['properties']['controller']['properties']['vars']['properties'
  ]['inv_access']['properties']['platform']

  The generated inventory file is missing the required `k8s_secret_name`
  property in the `inv_access.platform` section.

Screenshots

No screenshots needed for this command-line error.

Edited by Lars Sinda