Skip to content

How to get YAML file using APIs? #3966

Answered by antgamdia
sehrishnaseer asked this question in Q&A
Discussion options

You must be logged in to vote

You need to query the GetAvailablePackageDetail operation and retrieve the defaultValues field.
If using the REST API, your API call will be similar to:

curl -X 'GET' \
  'https://kubeapps.20.67.191.243.sslip.io/apis/core/packages/v1alpha1/availablepackages/plugin/helm.packages/v1alpha1/c/default/ns/kubeapps/bitnami%2Fairflow?pkgVersion=11.1.10' \
  -H 'accept: application/json'

Similarly, if interesting in getting the values of an already installed application, you'll need to query the GetInstalledPackageDetail operation instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sehrishnaseer
Comment options

Answer selected by antgamdia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants