Skip to content

Commit dd36e7c

Browse files
committed
feat: add hosted cp support
1 parent 1982695 commit dd36e7c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ terraform {
99

1010
module 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

variables.tf

+6
Original file line numberDiff line numberDiff 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+
2733
variable 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

0 commit comments

Comments
 (0)