Interact with the VMware Marketplace from concourse.
The recommended method to use this resource is with resource_types in the pipeline config as follows:
---
resource_types:
- name: marketplace
type: registry-image
source:
repository: projects.registry.vmware.com/tanzu_isv_engineering/mkpcli_concourse_resource
resources:
- name: greenplum
type: marketplace
source:
csp_api_token: {{api-token}}
product_slug: vmware-tanzu-greenplum-r-11
-
csp_api_token
: Required string.API Token from your VMware Cloud Service Portal.
-
product_slug
: Required string.Slug of the product on the VMware Marketplace.
-
marketplace_env
: Optional string.Marketplace environment to use. Either
staging
orproduction
Defaults to
production
.
Discovers all versions of the provided product.
Downloads a product asset from the VMware Marketplace.
The details for the product is written to both product.json
in the working directory (typically /tmp/build/get
).
Use this to programmatically get information for the product.
A version file is written to version
-
filename
: Required string (unlessskip_download
istrue
).The name of the file to use when saving the downloaded asset.
-
filter
: Optional string.A string to select a specific asset attached to a product.
-
accept_eula
: Optional boolean.Accepts the EULA for the product when downloading.
-
skip_download
: Optional boolean.If
true
, do not download an asset, but still get the product.json file.
resource:
- name: nginx
type: marketplace
source:
csp_api_token: {{api-token}}
product_slug: nginx
jobs:
- name: deploy-nginx-chart
plan:
- get: cluster
- get: tasks
- get: nginx
params:
filename: "nginx.tar"
accept_eula: true
- task: deploy-chart
image: image
file: tasks/deploy-chart.yml
Not yet implemented. It's on the roadmap!
A valid installation of golang 1.18 is required.
We use go modules for dependencies, so you will have to make sure to turn them on with GO111MODULE=on
.
Run the tests with the make file:
make test
Please see our Code of Conduct and Contributors guide.