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:
parent
d74a908255
commit
415e5db50f
4
manifests/type/sub-cluster/README.md
Normal file
4
manifests/type/sub-cluster/README.md
Normal 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.
|
@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- ../../../../../airshipctl/manifests/composite/infra
|
2
manifests/type/sub-cluster/initinfra/kustomization.yaml
Normal file
2
manifests/type/sub-cluster/initinfra/kustomization.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- ../../../../../airshipctl/manifests/composite/flux-helm/
|
@ -0,0 +1,3 @@
|
||||
resources:
|
||||
- ../../../../../../../airshipctl/manifests/function/flux/source-controller/replacements
|
||||
- ../../../../../../../airshipctl/manifests/function/flux/helm-controller/replacements
|
2
manifests/type/sub-cluster/phases/kustomization.yaml
Normal file
2
manifests/type/sub-cluster/phases/kustomization.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- phases.yaml
|
36
manifests/type/sub-cluster/phases/phases.yaml
Normal file
36
manifests/type/sub-cluster/phases/phases.yaml
Normal 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
|
1
manifests/type/sub-cluster/workload/kustomization.yaml
Normal file
1
manifests/type/sub-cluster/workload/kustomization.yaml
Normal file
@ -0,0 +1 @@
|
||||
resources: []
|
Loading…
Reference in New Issue
Block a user