Skip to content

Commit b049aec

Browse files
Mark Mudimbasrinioci
authored andcommitted
Bug fix - Updating the Type of should_include_oidc_config_file to Bool
1 parent 73a7045 commit b049aec

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/container_engine/oidc_authn_token_config_multi_issuers/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ variable "cluster_endpoint_config_nsg_ids" {
3636
default = []
3737
}
3838

39+
variable "cluster_should_include_oidc_config_file" {
40+
default = true
41+
}
42+
3943
variable "cluster_freeform_tags" {
4044
default = { "Department" = "Finance" }
4145
}
@@ -222,6 +226,11 @@ resource "oci_containerengine_cluster" "test_cluster_multi_issuer" {
222226
type = var.cluster_type
223227
}
224228

229+
data "oci_containerengine_cluster" "test_cluster_multi_issuer" {
230+
cluster_id = oci_containerengine_cluster.test_cluster_multi_issuer.id
231+
should_include_oidc_config_file = var.cluster_should_include_oidc_config_file
232+
}
233+
225234
data "oci_containerengine_clusters" "test_clusters" {
226235
#Required
227236
compartment_id = var.compartment_ocid

internal/service/containerengine/containerengine_cluster_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ContainerengineClusterDataSource() *schema.Resource {
2020
Required: true,
2121
}
2222
fieldMap["should_include_oidc_config_file"] = &schema.Schema{
23-
Type: schema.TypeString,
23+
Type: schema.TypeBool,
2424
Optional: true,
2525
}
2626
return tfresource.GetSingularDataSourceItemSchema(ContainerengineClusterResource(), fieldMap, readSingularContainerengineCluster)

0 commit comments

Comments
 (0)