From 8005b172a507ca2f765545ef94291132ef1afb8a Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Sun, 16 Jul 2023 14:52:41 +0200 Subject: [PATCH] feat: Include manifests in version endpoint --- ansible/vars/metacluster.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/ansible/vars/metacluster.yml b/ansible/vars/metacluster.yml index 4dcf8eb..275f1b6 100644 --- a/ansible/vars/metacluster.yml +++ b/ansible/vars/metacluster.yml @@ -177,7 +177,7 @@ components: json-server: helm: - version: v0.8.2 + version: v0.8.3 chart: spamasaurus/json-server parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /' chart_values: !unsafe | @@ -196,8 +196,25 @@ components: "components": [ { "id": 0, "name": "cluster-api", - "management": { "foo": "bar" }, - "workload": { "foo": "bar" } + "type": "manifest", + "versions": { + "management": { + "base": "{{ components.clusterapi.management.version.base }}", + "cert_manager": "{{ components.clusterapi.management.version.cert_manager }}", + "infrastructure_vsphere": "{{ components.clusterapi.management.version.infrastructure_vsphere }}", + "ipam_incluster": "{{ components.clusterapi.management.version.ipam_incluster }}", + "cpi_vsphere": "{{ components.clusterapi.management.version.cpi_vsphere }}" + }, + "workload": { + "calico": "{{ components.clusterapi.workload.version.calico }}", + "k8s": "{{ components.clusterapi.workload.version.k8s }}" + } + } + }, + { "id": 1, + "name": "kube-vip", + "type": "manifest", + "version": "{{ components.kubevip.version }}" } ], "healthz": { "status": "running" }