Skip to content

Commit e9fd533

Browse files
address changes from review
1 parent 11c347d commit e9fd533

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/resources/meshstack_workspace_group_binding/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "meshstack_workspace_group_binding" "example" {
88
}
99

1010
target_ref = {
11-
name = "my-project"
11+
name = "my-workspace"
1212
}
1313

1414
subject = {

examples/resources/meshstack_workspace_user_binding/resource.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ resource "meshstack_workspace_user_binding" "example" {
44
}
55

66
role_ref = {
7-
name = "Project Reader"
7+
name = "Workspace Reader"
88
}
99

1010
target_ref = {
11-
name = "my-project"
11+
name = "my-workspace"
1212
}
1313

1414
subject = {

internal/provider/workspace_group_binding_resource.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ func (r *workspaceGroupBindingResource) Configure(_ context.Context, req resourc
6161
// Schema defines the schema for the resource.
6262
func (r *workspaceGroupBindingResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
6363
resp.Schema = schema.Schema{
64-
MarkdownDescription: "Workspace group binding assigns a group with a specific role to a project.",
64+
MarkdownDescription: "Workspace group binding assigns a group with a specific role to a workspace.",
6565

6666
Attributes: map[string]schema.Attribute{
6767
"api_version": schema.StringAttribute{
6868
MarkdownDescription: "Workspace group binding datatype version",
6969
Computed: true,
70-
Default: stringdefault.StaticString("v3"),
70+
Default: stringdefault.StaticString("v2"),
7171
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()},
7272
},
7373

@@ -108,11 +108,11 @@ func (r *workspaceGroupBindingResource) Schema(_ context.Context, _ resource.Sch
108108
},
109109

110110
"target_ref": schema.SingleNestedAttribute{
111-
MarkdownDescription: "Selects the project to which this binding applies.",
111+
MarkdownDescription: "Selects the workspace to which this binding applies.",
112112
Required: true,
113113
Attributes: map[string]schema.Attribute{
114114
"name": schema.StringAttribute{
115-
MarkdownDescription: "Project identifier.",
115+
MarkdownDescription: "Workspace identifier.",
116116
Required: true,
117117
PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()},
118118
},

internal/provider/workspace_user_binding_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (r *workspaceUserBindingResource) Schema(_ context.Context, _ resource.Sche
6767
"api_version": schema.StringAttribute{
6868
MarkdownDescription: "Workspace user binding datatype version",
6969
Computed: true,
70-
Default: stringdefault.StaticString("v3"),
70+
Default: stringdefault.StaticString("v2"),
7171
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()},
7272
},
7373

0 commit comments

Comments
 (0)