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

getClusterStatus #16

Merged
merged 1 commit into from
May 24, 2024
Merged

Conversation

gianlucam76
Copy link
Member

This API returns Profile/ClusterProfile instances matching a cluster and the status of each feature.

This PR simply changes the return value by flattening it first as requested by UI.

This is an example of returned value:

{"profiles":[{"profileName":"deploy-kyverno","profileType":"ClusterProfile","featureID":"Helm","status":"Provisioned"},{"profileName":"deploy-resources","profileType":"ClusterProfile","featureID":"Resources","status":"Provisioned"},{"profileName":"nginx","profileType":"ClusterProfile","featureID":"Helm","status":"Provisioned"}],"totalResources":3}

Results are ordered by:

  1. Profile Type (ClusterProfiles before Profiles)
  2. Profile Name
  3. Feature ID

This API returns Profile/ClusterProfile instances matching a cluster
and the status of each feature.

This PR simply changes the return value by flattening it first as requested
by UI.

This is an example of returned value:

```
{"profiles":[{"profileName":"deploy-kyverno","profileType":"ClusterProfile","featureID":"Helm","status":"Provisioned"},{"profileName":"deploy-resources","profileType":"ClusterProfile","featureID":"Resources","status":"Provisioned"},{"profileName":"nginx","profileType":"ClusterProfile","featureID":"Helm","status":"Provisioned"}],"totalResources":3}
```

Results are ordered by:
1. Profile Type (ClusterProfiles before Profiles)
2. Profile Name
3. Feature ID
@marcomarinodev
Copy link
Contributor

everything looks great to me! thank you Gianluca

@gianlucam76 gianlucam76 merged commit 0f6e7a3 into projectsveltos:dev May 24, 2024
2 checks passed
@gianlucam76 gianlucam76 deleted the profile-result branch May 24, 2024 08:10
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