Skip to content

Commit

Permalink
update ci templates attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Nov 19, 2024
1 parent dd27c47 commit a9dbe5f
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 53 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions templates/test/ci/cluster-template-prow-ci-version-ipv6.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions templates/test/ci/cluster-template-prow-custom-vnet.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/test/ci/cluster-template-prow-private.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions templates/test/ci/cluster-template-prow-spot.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ patches:
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '50.0.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
value: echo '10.0.11.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
sortOptions:
Expand Down
7 changes: 7 additions & 0 deletions templates/test/ci/prow-ci-version-ipv6/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ patches:
- path: ../prow-ipv6/patches/cluster-label-calico-ipv6.yaml
- path: patches/machine-deployment.yaml
- path: ../patches/windows-addons-disabled.yaml
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.0.11.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
sortOptions:
order: fifo
10 changes: 5 additions & 5 deletions templates/test/ci/prow-custom-vnet/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ patches:
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.13.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
value: echo '10.0.11.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/apiServerLB/frontendIPs/1/privateIP
value: 10.13.0.100
value: 10.0.11.100
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/vnet/cidrBlocks/0
value: 10.13.0.0/16
value: 10.0.0.0/8
- target:
kind: AzureCluster
patch: |-
Expand All @@ -43,7 +43,7 @@ patches:
value: []
- op: add
path: /spec/networkSpec/subnets/0/cidrBlocks/0
value: 10.13.0.0/24
value: 10.0.0.0/16
- target:
kind: AzureCluster
patch: |-
Expand All @@ -52,7 +52,7 @@ patches:
value: []
- op: add
path: /spec/networkSpec/subnets/1/cidrBlocks/0
value: 10.13.1.0/24
value: 10.1.0.0/16
- target:
kind: KubeadmConfigTemplate
patch: |-
Expand Down
10 changes: 10 additions & 0 deletions templates/test/ci/prow-private/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ patches:
- path: ../patches/uami-control-plane.yaml
- path: ../patches/cluster-label-calico.yaml
- path: ../patches/cluster-label-cloud-provider-azure.yaml
# we need to add the default private IP to the hosts file of the worker nodes
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: remove
path: /spec/template/spec/preKubeadmCommands/0
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.0.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
configMapGenerator:
- files:
- resources=../../../addons/calico.yaml
Expand Down
35 changes: 0 additions & 35 deletions templates/test/ci/prow-spot/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,6 @@ patches:
- path: ../patches/uami-control-plane.yaml
- path: ../patches/cluster-label-calico.yaml
- path: ../patches/cluster-label-cloud-provider-azure.yaml
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: add
path: /spec/template/spec/preKubeadmCommands/-
value: echo '10.12.0.100 ${CLUSTER_NAME}-${APISERVER_LB_DNS_SUFFIX}.${AZURE_LOCATION}.cloudapp.azure.com' >> /etc/hosts
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/apiServerLB/frontendIPs/1/privateIP
value: 10.12.0.100
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/vnet/cidrBlocks/0
value: 10.12.0.0/16
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/0/cidrBlocks/0
value: 10.12.0.0/24
- target:
kind: AzureCluster
patch: |-
- op: replace
path: /spec/networkSpec/subnets/1/cidrBlocks/0
value: 10.12.1.0/24
- target:
kind: KubeadmConfigTemplate
patch: |-
- op: remove
path: /spec/template/spec/preKubeadmCommands/0

sortOptions:
order: fifo

0 comments on commit a9dbe5f

Please sign in to comment.