build.yaml kbld config: pass in image_repo
This commit is contained in:
parent
cabf4c9088
commit
4517258d9a
@ -1,11 +1,15 @@
|
|||||||
|
#@ load("@ytt:data", "data")
|
||||||
|
---
|
||||||
apiVersion: kbld.k14s.io/v1alpha1
|
apiVersion: kbld.k14s.io/v1alpha1
|
||||||
kind: Config
|
kind: Config
|
||||||
minimumRequiredVersion: 0.31.0 # minimum version of kbld. We probably don't need to specify.
|
minimumRequiredVersion: 0.31.0 #! minimum version of kbld. We probably don't need to specify.
|
||||||
overrides:
|
overrides:
|
||||||
#! TODO: in the pinniped yamls, this is provided by values.yaml, not declared in the deployment.
|
#! TODO: in the pinniped yamls, this is provided by values.yaml, not declared in the deployment.
|
||||||
#! we should assess if we want to leave it there or move it to this form of configuration.
|
#! we should assess if we want to leave it there or move it to this form of configuration.
|
||||||
- image: projects.registry.vmware.com/pinniped/pinniped-server:latest
|
- image: projects.registry.vmware.com/pinniped/pinniped-server
|
||||||
newImage: ""
|
newImage: #@ data.values.image_repo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#! I don't think we need any of these (until we need them 😊). IE, don't use prematurely.
|
#! I don't think we need any of these (until we need them 😊). IE, don't use prematurely.
|
||||||
|
31
deploy_carvel/concierge/package-template.yml
Normal file
31
deploy_carvel/concierge/package-template.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#@ 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: {}
|
@ -1,11 +1,15 @@
|
|||||||
|
#@ load("@ytt:data", "data")
|
||||||
|
---
|
||||||
apiVersion: kbld.k14s.io/v1alpha1
|
apiVersion: kbld.k14s.io/v1alpha1
|
||||||
kind: Config
|
kind: Config
|
||||||
minimumRequiredVersion: 0.31.0 # minimum version of kbld. We probably don't need to specify.
|
minimumRequiredVersion: 0.31.0 #! minimum version of kbld. We probably don't need to specify.
|
||||||
overrides:
|
overrides:
|
||||||
#! TODO: in the pinniped yamls, this is provided by values.yaml, not declared in the deployment.
|
#! TODO: in the pinniped yamls, this is provided by values.yaml, not declared in the deployment.
|
||||||
#! we should assess if we want to leave it there or move it to this form of configuration.
|
#! we should assess if we want to leave it there or move it to this form of configuration.
|
||||||
- image: projects.registry.vmware.com/pinniped/pinniped-server:latest
|
- image: projects.registry.vmware.com/pinniped/pinniped-server
|
||||||
newImage: ""
|
newImage: #@ data.values.image_repo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#! I don't think we need any of these (until we need them 😊). IE, don't use prematurely.
|
#! I don't think we need any of these (until we need them 😊). IE, don't use prematurely.
|
||||||
|
31
deploy_carvel/supervisor/package-template.yml
Normal file
31
deploy_carvel/supervisor/package-template.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#@ 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