Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] Fix catalog validation in dev mode #1084

Merged
merged 9 commits into from
Jul 4, 2024
Merged

Conversation

joaopauloksn
Copy link
Contributor

@joaopauloksn joaopauloksn commented Jul 3, 2024

  • Removing catalogVersion and catalogImage vars as they were not being used.

  • Catalog validation in based on the assumption the displayName will follow a given pattern.
    We have two different scenarios we want to cover:
    1- When dev mode is set, we need to skip this validation;
    1.1- Interactive mode:
    DEV_MODE comes from env var (string)

1.2- Non interactive mode:
DEV_MODE comes from args (boolean)

2- When the displayName does not match what is expected, we abort the installation and ask the admin to update the catalog first.

When dev mode is not set and catalog displayName is wrong:
image

When dev mode is set or catalog displayName is correct:
image

@durera durera changed the title [patch] Fixing catalog validation [patch] Fix catalog validation in dev mode Jul 4, 2024
@durera durera merged commit c92aa9b into master Jul 4, 2024
3 checks passed
@durera durera deleted the fixcatalogvalidation branch July 4, 2024 14:17
andrefgj pushed a commit that referenced this pull request Aug 12, 2024
Co-authored-by: Joao Paulo Karol Nunes <[email protected]>
Co-authored-by: David Parker <[email protected]>
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