Skip to content

Commit

Permalink
pkg/asset/manifests/infrastructure: Set status.platformStatus.aws.region
Browse files Browse the repository at this point in the history
  • Loading branch information
wking committed May 7, 2019
1 parent 2519e76 commit 7ab8c3d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/asset/manifests/infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,22 @@ func (i *Infrastructure) Generate(dependencies asset.Parents) error {
Status: configv1.InfrastructureStatus{
InfrastructureName: clusterID.InfraID,
Platform: platform,
PlatformStatus: &configv1.PlatformStatus{
Type: platform,
},
APIServerURL: getInternalAPIServerURL(installConfig.Config),
APIServerInternalURL: getInternalAPIServerURL(installConfig.Config),
EtcdDiscoveryDomain: getEtcdDiscoveryDomain(installConfig.Config),
},
}

switch installConfig.Config.Platform.Name() {
case aws.Name:
config.Status.PlatformStatus.AWS = &configv1.AWSPlatformStatus{
Region: installconfig.Config.Platform.AWS.Region,
}
}

if cloudproviderconfig.ConfigMap != nil {
// set the configmap reference.
config.Spec.CloudConfig = configv1.ConfigMapFileReference{Name: cloudproviderconfig.ConfigMap.Name, Key: cloudProviderConfigDataKey}
Expand Down

0 comments on commit 7ab8c3d

Please sign in to comment.