Skip to content

Add support for .main.variant and TARGET_VARIANT#145

Merged
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:variant-support
Jul 9, 2026
Merged

Add support for .main.variant and TARGET_VARIANT#145
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:variant-support

Conversation

@mbaldessari

Copy link
Copy Markdown
Contributor

Now that the pattern-operator supports "variant" in place of
clusterGroupName we need to add support here as well.

Tested as follows:

  1. Deployment with .main.clusterGroupName set in values-global.yaml -> OK

  2. Deployment with .main.clusterGroupName and .main.variant set in values-global.yaml -> Error (expected)

  3. Deployment with .main.variant set in values-global.yaml -> OK

  4. Deployed with TARGET_CLUSTERGROUPNAME env set -> OK

  5. Deployed with TARGET_VARIANT env set (this requires a patch to pattern.sh) -> OK

  6. Deployed with both TARGET_CLUSTERGROUPNAME and TARGET_VARIANT -> Error (expected)

Now that the pattern-operator supports "variant" in place of
clusterGroupName we need to add support here as well.

Tested as follows:

  1. Deployment with .main.clusterGroupName set in values-global.yaml -> OK

  1. Deployment with .main.clusterGroupName and .main.variant set in values-global.yaml -> Error (expected)

  1. Deployment with .main.variant set in values-global.yaml -> OK

  1. Deployed with TARGET_CLUSTERGROUPNAME env set -> OK

  1. Deployed with TARGET_VARIANT env set (this requires a patch to pattern.sh) -> OK

  1. Deployed with both TARGET_CLUSTERGROUPNAME and TARGET_VARIANT -> Error (expected)

@dminnear-rh dminnear-rh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mbaldessari added a commit to validatedpatterns/patternizer that referenced this pull request Jul 9, 2026
@mbaldessari mbaldessari merged commit c8c1d89 into validatedpatterns:main Jul 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants