diff --git a/docs/resources/robot_account.md b/docs/resources/robot_account.md index d1188ef..ea5cc8e 100644 --- a/docs/resources/robot_account.md +++ b/docs/resources/robot_account.md @@ -35,14 +35,6 @@ resource "harbor_robot_account" "system" { action = "push" resource = "repository" } - access { - action = "read" - resource = "helm-chart" - } - access { - action = "read" - resource = "helm-chart-version" - } kind = "project" namespace = harbor_project.main.name } @@ -61,7 +53,6 @@ The above example, creates a system level robot account with permissions to - permission to create labels on system level - pull repository across all projects - push repository to project "my-project-name" -- read helm-chart and helm-chart-version in project "my-project-name" ### Project Level @@ -147,7 +138,7 @@ The following arguments are supported: ### Access Arguments * **action** - (string, required) Eg. `push`, `pull`, `read`, etc. Check [available actions](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go). -* **resource** - (string, required) Eg. `repository`, `helm-chart`, `labels`, etc. Check [available resources](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go). +* **resource** - (string, required) Eg. `repository`, `labels`, etc. Check [available resources](https://github.com/goharbor/harbor/blob/-/src/common/rbac/const.go). * **effect** - (string, optional) Either `allow` or `deny`. Defaults to `allow`. diff --git a/provider/resource_robot_account_test.go b/provider/resource_robot_account_test.go index a1e9408..ea67838 100644 --- a/provider/resource_robot_account_test.go +++ b/provider/resource_robot_account_test.go @@ -86,7 +86,7 @@ func testAccCheckRobotSystem(projectName string) string { permissions { access { action = "create" - resource = "labels" + resource = "label" } kind = "system" namespace = "/" @@ -96,14 +96,6 @@ func testAccCheckRobotSystem(projectName string) string { action = "push" resource = "repository" } - access { - action = "read" - resource = "helm-chart" - } - access { - action = "read" - resource = "helm-chart-version" - } kind = "project" namespace = harbor_project.main.name }