This repository has been archived by the owner on Dec 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
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 #28 from gruntwork-io/yori-conditional-namespace
Implement create_resources flag for k8s-namespace and k8s-namespace-roles
- Loading branch information
Showing
6 changed files
with
36 additions
and
19 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
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
output "rbac_access_all_role" { | ||
description = "The name of the RBAC role that grants admin level permissions on the namespace." | ||
value = "${kubernetes_role.rbac_role_access_all.metadata.0.name}" | ||
value = "${element(concat(kubernetes_role.rbac_role_access_all.*.metadata.0.name, list("")), 0)}" | ||
} | ||
|
||
output "rbac_access_read_only_role" { | ||
description = "The name of the RBAC role that grants read only permissions on the namespace." | ||
value = "${kubernetes_role.rbac_role_access_read_only.metadata.0.name}" | ||
value = "${element(concat(kubernetes_role.rbac_role_access_read_only.*.metadata.0.name, list("")), 0)}" | ||
} | ||
|
||
output "rbac_tiller_metadata_access_role" { | ||
description = "The name of the RBAC role that grants minimal permissions for Tiller to manage its metadata. Use this role if Tiller will be deployed into this namespace." | ||
value = "${kubernetes_role.rbac_tiller_metadata_access.metadata.0.name}" | ||
value = "${element(concat(kubernetes_role.rbac_tiller_metadata_access.*.metadata.0.name, list("")), 0)}" | ||
} | ||
|
||
output "rbac_tiller_resource_access_role" { | ||
description = "The name of the RBAC role that grants minimal permissions for Tiller to manage resources in this namespace." | ||
value = "${kubernetes_role.rbac_tiller_resource_access.metadata.0.name}" | ||
value = "${element(concat(kubernetes_role.rbac_tiller_resource_access.*.metadata.0.name, list("")), 0)}" | ||
} |
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
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