metadata.yml files support namespace templating

This commit is contained in:
Benjamin A. Petersen 2023-08-29 12:44:11 -04:00
parent e873f11284
commit 296f09ed85
No known key found for this signature in database
GPG Key ID: EF6EF83523A4BE46
3 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,11 @@
#@ 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 apiVersion: data.packaging.carvel.dev/v1alpha1
kind: PackageMetadata kind: PackageMetadata
metadata: metadata:
name: concierge.pinniped.dev name: concierge.pinniped.dev
namespace: #@ data.values.namespace
spec: spec:
displayName: "Pinniped Concierge" displayName: "Pinniped Concierge"
longDescription: "Pinniped concierge enables consistent login across Kubernetes clusters on public cloud providers such as AKS, EKS and GKE" longDescription: "Pinniped concierge enables consistent login across Kubernetes clusters on public cloud providers such as AKS, EKS and GKE"

View File

@ -14,5 +14,5 @@ images:
- resolved: - resolved:
tag: 0.25.0 tag: 0.25.0
url: benjaminapetersen/pinniped-package-repo-package-supervisor:0.25.0 url: benjaminapetersen/pinniped-package-repo-package-supervisor:0.25.0
image: index.docker.io/benjaminapetersen/pinniped-package-repo-package-supervisor@sha256:95ce6e00bc9eb9becea021c5d8fe0fdeb241fd974c7fc8076220cb24d65650e1 image: index.docker.io/benjaminapetersen/pinniped-package-repo-package-supervisor@sha256:3da81c3b0554e4e59ee1c8e63d582a753c9b9c7deb170d35209d3f1ee7df2245
kind: ImagesLock kind: ImagesLock

View File

@ -1,7 +1,11 @@
#@ 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 apiVersion: data.packaging.carvel.dev/v1alpha1
kind: PackageMetadata kind: PackageMetadata
metadata: metadata:
name: supervisor.pinniped.dev name: supervisor.pinniped.dev
namespace: #@ data.values.namespace
spec: spec:
displayName: "Pinniped Supervisor" displayName: "Pinniped Supervisor"
longDescription: "Pinniped supervisor allows seamless login across one or many Kubernetes clusters including AKS, EKS and GKE" longDescription: "Pinniped supervisor allows seamless login across one or many Kubernetes clusters including AKS, EKS and GKE"