diff --git a/codefresh/resource_abac_rules.go b/codefresh/resource_abac_rules.go index 55ea32d..d7b9108 100644 --- a/codefresh/resource_abac_rules.go +++ b/codefresh/resource_abac_rules.go @@ -41,7 +41,7 @@ The type of resources the ABAC rules applies to. Possible values: Type: schema.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ - "gitopsApplications, promotionFlows, products, environments", + "gitopsApplications", "promotionFlows", "products", "environments", }, false), }, "teams": { @@ -70,9 +70,9 @@ Action to be allowed. Possible values: * TERMINATE_SYNC * VIEW_POD_LOGS * APP_ROLLBACK - * "TRIGGER_PROMOTION" - * "RETRY_RELEASE" - * "PROMOTE_TO" + * TRIGGER_PROMOTION + * RETRY_RELEASE + * PROMOTE_TO `, Type: schema.TypeSet, Required: true, diff --git a/docs/resources/abac_rules.md b/docs/resources/abac_rules.md index 1aecdae..b86cb1c 100644 --- a/docs/resources/abac_rules.md +++ b/docs/resources/abac_rules.md @@ -48,8 +48,14 @@ resource "codefresh_abac_rules" "app_rule" { * TERMINATE_SYNC * VIEW_POD_LOGS * APP_ROLLBACK + * TRIGGER_PROMOTION + * RETRY_RELEASE + * PROMOTE_TO - `entity_type` (String) The type of resources the ABAC rules applies to. Possible values: * gitopsApplications + * promotionFlows + * products + * environments - `teams` (Set of String) The IDs of the teams the ABAC rules apply to. ### Optional