Skip to content

Commit

Permalink
fix: have color computed and optional (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb authored Oct 10, 2024
1 parent 74c99b7 commit 4f1e064
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/data-sources/biganimal_cluster/data-source.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ output "volume_snapshot_backup" {
output "service_name" {
value = data.biganimal_cluster.this.service_name
}

output "tags" {
value = data.biganimal_cluster.this.tags
}
1 change: 1 addition & 0 deletions pkg/provider/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ func (c *clusterResource) Schema(ctx context.Context, req resource.SchemaRequest
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/resource_fareplica.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ func (r *FAReplicaResource) Schema(ctx context.Context, req resource.SchemaReque
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/resource_pgd.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func PgdSchema(ctx context.Context) schema.Schema {
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (p projectResource) Schema(ctx context.Context, req resource.SchemaRequest,
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/resource_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func (r regionResource) Schema(ctx context.Context, req resource.SchemaRequest,
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down
1 change: 1 addition & 0 deletions pkg/provider/resource_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (tf *tagResource) Schema(ctx context.Context, req resource.SchemaRequest, r
},
"color": schema.StringAttribute{
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Expand Down

0 comments on commit 4f1e064

Please sign in to comment.