Skip to content

Commit

Permalink
make cluster's project id non-computed attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Jun 26, 2024
1 parent b3bb6c7 commit 7494031
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions internal/resource/cluster_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func (c *cluster) From(cl *console.ClusterFragment, ctx context.Context, d diag.
c.InsertedAt = types.StringPointerValue(cl.InsertedAt)
c.Name = types.StringValue(cl.Name)
c.Handle = types.StringPointerValue(cl.Handle)
c.ProjectId = common.ProjectFrom(cl.Project)
// c.DesiredVersion = c.ClusterVersionFrom(cl.Provider, cl.Version, cl.CurrentVersion)
c.Protect = types.BoolPointerValue(cl.Protect)
c.Tags = common.TagsFrom(cl.Tags, c.Tags, d)
Expand All @@ -126,7 +125,6 @@ func (c *cluster) FromCreate(cc *console.CreateCluster, ctx context.Context, d d
c.InsertedAt = types.StringPointerValue(cc.CreateCluster.InsertedAt)
c.Name = types.StringValue(cc.CreateCluster.Name)
c.Handle = types.StringPointerValue(cc.CreateCluster.Handle)
c.ProjectId = common.ProjectFrom(cc.CreateCluster.Project)
// c.DesiredVersion = c.ClusterVersionFrom(cc.CreateCluster.Provider, cc.CreateCluster.Version, cc.CreateCluster.CurrentVersion)
c.Protect = types.BoolPointerValue(cc.CreateCluster.Protect)
c.Tags = common.TagsFrom(cc.CreateCluster.Tags, c.Tags, d)
Expand Down
2 changes: 0 additions & 2 deletions internal/resource/cluster_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ func (r *clusterResource) schema() schema.Schema {
"project_id": schema.StringAttribute{
Description: "ID of the project that this cluster belongs to.",
MarkdownDescription: "ID of the project that this cluster belongs to.",
Computed: true,
Optional: true,
// PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()},
},
"detach": schema.BoolAttribute{
Description: "Determines behavior during resource destruction, if true it will detach resource instead of deleting it.",
Expand Down

0 comments on commit 7494031

Please sign in to comment.