-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from OpsLevel/member-roles
Assign members with roles
- Loading branch information
Showing
8 changed files
with
113 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Feature | ||
body: Add support for adding members/memberships to 'opslevel_team' resources | ||
time: 2023-11-09T11:14:46.698003-05:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Removed | ||
body: Remove out of date 'manager_email' field on resource 'opslevel_team' | ||
time: 2023-11-09T11:37:36.282205-05:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,16 @@ provider "opslevel" { | |
resource "opslevel_team" "foo" { | ||
name = "foo" | ||
manager_email = "[email protected]" | ||
responsibilities = "Responsible for foo frontend and backend" | ||
member { | ||
email = "[email protected]" | ||
role = "manager" | ||
} | ||
member { | ||
email = "[email protected]" | ||
role = "contributor" | ||
} | ||
} | ||
resource "opslevel_service" "foo-frontend" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,12 @@ provider "opslevel" { | |
|
||
resource "opslevel_team" "foo" { | ||
name = "foo" | ||
manager_email = "[email protected]" | ||
responsibilities = "Responsible for foo frontend and backend" | ||
|
||
member { | ||
email = "[email protected]" | ||
role = "manager" | ||
} | ||
} | ||
|
||
resource "opslevel_service" "foo-frontend" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,13 @@ data "opslevel_tier" "tier3" { | |
|
||
resource "opslevel_team" "foo" { | ||
name = "foo" | ||
manager_email = "[email protected]" | ||
responsibilities = "Responsible for foo frontend and backend" | ||
aliases = ["bar", "baz"] | ||
|
||
member { | ||
email = "[email protected]" | ||
role = "manager" | ||
} | ||
} | ||
|
||
resource "opslevel_service" "foo" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,18 @@ data "opslevel_team" "parent" { | |
|
||
resource "opslevel_team" "example" { | ||
name = "foo" | ||
manager_email = "[email protected]" | ||
members = ["[email protected]", "[email protected]"] | ||
responsibilities = "Responsible for foo frontend and backend" | ||
aliases = ["bar", "baz"] | ||
parent = data.opslevel_team.parent.id | ||
|
||
member { | ||
email = "[email protected]" | ||
role = "manager" | ||
} | ||
member { | ||
email = "[email protected]" | ||
role = "contributor" | ||
} | ||
} | ||
|
||
output "team" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule opslevel-go
updated
17 files
+3 −3 | actions_test.go | |
+1 −1 | cache_test.go | |
+6 −2 | clientGQL_test.go | |
+17 −14 | domain_test.go | |
+4 −4 | group_test.go | |
+58 −42 | team.go | |
+87 −119 | team_test.go | |
+5 −36 | testdata/templates/check.tpl | |
+6 −0 | testdata/templates/common.tpl | |
+21 −5 | testdata/templates/custom_actions.tpl | |
+9 −0 | testdata/templates/domains.tpl | |
+4 −0 | testdata/templates/filters.tpl | |
+10 −0 | testdata/templates/levels.tpl | |
+2 −2 | testdata/templates/secrets.tpl | |
+36 −16 | testdata/templates/teams.tpl | |
+18 −7 | testdata/templates/users.tpl | |
+5 −5 | user_test.go |