use package-template.yml to generate packages

This commit is contained in:
Benjamin A. Petersen 2023-08-24 14:53:19 -04:00
parent f8d173d6b3
commit 55a8141e08
No known key found for this signature in database
GPG Key ID: EF6EF83523A4BE46
4 changed files with 11 additions and 73 deletions

View File

@ -4,10 +4,10 @@
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: #@ "concierge.pinniped.dev." + data.values.version
name: #@ "concierge.pinniped.dev." + data.values.package_version
spec:
refName: concierge.pinniped.dev
version: #@ data.values.version
version: #@ data.values.package_version
releaseNotes: |
Initial release of the pinniped concierge package, TODO: AUTOMATE THIS??
valuesSchema:
@ -16,9 +16,8 @@ spec:
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
#! image: #@ data.values.package_image_repo + "/packages/:" + data.values.package_version
image: #@ data.values.package_image_repo
template:
- ytt:
paths:

View File

@ -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: {}

View File

@ -4,21 +4,22 @@
apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: #@ "supervisor.pinniped.dev." + data.values.version
name: #@ "supervisor.pinniped.dev." + data.values.package_version
spec:
refName: supervisor.pinniped.dev
version: #@ data.values.version
version: #@ data.values.package_version
releaseNotes: |
Initial release of the pinniped supervisor package, TODO: AUTOMATE THIS??
Initial release of the pinniped supervisor package
licenses:
- "Apache-2.0"
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
#! image: #@ data.values.package_image_repo + "/packages/:" + data.values.package_version
image: #@ data.values.package_image_repo
template:
- ytt:
paths:

View File

@ -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: {}