Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
add VPC ID to AWSCluster CR (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3b4sd authored Apr 6, 2020
1 parent eab3621 commit 19e76a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 19e76a8

Please sign in to comment.