Skip to content

Commit de4934b

Browse files
committed
Mark osimage and coreaddon computed
If a cluster is create without osimage and coreaddon, default value will be filled, when the cluster is updated with the original configuration file, it prompts the difference. Signed-off-by: Hongsheng Xie <hxie@vmware.com>
1 parent d86eae2 commit de4934b

File tree

1 file changed

+2
-0
lines changed
  • internal/resources/tanzukubernetescluster

1 file changed

+2
-0
lines changed

internal/resources/tanzukubernetescluster/schema.go

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ var TopologySchema = &schema.Schema{
201201
CoreAddonKey: {
202202
Type: schema.TypeList,
203203
Description: "(Repeatable Block) The core addons.",
204+
Computed: true,
204205
Optional: true,
205206
Elem: &schema.Resource{
206207
Schema: map[string]*schema.Schema{
@@ -357,6 +358,7 @@ var OSImageSchema = &schema.Schema{
357358
Type: schema.TypeList,
358359
Description: "OS image block",
359360
MaxItems: 1,
361+
Computed: true,
360362
Optional: true,
361363
Elem: &schema.Resource{
362364
Schema: map[string]*schema.Schema{

0 commit comments

Comments
 (0)