Question

How to provide one-click application param value from marketplace UI

Posted February 20, 2021 137 views
DigitalOcean Managed Kubernetes

Hi Team,

We have a kubernetes based application, which we intend to host as an One-click app in Digital Ocean. With this app we need to provide a unique ID during the installation.

Referred the below links

  1. Github link - https://github.com/digitalocean/marketplace-kubernetes.
  2. https://github.com/digitalocean/marketplace-kubernetes/blob/master/CONTRIBUTING.md

Tested it locally by providing the ID with the deploy.sh script from commandline and it worked for us.

Is there any provision to pass ID from Marketplace Application UI during app install time?

Please suggest a way if we can make it possible.

Thanks.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Typically, the one click apps (you didn’t specify which one) they are installed via helm charts. Most but not all. Typically with any helm chart, you customize the installation via what we call a values.yaml file. This is a file you include with the installation, that over rides default values for the installation. I would look to see for your application, if in the default values there is a way to add the value you are looking to add. It sounds like you are wanting to add a custom label. This is easy enough and “should” be able to be added to the values.yaml file. The git repo for the application should have the docs that show all the customizable values for that application. I have never been successful trying to change configuration after install by editing directly the settings in k8s. Hope this helps and gives you somewhere to look. You don’t have to use the 1-click install btw. Because they use helm, you can just do the helm install yourself. This is how you are able to add custom values to your installation.

  • Thanks for your reply. Yes here the requirement is to pass a param value to values.yaml file at install time. In our case this value is intended to be passed from the DigitalOcean marketplace Application web UI. Does DigitalOcean entertain these customized requests?