Add sub-cluster type

This change adds a new type, sub-cluster, that serves as an abstract
type or template that sub-cluster definitions implement.

Relates #107

Signed-off-by: Drew Walters <andrew.walters@att.com>
Change-Id: Id2dd45cefd345afa1e656fba64e05f17e28b59e6
This commit is contained in:
Drew Walters 2021-03-15 19:02:13 +00:00
parent d74a908255
commit 415e5db50f
7 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Sub-cluster Type
The sub-cluster type is an abstract type not intended for site inheritance.
Instead, it serves as a template for other types to define sub-clusters.

View File

@ -0,0 +1,2 @@
resources:
- ../../../../../airshipctl/manifests/composite/infra

View File

@ -0,0 +1,2 @@
resources:
- ../../../../../airshipctl/manifests/composite/flux-helm/

View File

@ -0,0 +1,3 @@
resources:
- ../../../../../../../airshipctl/manifests/function/flux/source-controller/replacements
- ../../../../../../../airshipctl/manifests/function/flux/helm-controller/replacements

View File

@ -0,0 +1,2 @@
resources:
- phases.yaml

View File

@ -0,0 +1,36 @@
---
apiVersion: airshipit.org/v1alpha1
kind: Phase
metadata:
name: initinfra
clusterName: sub-cluster
config:
executorRef:
apiVersion: airshipit.org/v1alpha1
kind: KubernetesApply
name: kubernetes-apply
documentEntryPoint: sub-clusters/sub-cluster/initinfra
---
apiVersion: airshipit.org/v1alpha1
kind: Phase
metadata:
name: initinfra-networking
clusterName: sub-cluster
config:
executorRef:
apiVersion: airshipit.org/v1alpha1
kind: KubernetesApply
name: kubernetes-apply
documentEntryPoint: sub-clusters/sub-cluster/initinfra-networking
---
apiVersion: airshipit.org/v1alpha1
kind: Phase
metadata:
name: workload
clusterName: sub-cluster
config:
executorRef:
apiVersion: airshipit.org/v1alpha1
kind: KubernetesApply
name: kubernetes-apply
documentEntryPoint: sub-clusters/sub-cluster/workload

View File

@ -0,0 +1 @@
resources: []