Skip to content

Commit 6fdfb5f

Browse files
wip - isolating e2e
Signed-off-by: Danil-Grigorev <[email protected]>
1 parent 7a64510 commit 6fdfb5f

14 files changed

+301
-67
lines changed

azure/scope/cluster.go

-4
Original file line numberDiff line numberDiff line change
@@ -1031,13 +1031,10 @@ func (s *ClusterScope) SetControlPlaneSecurityRules() {
10311031
subnet := s.ControlPlaneSubnet()
10321032

10331033
if subnet.SecurityGroup.SecurityRules == nil {
1034-
subnet := s.ControlPlaneSubnet()
1035-
10361034
s.AzureCluster.Spec.NetworkSpec.UpdateControlPlaneSubnet(subnet)
10371035
}
10381036

10391037
if subnet.GetSecurityRuleByDestination("22") == nil {
1040-
subnet := s.ControlPlaneSubnet()
10411038
subnet.SecurityGroup.SecurityRules = append(s.ControlPlaneSubnet().SecurityGroup.SecurityRules,
10421039
infrav1.SecurityRule{
10431040
Name: "allow_ssh",
@@ -1057,7 +1054,6 @@ func (s *ClusterScope) SetControlPlaneSecurityRules() {
10571054

10581055
port := strconv.Itoa(int(s.APIServerPort()))
10591056
if subnet.GetSecurityRuleByDestination(port) == nil {
1060-
subnet := s.ControlPlaneSubnet()
10611057
subnet.SecurityGroup.SecurityRules = append(s.ControlPlaneSubnet().SecurityGroup.SecurityRules, infrav1.SecurityRule{
10621058
Name: "allow_apiserver",
10631059
Description: "Allow K8s API Server",

templates/cluster-template-clusterclass-rke2.yaml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/flavors/clusterclass-rke2/azure-cluster-template.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
kind: AzureClusterIdentity
1111
name: ${CLUSTER_IDENTITY_NAME}
1212
networkSpec:
13-
additionalAPIServerLBPorts:
13+
additionalControlPlaneLBPorts:
1414
- name: rke2
1515
port: 9345
1616
subnets:
@@ -29,4 +29,6 @@ spec:
2929
sourcePorts: "*"
3030
action: "Allow"
3131
- name: node-subnet
32+
natGateway:
33+
name: node-natgateway
3234
role: node

templates/flavors/clusterclass-rke2/azure-machine-template-controlplane.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ spec:
88
osDisk:
99
diskSizeGB: 128
1010
osType: Linux
11-
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}

templates/flavors/clusterclass-rke2/azure-machine-template-worker.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ spec:
88
osDisk:
99
diskSizeGB: 30
1010
osType: Linux
11-
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}

templates/test/ci/cluster-template-prow-clusterclass-ci-rke2.yaml

+125-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-topology-rke2.yaml

+47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: addons.cluster.x-k8s.io/v1alpha1
2+
kind: HelmChartProxy
3+
metadata:
4+
name: cloud-provider-azure-chart
5+
spec:
6+
valuesTemplate: |
7+
infra:
8+
clusterName: {{ .Cluster.metadata.name }}
9+
cloudControllerManager:
10+
clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }}
11+
logVerbosity: 4
12+
nodeSelector:
13+
node-role.kubernetes.io/control-plane: "true"

templates/test/ci/prow-clusterclass-ci-rke2/kustomization.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ resources:
66
- ../../../flavors/clusterclass-rke2/rke2-controlplane-template.yaml
77
- ../../../flavors/clusterclass-rke2/azure-cluster-template.yaml
88
- ../../../flavors/clusterclass-rke2/azure-machine-template-controlplane.yaml
9+
- ../../../flavors/clusterclass-rke2/azure-machine-template-worker.yaml
910
- rke2-config-template.yaml
1011
- ../../../azure-cluster-identity
12+
- ../../../addons/cluster-api-helm/calico.yaml
13+
- ../../../addons/cluster-api-helm/cloud-provider-azure.yaml
1114
patches:
1215
- path: patches.yaml
1316
- path: variables.yaml
17+
- path: ccm-patch.yaml
1418

1519
sortOptions:
1620
order: fifo

0 commit comments

Comments
 (0)