File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ func (r AwsKubernetesCluster) FromState(state *output.TfState) (*resourcespb.Kub
9292 Name : r .Args .Name ,
9393 ServiceCidr : r .Args .ServiceCidr ,
9494 VirtualNetworkId : r .Args .VirtualNetworkId ,
95+ GcpOverride : r .Args .GcpOverride ,
9596 }
9697 result .Endpoint = "dryrun"
9798 if ! flags .DryRun {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ func (r AzureKubernetesCluster) FromState(state *output.TfState) (*resourcespb.K
3131 Name : r .Args .Name ,
3232 ServiceCidr : r .Args .ServiceCidr ,
3333 VirtualNetworkId : r .Args .VirtualNetworkId ,
34+ GcpOverride : r .Args .GcpOverride ,
3435 }
3536 result .Endpoint = "dryrun"
3637 if ! flags .DryRun {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ func (r GcpKubernetesCluster) FromState(state *output.TfState) (*resourcespb.Kub
3737 Name : r .Args .Name ,
3838 ServiceCidr : r .Args .ServiceCidr ,
3939 VirtualNetworkId : r .Args .VirtualNetworkId ,
40+ GcpOverride : r .Args .GcpOverride ,
4041 }
4142 result .Endpoint = "dryrun"
4243 if ! flags .DryRun {
@@ -55,6 +56,12 @@ func (r GcpKubernetesCluster) FromState(state *output.TfState) (*resourcespb.Kub
5556 result .KubeConfigRaw = rawConfig
5657 }
5758
59+ var err error
60+ result .DefaultNodePool , err = GcpKubernetesNodePool {r .DefaultNodePool }.FromState (state )
61+ if err != nil {
62+ return nil , err
63+ }
64+
5865 return result , nil
5966}
6067
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ func (r GcpKubernetesNodePool) FromState(state *output.TfState) (*resourcespb.Ku
3434 MaxNodeCount : r .Args .MaxNodeCount ,
3535 VmSize : r .Args .VmSize ,
3636 DiskSizeGb : r .Args .DiskSizeGb ,
37- Labels : r .Args .Labels ,
38- AzureOverride : r .Args .AzureOverride ,
3937 AvailabilityZone : r .Args .AvailabilityZone ,
38+ AwsOverride : r .Args .AwsOverride ,
39+ AzureOverride : r .Args .AzureOverride ,
40+ Labels : r .Args .Labels ,
4041 }, nil
4142}
4243
You can’t perform that action at this time.
0 commit comments