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

Allow installing app multiple times if clusterSingleton restriction is not set on AppCatalogEntry #3658

Merged
merged 5 commits into from Aug 19, 2022

Conversation

kuosandys
Copy link
Contributor

@kuosandys kuosandys commented Aug 18, 2022

Towards giantswarm/roadmap#1130.

Previously, we implemented the feature to display the installation status of an app for a selected cluster. However, we didn't take into account the clusterSingleton restriction on the app catalog entry when determining installation status. This blocked users from installing an app multiple times for the same workload cluster, even when it does not have the clusterSingleton restriction.

This PR fixes this bug by only disabling the app installation button if this restriction is set on the app catalog entry. Otherwise, the installation button is still actionable.

When the app is installed in a selected cluster, and its app catalog entry has the clusterSingleton restriction, we display an appropriate message and disable selecting the cluster from the cluster picker form:
Screen Shot 2022-08-18 at 16 21 52

When the app is installed in a selected cluster, and its app catalog entry does not have the clusterSingleton restriction, we display an appropriate message, but the button is clickable, and users can select the cluster from the cluster picker form:
Screen Shot 2022-08-18 at 16 21 25

@kuosandys kuosandys added the kind/bug Fixing a bug label Aug 18, 2022
@kuosandys kuosandys marked this pull request as ready for review August 18, 2022 16:20
@kuosandys kuosandys requested a review from a team August 18, 2022 16:20
Copy link
Contributor

@gusevda gusevda left a comment

Choose a reason for hiding this comment

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

Looks great!

@kuosandys kuosandys merged commit e51357f into main Aug 19, 2022
@kuosandys kuosandys deleted the fix-app-installation-clusterSingleton branch August 19, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants