Skip to content

Commit

Permalink
pkg/apis/hive/v1alpha1: Drop VPCID
Browse files Browse the repository at this point in the history
Catching up with openshift/installer@6f55e673 (terraform/aws: remove
option to use an existing vpc in aws, 2018-11-11,
openshift/installer#654).
  • Loading branch information
wking committed Dec 19, 2018
1 parent e1fb618 commit 99124d7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions pkg/apis/hive/v1alpha1/installconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ type AWSPlatform struct {
// platform configuration.
DefaultMachinePlatform *AWSMachinePoolPlatform `json:"defaultMachinePlatform,omitempty"`

// VPCID specifies the vpc to associate with the cluster.
// If empty, new vpc will be created.
// +optional
VPCID string `json:"vpcID"`

// VPCCIDRBlock
// +optional
VPCCIDRBlock string `json:"vpcCIDRBlock"`
}

Expand Down
1 change: 0 additions & 1 deletion pkg/install/convertconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func GenerateInstallConfig(cd *hivev1.ClusterDeployment, sshKey, pullSecret stri
platform.AWS = &installeraws.Platform{
Region: aws.Region,
UserTags: aws.UserTags,
VPCID: aws.VPCID,
VPCCIDRBlock: aws.VPCCIDRBlock,
}
if aws.DefaultMachinePlatform != nil {
Expand Down
3 changes: 0 additions & 3 deletions pkg/install/convertconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const (
adminPassword = "adminpassword"
adminSSHKey = "adminSSH"
pullSecret = "pullSecret"
vpcID = "vpcID"
vpcCIDRBlock = "10.1.0.0/16"
awsInstanceType = "fake-aws-type"
awsRegion = "us-east-1"
Expand Down Expand Up @@ -72,7 +71,6 @@ func buildValidClusterDeployment() *hivev1.ClusterDeployment {
UserTags: map[string]string{
"foo": "bar",
},
VPCID: vpcID,
VPCCIDRBlock: vpcCIDRBlock,
DefaultMachinePlatform: &hivev1.AWSMachinePoolPlatform{
InstanceType: awsInstanceType,
Expand Down Expand Up @@ -153,7 +151,6 @@ func buildBaseExpectedInstallConfig() *installtypes.InstallConfig {
UserTags: map[string]string{
"foo": "bar",
},
VPCID: vpcID,
VPCCIDRBlock: vpcCIDRBlock,
DefaultMachinePlatform: &installawstypes.MachinePool{
InstanceType: awsInstanceType,
Expand Down

0 comments on commit 99124d7

Please sign in to comment.