From 19e76a870afcbc3ef796e4c2ccc6a0bc56f47066 Mon Sep 17 00:00:00 2001 From: Tim Schindler Date: Mon, 6 Apr 2020 15:49:31 +0200 Subject: [PATCH] add VPC ID to AWSCluster CR (#393) --- CHANGELOG.md | 1 + pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e47acfa04..b0a097b59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add CRD and CR documentation. - Add Spot Instances configuration. +- Add VPC ID to be exposed with the AWSCluster CR. ### Changed diff --git a/pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go b/pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go index c22f150f1..5ad21f6f6 100644 --- a/pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go +++ b/pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go @@ -178,6 +178,7 @@ func NewAWSClusterCR() *AWSCluster { // provider: // network: // cidr: 10.1.6.0/24 +// vpcID: vpc-1234567890abcdef0 // type AWSCluster struct { metav1.TypeMeta `json:",inline"` @@ -271,6 +272,8 @@ type AWSClusterStatusProvider struct { type AWSClusterStatusProviderNetwork struct { // IPv4 address block used by the tenant cluster, in CIDR notation. CIDR string `json:"cidr" yaml:"cidr"` + // VPCID contains the ID of the tenant cluster, e.g. vpc-1234567890abcdef0. + VPCID string `json:"vpcID" yaml:"vpcID"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object