-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add API to get detailed profile info
To get detailed info about a Profile ``` /profile?namespace=<profile namespace>&name=<profile name>&kind=Profile ``` To get detailed info about a ClusterProfile ``` /profile?name=<clusterprofile name>&kind=ClusterProfile ``` Response will contain: - Kind: kind of the profile (ClusterProfile vs Profile) - Namespace: namespace of the profile (empty for ClusterProfiles) - Name: name of the profile - Dependencies: list of profiles the profile depends on - Dependents: list of profiles that depend on this profile - MatchingClusters: list of clusters (ClusterAPI or SveltosCluster) matching the profile. this list contains *only* the clusters a user can see - Spec: profile's spec Here is an example: ```yaml --- kind: "ClusterProfile" namespace: "" name: "prometheus-grafana" dependencies: - kind: "ClusterProfile" name: "deploy-kyverno" apiVersion: "config.projectsveltos.io/v1beta1" dependents: matchingClusters: - kind: "Cluster" namespace: "default" name: "clusterapi-workload" apiVersion: "cluster.x-k8s.io/v1beta1" spec: clusterSelector: matchLabels: env: "fv" syncMode: "Continuous" tier: "100" stopMatchingBehavior: "WithdrawPolicies" dependsOn: - "deploy-kyverno" helmCharts: - repositoryURL: "https://prometheus-community.github.io/helm-charts" repositoryName: "prometheus-community" chartName: "prometheus-community/prometheus" chartVersion: "23.4.0" releaseName: "prometheus" releaseNamespace: "prometheus" helmChartAction: "Install" - repositoryURL: "https://grafana.github.io/helm-charts" repositoryName: "grafana" chartName: "grafana/grafana" chartVersion: "6.58.9" releaseName: "grafana" releaseNamespace: "grafana" helmChartAction: "Install" ```
- Loading branch information
mgianluc
committed
Oct 31, 2024
1 parent
fe50896
commit a0d1a1d
Showing
5 changed files
with
213 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters