Skip to content

Commit 4c41001

Browse files
Merge pull request #43 from platform9/private/srinivas/apiserverflags-fix
Prevent terraform from failing when ApiServerFlags are set
2 parents c329039 + ff19f75 commit 4c41001

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/provider/cluster_resource.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,10 @@ func createCreateClusterRequest(ctx context.Context, clusterModel *resource_clus
15861586
return createClusterReq, diags
15871587
}
15881588
createClusterReq.CloudProperties = cloudProperties
1589+
// It looks like the cloudProperties field is getting embedded under
1590+
// another cloudProperties field causing terraform to complain about inconsitency
1591+
// This fix prevents that. We might have to relook at the whole cloudProperties section later
1592+
createClusterReq.ApiServerFlags = cloudProperties.APIServerFlags
15891593
}
15901594

15911595
createClusterReq.EtcdBackup, diags = getEtcdBackupConfig(ctx, clusterModel.EtcdBackup)

0 commit comments

Comments
 (0)