Skip to content

opencenter cluster edit fails - Error:Field validation for 'Env' failed on the 'oneof' tag #12

@pratik705

Description

@pratik705

Describe the bug
If env: is set to test then opencenter cluster edit fails:

opencenter cluster edit
Error: failed to load configuration for cluster 'xxxxx/xxxxx': failed to parse YAML configuration: failed to parse YAML configuration: stage 5 (validate): schema validation failed: Key: 'Config.OpenCenter.Meta.Env' Error:Field validation for 'Env' failed on the 'oneof' tag

To Reproduce
Steps to reproduce the behavior:

  1. Set env to test - /etc/opencenter/clusters/blueprints/xxxxx/xxxxx/xxxxxx.yaml
  2. Try to edit with opencenter cluster edit

Version

opencenter  version
opencenter version: main
Git commit:         a94cca66bb0a54270bd0b2959ebb13bcd97d2fb5
Git branch:         main
Git tag:            main
Build date:         2026-05-18T12:42:47Z
Go version:         go1.26.3
Platform:           linux/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions