Merge "Consume SIP scheduling labels in sub-cluster CAPI resources"

This commit is contained in:
Zuul 2021-06-16 21:03:04 +00:00 committed by Gerrit Code Review
commit 6a713bbb66
13 changed files with 75 additions and 1 deletions

View File

@ -1,7 +1,6 @@
resources:
- ../../../../../type/multi-tenant/sub-clusters/lma/workers
- ../catalogues
- metal3machinetemplate.yaml
transformers:
- ../../../../../type/multi-tenant/sub-clusters/lma/workers/replacements

View File

@ -1,2 +1,5 @@
resources:
- ../../../../sub-cluster/controlplane
patchesStrategicMerge:
- patches/metal3machinetemplate.yaml

View File

@ -0,0 +1,11 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: Metal3MachineTemplate
metadata:
name: cluster-controlplane
spec:
template:
spec:
hostSelector:
matchLabels:
sip.airshipit.org/cluster-namespace: lma-infra
sip.airshipit.org/cluster-name: lma

View File

@ -6,3 +6,4 @@ commonLabels:
patchesStrategicMerge:
- patches/machinedeployment.yaml
- patches/metal3machinetemplate.yaml

View File

@ -0,0 +1,11 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: Metal3MachineTemplate
metadata:
name: worker-1
spec:
template:
spec:
hostSelector:
matchLabels:
sip.airshipit.org/cluster-namespace: lma-infra
sip.airshipit.org/cluster-name: lma

View File

@ -1,2 +1,5 @@
resources:
- ../../../../sub-cluster/controlplane
patchesStrategicMerge:
- patches/metal3machinetemplate.yaml

View File

@ -0,0 +1,11 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: Metal3MachineTemplate
metadata:
name: cluster-controlplane
spec:
template:
spec:
hostSelector:
matchLabels:
sip.airshipit.org/cluster-namespace: wordpress-infra
sip.airshipit.org/cluster-name: wordpress

View File

@ -1,2 +1,10 @@
resources:
- ../../../../sub-cluster/workers
patchesJson6902:
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha3
kind: Metal3MachineTemplate
name: worker-1
path: patches/metal3machinetemplate.yaml

View File

@ -0,0 +1,11 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: Metal3MachineTemplate
metadata:
name: worker-1
spec:
template:
spec:
hostSelector:
matchLabels:
sip.airshipit.org/cluster-namespace: wordpress-infra
sip.airshipit.org/cluster-name: wordpress

View File

@ -2,3 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../function/k8scontrol-ha
patchesJson6902:
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha4
kind: Metal3MachineTemplate
name: cluster-controlplane
path: patches/metal3machinetemplate.yaml

View File

@ -0,0 +1,4 @@
- op: replace
path: /spec/template/spec/hostSelector/matchLabels
value:
sip.airshipit.org/node-type: ControlPlane

View File

@ -3,3 +3,4 @@ kind: Kustomization
resources:
- kubeadmconfigtemplate.yaml
- machinedeployment.yaml
- metal3machinetemplate.yaml

View File

@ -8,3 +8,6 @@ spec:
image:
url: http://10.23.24.102:80/images/data-plane.qcow2
checksum: http://10.23.24.102:80/images/data-plane.qcow2.md5sum
hostSelector:
matchLabels:
sip.airshipit.org/node-type: Worker