Skip to content

Commit

Permalink
Fixes for patches
Browse files Browse the repository at this point in the history
  • Loading branch information
sedefsavas committed Sep 27, 2022
1 parent 55a78fa commit 342dd42
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/awscluster_conversion.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Kubernetes Authors.
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/awsidentity_conversion.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Kubernetes Authors.
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/awsmachine_conversion.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 The Kubernetes Authors.
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions test/e2e/data/e2e_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ providers:
- sourcePath: "./infrastructure-aws/generated/cluster-template-nested-multitenancy-clusterclass.yaml"
- sourcePath: "./infrastructure-aws/kustomize_sources/nested-multitenancy-clusterclass/clusterclass-multi-tenancy.yaml"
- sourcePath: "./infrastructure-aws/generated/cluster-template-self-hosted-clusterclass.yaml"
- sourcePath: "./infrastructure-aws/generated/cluster-template-external-vpc-clusterclass.yaml"
- sourcePath: "./shared/v1beta2_provider/metadata.yaml"
- sourcePath: "./infrastructure-aws/generated/cluster-template-ignition.yaml"
replacements:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
value:
name: fdForBYOSubnets
value: "us-west-2a"
- op: replace
path: /spec/topology/workers/machineDeployments/0/failureDomain
value: "us-west-2a"
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,11 @@ spec:
valueFrom:
variable: vpcID
- op: add
path: "/spec/template/spec/network/subnets/0/id"
path: /spec/template/spec/network/subnets
valueFrom:
variable: publicSubnetID
- op: add
path: "/spec/template/spec/network/subnets/1/id"
valueFrom:
variable: privateSubnetID
template: |
- id: "{{ .publicSubnetID }}"
- id: "{{ .privateSubnetID }}"
- name: awsMachineTemplateControlPlaneForBYO
enabledIf: '{{ eq .byoInfra "true" }}'
definitions:
Expand All @@ -274,7 +272,7 @@ spec:
matchResources:
controlPlane: true
jsonPatches:
- op: replace
- op: add
path: "/spec/template/spec/failureDomain"
valueFrom:
variable: fdForBYOSubnets
Expand All @@ -289,7 +287,7 @@ spec:
names:
- default-worker
jsonPatches:
- op: replace
- op: add
path: "/spec/template/spec/failureDomain"
valueFrom:
variable: fdForBYOSubnets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ var _ = ginkgo.Context("[unmanaged] [functional] [ClusterClass]", func() {

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

0 comments on commit 342dd42

Please sign in to comment.