Skip to content

Add hosted cp support #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {

module rosa_operator_roles {
source = "./operator_roles"
count = var.create_operator_roles ? 6 : 0
count = var.create_operator_roles ? (var.is_hosted_cp ? 10 : 6) : 0

cluster_id = var.cluster_id
rh_oidc_provider_url = var.rh_oidc_provider_url
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ variable operator_roles_properties {
}
}

variable is_hosted_cp {
description = "Set to true if there is intention to use Red Hat Hosted CP to create appropriate opearator roles"
type = bool
default = false
}

variable create_operator_roles {
description = "When using BYO OIDC and reusing the operator roles set to false so as not to create operator roles"
type = bool
Expand Down