use package-template.yml to generate packages
This commit is contained in:
parent
9e5e2f8acb
commit
730b1bbe43
@ -4,10 +4,10 @@
|
|||||||
apiVersion: data.packaging.carvel.dev/v1alpha1
|
apiVersion: data.packaging.carvel.dev/v1alpha1
|
||||||
kind: Package
|
kind: Package
|
||||||
metadata:
|
metadata:
|
||||||
name: #@ "concierge.pinniped.dev." + data.values.version
|
name: #@ "concierge.pinniped.dev." + data.values.package_version
|
||||||
spec:
|
spec:
|
||||||
refName: concierge.pinniped.dev
|
refName: concierge.pinniped.dev
|
||||||
version: #@ data.values.version
|
version: #@ data.values.package_version
|
||||||
releaseNotes: |
|
releaseNotes: |
|
||||||
Initial release of the pinniped concierge package, TODO: AUTOMATE THIS??
|
Initial release of the pinniped concierge package, TODO: AUTOMATE THIS??
|
||||||
valuesSchema:
|
valuesSchema:
|
||||||
@ -16,9 +16,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
fetch:
|
fetch:
|
||||||
- imgpkgBundle:
|
- imgpkgBundle:
|
||||||
#! TODO: we will need a place to host this.
|
#! image: #@ data.values.package_image_repo + "/packages/:" + data.values.package_version
|
||||||
#! this package image needs to be built and deployed so it can then be installed.
|
image: #@ data.values.package_image_repo
|
||||||
image: #@ "${REPO_HOST}/packages/pinniped-concierge:" + data.values.version
|
|
||||||
template:
|
template:
|
||||||
- ytt:
|
- ytt:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
#@ load("@ytt:data", "data") # for reading data values (generated via ytt's data-values-schema-inspect mode).
|
|
||||||
#@ load("@ytt:yaml", "yaml") # for dynamically decoding the output of ytt's data-values-schema-inspect
|
|
||||||
---
|
|
||||||
apiVersion: data.packaging.carvel.dev/v1alpha1
|
|
||||||
kind: Package
|
|
||||||
metadata:
|
|
||||||
name: #@ "concierge.pinniped.dev." + data.values.version
|
|
||||||
spec:
|
|
||||||
refName: concierge.pinniped.dev
|
|
||||||
version: #@ data.values.version
|
|
||||||
releaseNotes: |
|
|
||||||
Initial release of the pinniped concierge package, TODO: AUTOMATE THIS??
|
|
||||||
valuesSchema:
|
|
||||||
openAPIv3: #@ yaml.decode(data.values.openapi)["components"]["schemas"]["dataValues"]
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
fetch:
|
|
||||||
- imgpkgBundle:
|
|
||||||
#! TODO: we will need a place to host this.
|
|
||||||
#! this package image needs to be built and deployed so it can then be installed.
|
|
||||||
image: #@ "${REPO_HOST}/packages/pinniped-concierge:" + data.values.version
|
|
||||||
template:
|
|
||||||
- ytt:
|
|
||||||
paths:
|
|
||||||
- "config/"
|
|
||||||
- kbld:
|
|
||||||
paths:
|
|
||||||
- ".imgpkg/images.yml"
|
|
||||||
- "-"
|
|
||||||
deploy:
|
|
||||||
- kapp: {}
|
|
@ -4,21 +4,22 @@
|
|||||||
apiVersion: data.packaging.carvel.dev/v1alpha1
|
apiVersion: data.packaging.carvel.dev/v1alpha1
|
||||||
kind: Package
|
kind: Package
|
||||||
metadata:
|
metadata:
|
||||||
name: #@ "supervisor.pinniped.dev." + data.values.version
|
name: #@ "supervisor.pinniped.dev." + data.values.package_version
|
||||||
spec:
|
spec:
|
||||||
refName: supervisor.pinniped.dev
|
refName: supervisor.pinniped.dev
|
||||||
version: #@ data.values.version
|
version: #@ data.values.package_version
|
||||||
releaseNotes: |
|
releaseNotes: |
|
||||||
Initial release of the pinniped supervisor package, TODO: AUTOMATE THIS??
|
Initial release of the pinniped supervisor package
|
||||||
|
licenses:
|
||||||
|
- "Apache-2.0"
|
||||||
valuesSchema:
|
valuesSchema:
|
||||||
openAPIv3: #@ yaml.decode(data.values.openapi)["components"]["schemas"]["dataValues"]
|
openAPIv3: #@ yaml.decode(data.values.openapi)["components"]["schemas"]["dataValues"]
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
fetch:
|
fetch:
|
||||||
- imgpkgBundle:
|
- imgpkgBundle:
|
||||||
#! TODO: we will need a place to host this.
|
#! image: #@ data.values.package_image_repo + "/packages/:" + data.values.package_version
|
||||||
#! this package image needs to be built and deployed so it can then be installed.
|
image: #@ data.values.package_image_repo
|
||||||
image: #@ "${REPO_HOST}/packages/pinniped-supervisor:" + data.values.version
|
|
||||||
template:
|
template:
|
||||||
- ytt:
|
- ytt:
|
||||||
paths:
|
paths:
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
#@ load("@ytt:data", "data") # for reading data values (generated via ytt's data-values-schema-inspect mode).
|
|
||||||
#@ load("@ytt:yaml", "yaml") # for dynamically decoding the output of ytt's data-values-schema-inspect
|
|
||||||
---
|
|
||||||
apiVersion: data.packaging.carvel.dev/v1alpha1
|
|
||||||
kind: Package
|
|
||||||
metadata:
|
|
||||||
name: #@ "supervisor.pinniped.dev." + data.values.version
|
|
||||||
spec:
|
|
||||||
refName: supervisor.pinniped.dev
|
|
||||||
version: #@ data.values.version
|
|
||||||
releaseNotes: |
|
|
||||||
Initial release of the pinniped supervisor package, TODO: AUTOMATE THIS??
|
|
||||||
valuesSchema:
|
|
||||||
openAPIv3: #@ yaml.decode(data.values.openapi)["components"]["schemas"]["dataValues"]
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
fetch:
|
|
||||||
- imgpkgBundle:
|
|
||||||
#! TODO: we will need a place to host this.
|
|
||||||
#! this package image needs to be built and deployed so it can then be installed.
|
|
||||||
image: #@ "${REPO_HOST}/packages/pinniped-supervisor:" + data.values.version
|
|
||||||
template:
|
|
||||||
- ytt:
|
|
||||||
paths:
|
|
||||||
- "config/"
|
|
||||||
- kbld:
|
|
||||||
paths:
|
|
||||||
- ".imgpkg/images.yml"
|
|
||||||
- "-"
|
|
||||||
deploy:
|
|
||||||
- kapp: {}
|
|
Loading…
Reference in New Issue
Block a user