Skip to content

Validate feature compatibility with flavor at deploy time #540

@arvind4501

Description

@arvind4501

foremanctl deploy --add-feature xyz does not validate whether the requested feature is compatible with the deployed flavor. Users can not add features that are invalid(means not defined in https://github.com/theforeman/foremanctl/blob/master/src/features.yaml), but that works as of today because we only have one flavor.

In multi-flavor, when user deploys a flavor or adds a feature in a flavor deployment, it should validated that that requested feature is relevent for that particaular flavor.

for ex:

  • foremanctl deploy --flavor foreman --add-feature iop does not make sense as foreman flavor can't contain iop .
  • foremanctl deploy --flavor foreman-proxy-content --add-feature katello does not make sense.

We need to either update feature metadata to include flavor info as well, something like
foreman: description: Base Foreman Server flavors: [foreman, katello]
Or find another(probabily better) way to achieve this.

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