Skip to content

Commit 188b1c0

Browse files
committed
use namespace_id
1 parent fcd8080 commit 188b1c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/provider/service_accounts_data_source.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ServiceAccountsDataSource struct {
2323
}
2424

2525
type ServiceAccountsDataSourceModel struct {
26-
Namespace types.String `tfsdk:"namespace"`
26+
NamespaceID types.String `tfsdk:"namespace_id"`
2727
ServiceAccounts []ServiceAccountModel `tfsdk:"service_accounts"`
2828
}
2929

@@ -35,7 +35,7 @@ func (d *ServiceAccountsDataSource) Schema(_ context.Context, _ datasource.Schem
3535
resp.Schema = schema.Schema{
3636
MarkdownDescription: "List all service accounts",
3737
Attributes: map[string]schema.Attribute{
38-
"namespace": schema.StringAttribute{
38+
"namespace_id": schema.StringAttribute{
3939
Optional: true,
4040
Description: "Namespace of the service accounts.",
4141
},
@@ -100,7 +100,7 @@ func (d *ServiceAccountsDataSource) Read(ctx context.Context, req datasource.Rea
100100
}
101101

102102
listReq := &pb.ListPomeriumServiceAccountsRequest{
103-
Namespace: data.Namespace.ValueString(),
103+
Namespace: data.NamespaceID.ValueString(),
104104
}
105105
serviceAccountsResp, err := d.client.PomeriumServiceAccountService.ListPomeriumServiceAccounts(ctx, listReq)
106106
if err != nil {

0 commit comments

Comments
 (0)