Skip to content

Conversation

@ecmadao
Copy link
Collaborator

@ecmadao ecmadao commented Jan 8, 2025

Support configuring the workspace profile setting, thus we can support the whole workflow for users/members/gitops without the Bytebase UI. For example:

resource "bytebase_setting" "workspace_profile" {
  name = "bb.workspace.profile"

  workspace_profile {
    external_url = "https://bytebase.example.com"
    domains      = ["bytebase.com"]
  }
}

resource "bytebase_group" "developers" {
  depends_on = [
    bytebase_user.workspace_dba,
    bytebase_user.project_developer,
    # group requires the domain.
    bytebase_setting.workspace_profile
  ]

  email = "[email protected]"
  title = "Bytebase Developers"

  members {
    member = format("users/%s", bytebase_user.workspace_dba.email)
    role   = "OWNER"
  }

  members {
    member = format("users/%s", bytebase_user.project_developer.email)
    role   = "MEMBER"
  }
}

@ecmadao ecmadao requested a review from d-bytebase January 8, 2025 08:46
Copy link
Contributor

@d-bytebase d-bytebase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool!

@d-bytebase d-bytebase merged commit beabcce into main Jan 8, 2025
4 checks passed
@d-bytebase d-bytebase deleted the chore/BYT-6743 branch January 8, 2025 08:58
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.

3 participants