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

Add CONFIG_FILE type to x-google-marketplace property #485

Open
pgoldtho opened this issue Mar 19, 2020 · 0 comments
Open

Add CONFIG_FILE type to x-google-marketplace property #485

pgoldtho opened this issue Mar 19, 2020 · 0 comments

Comments

@pgoldtho
Copy link

pgoldtho commented Mar 19, 2020

As a marketplace application developer I would like the ability to accept configuration file input from the Marketplace UI so that I can accept configuration parameters that cannot be expressed as key-value pairs.

One way to do this would be to extend the x-google-marketplace property to included a CONFIG_FILE type. It would be used to generate a data entry field in the Cloud Marketplace UI where a user could upload a local file or specify a cloud storage resource location.

The uploaded file contents would replace a file with default/placeholder values in a helm chart directory which would be accessed using Files.Get as shown below

chart
└── my-application
    ├── Chart.yaml
    ├── config.js
    ├── logo.png
    ├── templates
    │   ├── application.yaml
    │   ├── manifest.yaml
    └── values.yaml

manifest.yaml (fragment)

---
apiVersion: v1
kind: Secret
metadata:
  name: {{ .Release.Name }}-conf-js
type: Opaque
stringData:
  config.js: |-
{{ .Files.Get "config.js" | indent 4 }}
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

No branches or pull requests

1 participant