v0.6.1 Beta!
Pre-release
Pre-release
Breaking Change
Application CRD has been upgraded from v1alpha1
to v1beta1
.
Upgrading your deployer
Make sure you pull the new versions of the base deployers.
docker pull gcr.io/cloud-marketplace-tools/k8s/deployer_helm:latest
docker pull gcr.io/cloud-marketplace-tools/k8s/deployer_envsubst:latest
In schema.yaml
Add the following line to (the top of) the file:
application_api_version: v1beta1
In Application
manifest:
- Change
apiVersion
toapp.k8s.io/v1beta1
- Move the following fields (all previously under
spec
) to a new field calleddescriptor
:
type
version
description
maintainers
owners
keywords
links
notes
An example of the new Application
manifest can be found here.
Development
Only one version of the Application CRD can be present in a given cluster. To upgrade a cluster with a previous version of the CRD installed:
- Delete all
Application
instances in the cluster.1 - Delete the CRD:
kubectl delete crd applications.app.k8s.io
- Install the new CRD (
make crd/install
if you use our Makefile system)
1 existing v1alpha1
applications won't be retrievable/deletable from the k8s API any more once the CRD is deleted.
New feature
Supporting multi-part image properties
Example:
properties:
imageNginx.image:
type: string
default: marketplace.gcr.io/google/nginx:1.0
x-google-marketplace:
type: IMAGE
image:
generatedProperties:
splitByColon:
before: imageNginx.repo
after: imageNginx.tag
In your manifests, the following two properties can be used:
imageNginx.repo
, which should have the value ofmarketplace.gcr.io/google/nginx
for the default value.imageNginx.tag
, which should have the value of1.0
for the default value.