From 05429073d10388f01eb99f683c04004e898ef456 Mon Sep 17 00:00:00 2001 From: Ratnopam Chakrabarti Date: Wed, 30 Sep 2020 20:53:25 -0400 Subject: [PATCH] Add phases for capo provider Added support for phases Change-Id: Ic567d59748df9015dd37e33e3139bd3e6905670c --- .../site/openstack-test-site/metadata.yaml | 3 +++ .../phases/infrastructure-providers.json | 18 ++++++++++++++++++ .../phases/kustomization.yaml | 11 +++++++++++ .../site/openstack-test-site/phases/plan.yaml | 11 +++++++++++ 4 files changed, 43 insertions(+) create mode 100644 manifests/site/openstack-test-site/metadata.yaml create mode 100644 manifests/site/openstack-test-site/phases/infrastructure-providers.json create mode 100644 manifests/site/openstack-test-site/phases/kustomization.yaml create mode 100644 manifests/site/openstack-test-site/phases/plan.yaml diff --git a/manifests/site/openstack-test-site/metadata.yaml b/manifests/site/openstack-test-site/metadata.yaml new file mode 100644 index 000000000..2da80764e --- /dev/null +++ b/manifests/site/openstack-test-site/metadata.yaml @@ -0,0 +1,3 @@ +phase: + path: manifests/site/openstack-test-site/phases + docEntryPointPrefix: manifests/site/openstack-test-site diff --git a/manifests/site/openstack-test-site/phases/infrastructure-providers.json b/manifests/site/openstack-test-site/phases/infrastructure-providers.json new file mode 100644 index 000000000..5f95686f0 --- /dev/null +++ b/manifests/site/openstack-test-site/phases/infrastructure-providers.json @@ -0,0 +1,18 @@ +[{ + "op": "replace", + "path": "/init-options/infrastructure-providers", + "value": ["openstack:v0.3.1"] + }, + { + "op": "replace", + "path": "/providers/0", + "value": { + "name": "openstack", + "type": "InfrastructureProvider", + "variable-substitution": true, + "versions": { + "v0.3.1": "airshipctl/manifests/function/capo/v0.3.1" + } + } + } +] \ No newline at end of file diff --git a/manifests/site/openstack-test-site/phases/kustomization.yaml b/manifests/site/openstack-test-site/phases/kustomization.yaml new file mode 100644 index 000000000..11ee36d09 --- /dev/null +++ b/manifests/site/openstack-test-site/phases/kustomization.yaml @@ -0,0 +1,11 @@ +resources: + - ../../../phases +patchesStrategicMerge: + - plan.yaml +patchesJson6902: + - target: + group: airshipit.org + version: v1alpha1 + kind: Clusterctl + name: "clusterctl_init" + path: infrastructure-providers.json \ No newline at end of file diff --git a/manifests/site/openstack-test-site/phases/plan.yaml b/manifests/site/openstack-test-site/phases/plan.yaml new file mode 100644 index 000000000..a11210f1d --- /dev/null +++ b/manifests/site/openstack-test-site/phases/plan.yaml @@ -0,0 +1,11 @@ +apiVersion: airshipit.org/v1alpha1 +kind: PhasePlan +metadata: + name: phasePlan +phaseGroups: + - name: group1 + phases: + - name: clusterctl-init-ephemeral + - name: controlplane-target + - name: workers-target + - name: clusterctl-init-target \ No newline at end of file