Merge "Implement gating type"

This commit is contained in:
Zuul 2021-09-16 20:16:22 +00:00 committed by Gerrit Code Review
commit ec48d6cba4
28 changed files with 113 additions and 44 deletions

View File

@ -1,16 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# TODO: these two should move up to type level in the future
- ../../../../../function/hostgenerator-m3
- ../../../../../function/hardwareprofile-example
- ../../../../../type/gating/ephemeral/bootstrap/hostgenerator
- ../../catalogues
- host-generation.yaml
transformers:
# TODO: these two should move up to type level in the future
- ../../../../../function/hostgenerator-m3/replacements
- ../../../../../function/hardwareprofile-example/replacements
- ../../../../../type/gating/ephemeral/bootstrap/hostgenerator/replacements
# NOTE We can not use patchesStrategicMerge directive since Strategic Merge
# plugin has to be executed once all replacements has been done. Therefore
# we need to load Strategic Merge plugin as an external plugin

View File

@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- ../../../../function/ephemeral
- ../../../../type/gating/ephemeral/bootstrap
- ../catalogues
namespace: target-infra
@ -14,4 +14,4 @@ patchesStrategicMerge:
- baremetalhost.yaml
transformers:
- ../../../../function/ephemeral/replacements
- ../../../../type/gating/ephemeral/bootstrap/replacements

View File

@ -3,11 +3,11 @@ kind: Kustomization
resources:
# TODO (dukov) It's recocommended to upload BareMetalHost objects separately
# otherwise nodes will hang in 'registering' state for quite a long time
- ../../../../function/k8scontrol
- ../../../../type/gating/ephemeral/controlplane
- ../../target/catalogues # NOTE: use target networking for this phase
- nodes
namespace: target-infra
transformers:
- ../../../../function/k8scontrol/replacements
- ../../../../type/gating/ephemeral/controlplane/replacements

View File

@ -1,9 +1,6 @@
resources:
- ../catalogues
- ../../../../composite/infra/
commonLabels:
airshipit.org/stage: initinfra
- ../../../../type/gating/ephemeral/initinfra-networking
transformers:
- ../../../../composite/infra/replacements
- ../../../../type/gating/ephemeral/initinfra-networking/replacements

View File

@ -1,11 +1,6 @@
resources:
- ../../../../function/baremetal-operator
- ../../../../function/hwcc
- ../../../../function/clusterctl
- ../../../../type/gating/ephemeral/initinfra
- ../catalogues
commonLabels:
airshipit.org/stage: initinfra
transformers:
- ../../../../function/baremetal-operator/replacements
- ../../../../type/gating/ephemeral/initinfra/replacements

View File

@ -3,9 +3,9 @@ kind: Kustomization
resources:
# TODO (dukov) It's recocommended to upload BareMetalHost objects separately
# otherwise nodes will hang in 'registering' state for quite a long time
- nodes
- ../../../../function/k8scontrol
- ../../../../type/gating/target/controlplane
- ../catalogues
- nodes
namespace: target-infra
@ -13,4 +13,4 @@ commonLabels:
airshipit.org/stage: initinfra
transformers:
- ../../../../function/k8scontrol/replacements
- ../../../../type/gating/target/controlplane/replacements

View File

@ -1,11 +1,6 @@
resources:
- ../catalogues
- ../../../../composite/infra/
- namespace.yaml
commonLabels:
airshipit.org/stage: initinfra
- ../../../../type/gating/target/initinfra-networking
transformers:
- ../../../../composite/infra/replacements
- ../../../../type/gating/target/initinfra-networking/replacements

View File

@ -1,13 +1,6 @@
resources:
- ../../../../function/baremetal-operator
- ../../../../function/hwcc
- ../../../../function/clusterctl
- ../../../../composite/flux-helm
- ../../../../type/gating/target/initinfra
- ../catalogues
commonLabels:
airshipit.org/stage: initinfra
transformers:
- ../../../../function/baremetal-operator/replacements
- ../../../../composite/flux-helm/replacements
- ../../../../type/gating/target/initinfra/replacements

View File

@ -2,11 +2,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../catalogues
- ../../../../function/workers-capm3/
- ../../../../type/gating/target/workers
- nodes
namespace: target-infra
transformers:
- ../../../../function/workers-capm3/replacements
- ../../../../function/workers-capm3/replacements-secrets
- ../../../../type/gating/target/workers/replacements

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/hostgenerator-m3
- ../../../../../function/hardwareprofile-example

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../../function/hostgenerator-m3/replacements
- ../../../../../../function/hardwareprofile-example/replacements

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/ephemeral

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/ephemeral/replacements

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/k8scontrol

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/k8scontrol/replacements

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../composite/infra/
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../composite/infra/replacements

View File

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/baremetal-operator
- ../../../../function/hwcc
- ../../../../function/clusterctl
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/baremetal-operator/replacements

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/k8scontrol

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/k8scontrol/replacements

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../composite/infra/
- namespace.yaml
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../composite/infra/replacements

View File

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/baremetal-operator
- ../../../../function/hwcc
- ../../../../function/clusterctl
- ../../../../composite/flux-helm
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/baremetal-operator/replacements
- ../../../../../composite/flux-helm/replacements

View File

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/workers-capm3/

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../../function/workers-capm3/replacements
- ../../../../../function/workers-capm3/replacements-secrets