From 538f6b5b3fab7b15acc903feae07d3d4cef6eb95 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Petersen" Date: Fri, 29 Sep 2023 13:04:09 -0400 Subject: [PATCH] Add supervisor carvel package files --- deploy_carvel/supervisor/README.md | 6 +++- deploy_carvel/supervisor/build.yml | 4 +++ deploy_carvel/supervisor/metadata.yml | 10 +++++++ deploy_carvel/supervisor/package-template.yml | 29 +++++++++++++++++++ ...schema-openapi.yaml => schema-openapi.yml} | 0 5 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 deploy_carvel/supervisor/build.yml create mode 100644 deploy_carvel/supervisor/metadata.yml create mode 100644 deploy_carvel/supervisor/package-template.yml rename deploy_carvel/supervisor/{schema-openapi.yaml => schema-openapi.yml} (100%) diff --git a/deploy_carvel/supervisor/README.md b/deploy_carvel/supervisor/README.md index 5e1a39a9..bfd5cf46 100644 --- a/deploy_carvel/supervisor/README.md +++ b/deploy_carvel/supervisor/README.md @@ -1,3 +1,7 @@ -# README +# Pinniped Supervisor Deployment + +See [the how-to guide for details](https://pinniped.dev/docs/howto/install-supervisor/). + +## In this directory: - the ./config symlink points to /deploy/supervisor diff --git a/deploy_carvel/supervisor/build.yml b/deploy_carvel/supervisor/build.yml new file mode 100644 index 00000000..dfff2974 --- /dev/null +++ b/deploy_carvel/supervisor/build.yml @@ -0,0 +1,4 @@ +apiVersion: kbld.k14s.io/v1alpha1 +kind: Config +minimumRequiredVersion: 0.31.0 +overrides: diff --git a/deploy_carvel/supervisor/metadata.yml b/deploy_carvel/supervisor/metadata.yml new file mode 100644 index 00000000..8a9e0e81 --- /dev/null +++ b/deploy_carvel/supervisor/metadata.yml @@ -0,0 +1,10 @@ +apiVersion: data.packaging.carvel.dev/v1alpha1 +kind: PackageMetadata +metadata: + name: supervisor.pinniped.dev +spec: + displayName: "Pinniped Supervisor" + longDescription: "Pinniped supervisor allows seamless login across one or many Kubernetes clusters including AKS, EKS and GKE" + shortDescription: "Pinniped supervisor provides login capabilities" + categories: + - auth diff --git a/deploy_carvel/supervisor/package-template.yml b/deploy_carvel/supervisor/package-template.yml new file mode 100644 index 00000000..82e1cfe4 --- /dev/null +++ b/deploy_carvel/supervisor/package-template.yml @@ -0,0 +1,29 @@ +#@ 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: + image: #@ "${REPO_HOST}/packages/pinniped-supervisor:" + data.values.version + template: + - ytt: + paths: + - "config/" + - kbld: + paths: + - ".imgpkg/images.yml" + - "-" + deploy: + - kapp: {} diff --git a/deploy_carvel/supervisor/schema-openapi.yaml b/deploy_carvel/supervisor/schema-openapi.yml similarity index 100% rename from deploy_carvel/supervisor/schema-openapi.yaml rename to deploy_carvel/supervisor/schema-openapi.yml