Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIRE-838 - Support for managing organization groups #427

Merged
merged 10 commits into from
Dec 9, 2024

Conversation

oskarwojciski
Copy link
Member

Add support for managing organization groups (only for organizations with rbacv2 enabled)

@oskarwojciski oskarwojciski requested a review from a team as a code owner November 28, 2024 09:35
@radekska
Copy link
Contributor

radekska commented Dec 3, 2024

Does the resource support service account as members as well?
I'm trying to do the following:

resource "castai_organization_group" "first_group" {
  organization_id = data.castai_organization.test.id
  name            = "first-group"
  description     = "A description of the first group."

  members {
    member {
      kind  = "user"
      id    = "2feb1867-c071-4a14-adcf-f6cec373a229"
      email = "[email protected]"
    }
    member {
      kind  = "service_account"
      id    = "25f88e1a-037f-4930-8dd6-363533514b0d"
      email = "25f88e1a-037f-4930-8dd6-363533514b0d@a21389e6-852c-40d5-99c7-1e2fc7971f7e.iam.castserviceaccount.local"
    }
  }
}

And getting:

╷
│ Error: update group: expected status code 200, received: status=400 body={"message":"invalid request", "fieldViolations":[{"field":"defi
nition.members.1", "description":"invalid member"}]}
│ 
│   with castai_organization_group.first_group,
│   on main.tf line 17, in resource "castai_organization_group" "first_group":
│   17: resource "castai_organization_group" "first_group" {
│ 

Org ID: 21389e6-852c-40d5-99c7-1e2fc7971f7e
Env: prod-master :kek:

@oskarwojciski oskarwojciski merged commit 1cd3c96 into master Dec 9, 2024
10 checks passed
@oskarwojciski oskarwojciski deleted the WIRE-838-manage-organization-groups branch December 9, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants