File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ terraform {
99
1010module rosa_operator_roles {
1111 source = " ./operator_roles"
12- count = var. create_operator_roles ? 6 : 0
12+ count = var. create_operator_roles ? (var . is_hosted_cp ? 10 : 6 ) : 0
1313
1414 cluster_id = var. cluster_id
1515 rh_oidc_provider_url = var. rh_oidc_provider_url
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable operator_roles_properties {
2424 }
2525}
2626
27+ variable is_hosted_cp {
28+ description = " Set to true if there is intention to use Red Hat Hosted CP to create appropriate opearator roles"
29+ type = bool
30+ default = false
31+ }
32+
2733variable create_operator_roles {
2834 description = " When using BYO OIDC and reusing the operator roles set to false so as not to create operator roles"
2935 type = bool
You can’t perform that action at this time.
0 commit comments