Merge "Azure provider integration - Phase Run support"

This commit is contained in:
Zuul 2020-11-23 18:33:02 +00:00 committed by Gerrit Code Review
commit 7d52fa392f
11 changed files with 114 additions and 1 deletions

View File

@ -0,0 +1,6 @@
[
{ "op": "replace","path": "/spec/subscriptionID","value": "cb3e23d3-b697-4c4f-a1a7-529e308691e4" },
{ "op": "replace","path": "/spec/resourceGroup","value": "azure-target" },
{ "op": "replace","path": "/spec/networkSpec/vnet/name","value": "azure-target-vnet" },
{ "op": "replace","path": "/spec/location","value": "centralus" }
]

View File

@ -0,0 +1,24 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/k8scontrol-capz/v0.4.9
patchesJson6902:
- target:
group: controlplane.cluster.x-k8s.io
version: v1alpha3
kind: KubeadmControlPlane
name: "target-cluster-control-plane"
path: machine_count.json
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha3
kind: AzureCluster
name: "target-cluster"
path: cluster.json
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha3
kind: AzureMachineTemplate
name: "target-cluster-control-plane"
path: machine_template.json

View File

@ -0,0 +1,3 @@
[
{ "op": "replace","path": "/spec/replicas","value": 1 }
]

View File

@ -0,0 +1,4 @@
[
{ "op": "replace","path": "/spec/template/spec/location","value": "centralus" },
{ "op": "replace","path": "/spec/template/spec/vmSize","value": "Standard_D2s_v3" }
]

View File

@ -0,0 +1,18 @@
[{
"op": "replace",
"path": "/init-options/infrastructure-providers",
"value": ["azure:v0.4.9"]
},
{
"op": "replace",
"path": "/providers/0",
"value": {
"name": "azure",
"type": "InfrastructureProvider",
"variable-substitution": true,
"versions": {
"v0.4.9": "airshipctl/manifests/function/capz/v0.4.9"
}
}
}
]

View File

@ -0,0 +1,11 @@
resources:
- ../../../phases
patchesStrategicMerge:
- plan.yaml
patchesJson6902:
- target:
group: airshipit.org
version: v1alpha1
kind: Clusterctl
name: "clusterctl_init"
path: infrastructure-providers.json

View File

@ -0,0 +1,19 @@
apiVersion: airshipit.org/v1alpha1
kind: PhasePlan
metadata:
name: phasePlan
phaseGroups:
- name: group1
phases:
- name: clusterctl-init-ephemeral
- name: controlplane-ephemeral
- name: initinfra-target
- name: clusterctl-init-target
- name: clusterctl-move
- name: workers-target
---
apiVersion: airshipit.org/v1alpha1
kind: Clusterctl
metadata:
name: clusterctl_init
env-vars: true

View File

@ -1,4 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../shared/clusterctl
- ../../../../function/cni/calico-capz
commonLabels:
airshipit.org/stage: initinfra

View File

@ -0,0 +1,18 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../function/workers-capz/v0.4.9
patchesJson6902:
- target:
group: cluster.x-k8s.io
version: v1alpha3
kind: MachineDeployment
name: target-cluster-md-0
path: machine_count.json
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha3
kind: AzureMachineTemplate
name: target-cluster-md-0
path: machine_template.json

View File

@ -0,0 +1,3 @@
[
{ "op": "replace","path": "/spec/replicas","value": 3 }
]

View File

@ -0,0 +1,5 @@
[
{ "op": "replace","path": "/spec/template/spec/location","value": "centralus" },
{ "op": "replace","path": "/spec/template/spec/vmSize","value": "Standard_B2s" },
{ "op": "add", "path": "/spec/template/spec/dataDisks", "value": [{"diskSizeGB": 256, "lun": 0, "nameSuffix": "datadisk"}]}
]