diff --git a/manifests/type/sub-cluster/README.md b/manifests/type/sub-cluster/README.md new file mode 100644 index 000000000..426cb46a6 --- /dev/null +++ b/manifests/type/sub-cluster/README.md @@ -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. diff --git a/manifests/type/sub-cluster/initinfra-networking/kustomization.yaml b/manifests/type/sub-cluster/initinfra-networking/kustomization.yaml new file mode 100644 index 000000000..f3e50a853 --- /dev/null +++ b/manifests/type/sub-cluster/initinfra-networking/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - ../../../../../airshipctl/manifests/composite/infra diff --git a/manifests/type/sub-cluster/initinfra/kustomization.yaml b/manifests/type/sub-cluster/initinfra/kustomization.yaml new file mode 100644 index 000000000..c36d675f3 --- /dev/null +++ b/manifests/type/sub-cluster/initinfra/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - ../../../../../airshipctl/manifests/composite/flux-helm/ diff --git a/manifests/type/sub-cluster/initinfra/replacements/kustomization.yaml b/manifests/type/sub-cluster/initinfra/replacements/kustomization.yaml new file mode 100644 index 000000000..2074f1ea8 --- /dev/null +++ b/manifests/type/sub-cluster/initinfra/replacements/kustomization.yaml @@ -0,0 +1,3 @@ +resources: + - ../../../../../../../airshipctl/manifests/function/flux/source-controller/replacements + - ../../../../../../../airshipctl/manifests/function/flux/helm-controller/replacements diff --git a/manifests/type/sub-cluster/phases/kustomization.yaml b/manifests/type/sub-cluster/phases/kustomization.yaml new file mode 100644 index 000000000..0ef6c3bf0 --- /dev/null +++ b/manifests/type/sub-cluster/phases/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - phases.yaml diff --git a/manifests/type/sub-cluster/phases/phases.yaml b/manifests/type/sub-cluster/phases/phases.yaml new file mode 100644 index 000000000..ebaf970df --- /dev/null +++ b/manifests/type/sub-cluster/phases/phases.yaml @@ -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 diff --git a/manifests/type/sub-cluster/workload/kustomization.yaml b/manifests/type/sub-cluster/workload/kustomization.yaml new file mode 100644 index 000000000..e584213cf --- /dev/null +++ b/manifests/type/sub-cluster/workload/kustomization.yaml @@ -0,0 +1 @@ +resources: []