-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add VPC ID and Subnet IDs patch (#220)
Fixes #201 Fixes #200 Depends on #219 Tested manually (at-least that the values are set in `AWSCluster`) ``` apiVersion: cluster.x-k8s.io/v1beta1 kind: Cluster metadata: name: <NAME> spec: topology: variables: - name: clusterConfig value: aws: network: vpc: id: vpc-1234567890 subnets: - id: subnet-1 - id: subnet-2 - id: subnet-3 ``` This is what the `AWSCluster` looked like: ``` spec: network: subnets: - id: subnet-1 isPublic: false - id: subnet-2 isPublic: false - id: subnet-3 isPublic: false vpc: availabilityZoneSelection: Ordered availabilityZoneUsageLimit: 3 id: vpc-1234567890 region: us-west-2 ```
- Loading branch information
Showing
25 changed files
with
550 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
+++ | ||
title = "Network" | ||
+++ | ||
|
||
The network customization allows the user to specify existing infrastructure to use for the cluster. | ||
|
||
This customization will be available when the | ||
[provider-specific cluster configuration patch]({{< ref "..">}}) is included in the `ClusterClass`. | ||
|
||
## Example | ||
|
||
To specify existing AWS VPC, use the following configuration: | ||
|
||
```yaml | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: <NAME> | ||
spec: | ||
topology: | ||
variables: | ||
- name: clusterConfig | ||
value: | ||
aws: | ||
network: | ||
vpc: | ||
id: vpc-1234567890 | ||
``` | ||
|
||
To also specify existing AWS Subnets, use the following configuration: | ||
|
||
```yaml | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: <NAME> | ||
spec: | ||
topology: | ||
variables: | ||
- name: clusterConfig | ||
value: | ||
aws: | ||
network: | ||
vpc: | ||
id: vpc-1234567890 | ||
subnets: | ||
- id: subnet-1 | ||
- id: subnet-2 | ||
- id: subnet-3 | ||
``` | ||
|
||
Applying this configuration will result in the following value being set: | ||
|
||
- `AWSClusterTemplate`: | ||
|
||
- ```yaml | ||
spec: | ||
network: | ||
subnets: | ||
- id: subnet-1 | ||
- id: subnet-2 | ||
- id: subnet-3 | ||
vpc: | ||
id: vpc-1234567890 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ package calico | |
|
||
import ( | ||
"context" | ||
_ "embed" | ||
"slices" | ||
|
||
"github.com/go-logr/logr" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.