From 8be1f1f6c20fd24006e14cb0784d79fb68a99f4a Mon Sep 17 00:00:00 2001 From: Sirajudeen Date: Mon, 21 Sep 2020 13:08:43 +0000 Subject: [PATCH] CAPD specific metadata * Created metadata specific to CAPD inheriting the global phases. Change-Id: Ib3487f91a9385cc4c47012aac44d3f3253d541e5 --- manifests/phases/phases.yaml | 12 ++++++++++++ manifests/site/docker-test-site/metadata.yaml | 3 +++ .../phases/infrastructure-providers.json | 18 ++++++++++++++++++ .../docker-test-site/phases/kustomization.yaml | 11 +++++++++++ .../site/docker-test-site/phases/plan.yaml | 11 +++++++++++ 5 files changed, 55 insertions(+) create mode 100644 manifests/site/docker-test-site/metadata.yaml create mode 100644 manifests/site/docker-test-site/phases/infrastructure-providers.json create mode 100644 manifests/site/docker-test-site/phases/kustomization.yaml create mode 100644 manifests/site/docker-test-site/phases/plan.yaml diff --git a/manifests/phases/phases.yaml b/manifests/phases/phases.yaml index 8b96d2be2..cf4a6e5e4 100644 --- a/manifests/phases/phases.yaml +++ b/manifests/phases/phases.yaml @@ -48,6 +48,18 @@ config: --- apiVersion: airshipit.org/v1alpha1 kind: Phase +metadata: + name: controlplane-target + clusterName: target-cluster +config: + executorRef: + apiVersion: airshipit.org/v1alpha1 + kind: KubernetesApply + name: kubernetes-apply + documentEntryPoint: target/controlplane +--- +apiVersion: airshipit.org/v1alpha1 +kind: Phase metadata: name: workers-target clusterName: target-cluster diff --git a/manifests/site/docker-test-site/metadata.yaml b/manifests/site/docker-test-site/metadata.yaml new file mode 100644 index 000000000..902aeb0e2 --- /dev/null +++ b/manifests/site/docker-test-site/metadata.yaml @@ -0,0 +1,3 @@ +phase: + path: manifests/site/docker-test-site/phases + docEntryPointPrefix: manifests/site/docker-test-site diff --git a/manifests/site/docker-test-site/phases/infrastructure-providers.json b/manifests/site/docker-test-site/phases/infrastructure-providers.json new file mode 100644 index 000000000..dec37cc24 --- /dev/null +++ b/manifests/site/docker-test-site/phases/infrastructure-providers.json @@ -0,0 +1,18 @@ +[{ + "op": "replace", + "path": "/init-options/infrastructure-providers", + "value": ["docker:v0.3.11"] + }, + { + "op": "replace", + "path": "/providers/0", + "value": { + "name": "docker", + "type": "InfrastructureProvider", + "variable-substitution": true, + "versions": { + "v0.3.11": "airshipctl/manifests/function/capd/v0.3.11" + } + } + } +] diff --git a/manifests/site/docker-test-site/phases/kustomization.yaml b/manifests/site/docker-test-site/phases/kustomization.yaml new file mode 100644 index 000000000..3890dab2c --- /dev/null +++ b/manifests/site/docker-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 diff --git a/manifests/site/docker-test-site/phases/plan.yaml b/manifests/site/docker-test-site/phases/plan.yaml new file mode 100644 index 000000000..116cc8b3f --- /dev/null +++ b/manifests/site/docker-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