File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
modules/fleet-app-operator-permissions Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ resource "google_gke_hub_scope_rbac_role_binding" "scope_rbac_user_role_bindings
79
79
scope_id = var. scope_id
80
80
user = each. key
81
81
role {
82
- custom_role = (var. custom_role != null ? var. custom_role : null )
83
- predefined_role = (var. custom_role != null ? null : var. role )
82
+ # Setting both types of roles will return an error when creating the resource.
83
+ custom_role = var. custom_role
84
+ predefined_role = var. role
84
85
}
85
86
}
86
87
@@ -96,8 +97,9 @@ resource "google_gke_hub_scope_rbac_role_binding" "scope_rbac_group_role_binding
96
97
scope_id = var. scope_id
97
98
group = each. key
98
99
role {
99
- custom_role = (var. custom_role != null ? var. custom_role : null )
100
- predefined_role = (var. custom_role != null ? null : var. role )
100
+ # Setting both types of roles will return an error when creating the resource.
101
+ custom_role = var. custom_role
102
+ predefined_role = var. role
101
103
}
102
104
}
103
105
You can’t perform that action at this time.
0 commit comments