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

BUG: DeployedGroupVersionKind gets reset to empty #554

Closed
gianlucam76 opened this issue May 17, 2024 · 2 comments
Closed

BUG: DeployedGroupVersionKind gets reset to empty #554

gianlucam76 opened this issue May 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gianlucam76
Copy link
Member

Problem Description

When a (Cluster)Profile contains both PolicyRefs and HelmCharts, there is a condition that causes DeployedGroupVersionKind to be unset for PolicyRefs.
Consequently when cleanup happens, resources deployed are not removed from the managed cluster.

And example of such failure happened here: https://github.com/projectsveltos/addon-controller/actions/runs/9127268602/job/25097201382

@gianlucam76 gianlucam76 added the bug Something isn't working label May 17, 2024
@gianlucam76 gianlucam76 changed the title BUG: [bug subject here] BUG: DeployedGroupVersionKind gets reset to empty May 17, 2024
@gianlucam76
Copy link
Member Author

While this issue is rare, current workaround is to use different ClusterProfiles.

So if you need to deploy:

  1. HelmChart
  2. KustomizationRefs
  3. PolicyRefs

create different profiles (one for helmchart, one for PolicyRefs and one for KustomizationRefs)

@gianlucam76
Copy link
Member Author

This happens when ClusterSummary starts being reconciled and just after that worker completes deploying PolicyRef or KustomizationRef and saving Deployed GVK.

Solution is to move DeployedGroupVersionKind to its owns section in Status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant