-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
153 additions
and
1 deletion.
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,50 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "quay_organization_team_permission Data Source - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_organization_team_permission (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
resource "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
role = "member" | ||
} | ||
data "quay_organization_team_permission" "permission" { | ||
orgname = quay_organization.org.name | ||
reponame = quay_repository.repo.name | ||
teamname = quay_organization_team.team.name | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `orgname` (String) Organization name | ||
- `reponame` (String) Repository name | ||
- `teamname` (String) Team name | ||
|
||
### Read-Only | ||
|
||
- `permission` (String) Team permission |
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
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,57 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "quay_organization_team_permission Resource - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_organization_team_permission (Resource) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
resource "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
role = "member" | ||
} | ||
resource "quay_organization_team_permission" "permission" { | ||
orgname = quay_organization.org.name | ||
reponame = quay_repository.repo.name | ||
teamname = quay_organization_team.team.name | ||
permission = "read" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `orgname` (String) Organization name | ||
- `permission` (String) Team permission. Should be read, write or admin. | ||
- `reponame` (String) Repository name | ||
- `teamname` (String) Team name | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# An organization team permission can be imported using the corresponding organization, repository and team name. | ||
terraform import quay_organization_team_permission.permission org repo team | ||
``` |
21 changes: 21 additions & 0 deletions
21
examples/data-sources/quay_organization_team_permission/data-source.tf
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,21 @@ | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
|
||
resource "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
role = "member" | ||
} | ||
|
||
data "quay_organization_team_permission" "permission" { | ||
orgname = quay_organization.org.name | ||
reponame = quay_repository.repo.name | ||
teamname = quay_organization_team.team.name | ||
} |
2 changes: 2 additions & 0 deletions
2
examples/resources/quay_organization_team_permission/import.sh
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,2 @@ | ||
# An organization team permission can be imported using the corresponding organization, repository and team name. | ||
terraform import quay_organization_team_permission.permission org repo team |
22 changes: 22 additions & 0 deletions
22
examples/resources/quay_organization_team_permission/resource.tf
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,22 @@ | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
|
||
resource "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
role = "member" | ||
} | ||
|
||
resource "quay_organization_team_permission" "permission" { | ||
orgname = quay_organization.org.name | ||
reponame = quay_repository.repo.name | ||
teamname = quay_organization_team.team.name | ||
permission = "read" | ||
} |