Skip to content

Commit 342dd42

Browse files
committed
Fixes for patches
1 parent 55a78fa commit 342dd42

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

api/v1beta1/awscluster_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2021 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

api/v1beta1/awsidentity_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2021 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

api/v1beta1/awsmachine_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2021 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

test/e2e/data/e2e_conf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ providers:
122122
- sourcePath: "./infrastructure-aws/generated/cluster-template-nested-multitenancy-clusterclass.yaml"
123123
- sourcePath: "./infrastructure-aws/kustomize_sources/nested-multitenancy-clusterclass/clusterclass-multi-tenancy.yaml"
124124
- sourcePath: "./infrastructure-aws/generated/cluster-template-self-hosted-clusterclass.yaml"
125+
- sourcePath: "./infrastructure-aws/generated/cluster-template-external-vpc-clusterclass.yaml"
125126
- sourcePath: "./shared/v1beta2_provider/metadata.yaml"
126127
- sourcePath: "./infrastructure-aws/generated/cluster-template-ignition.yaml"
127128
replacements:

test/e2e/data/infrastructure-aws/kustomize_sources/external-vpc-clusterclass/byo-infra-variables.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@
2323
value:
2424
name: fdForBYOSubnets
2525
value: "us-west-2a"
26+
- op: replace
27+
path: /spec/topology/workers/machineDeployments/0/failureDomain
28+
value: "us-west-2a"

test/e2e/data/infrastructure-aws/kustomize_sources/topology/clusterclass-ci-default.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,11 @@ spec:
258258
valueFrom:
259259
variable: vpcID
260260
- op: add
261-
path: "/spec/template/spec/network/subnets/0/id"
261+
path: /spec/template/spec/network/subnets
262262
valueFrom:
263-
variable: publicSubnetID
264-
- op: add
265-
path: "/spec/template/spec/network/subnets/1/id"
266-
valueFrom:
267-
variable: privateSubnetID
263+
template: |
264+
- id: "{{ .publicSubnetID }}"
265+
- id: "{{ .privateSubnetID }}"
268266
- name: awsMachineTemplateControlPlaneForBYO
269267
enabledIf: '{{ eq .byoInfra "true" }}'
270268
definitions:
@@ -274,7 +272,7 @@ spec:
274272
matchResources:
275273
controlPlane: true
276274
jsonPatches:
277-
- op: replace
275+
- op: add
278276
path: "/spec/template/spec/failureDomain"
279277
valueFrom:
280278
variable: fdForBYOSubnets
@@ -289,7 +287,7 @@ spec:
289287
names:
290288
- default-worker
291289
jsonPatches:
292-
- op: replace
290+
- op: add
293291
path: "/spec/template/spec/failureDomain"
294292
valueFrom:
295293
variable: fdForBYOSubnets

test/e2e/suites/unmanaged/unmanaged_functional_clusterclass_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var _ = ginkgo.Context("[unmanaged] [functional] [ClusterClass]", func() {
128128

129129
// This test creates a workload cluster using an externally managed VPC and subnets. CAPA is still handling security group
130130
// creation for the cluster. All applicable resources are restricted to us-west-2a for simplicity.
131-
ginkgo.Describe("Workload cluster with external infrastructure", func() {
131+
ginkgo.Describe("Workload cluster with external infrastructure [ClusterClass]", func() {
132132
var namespace *corev1.Namespace
133133
var requiredResources *shared.TestResource
134134
specName := "functional-test-extinfra-clusterclass"

0 commit comments

Comments
 (0)