Skip to content

Commit

Permalink
add oidc discovery oiption
Browse files Browse the repository at this point in the history
  • Loading branch information
brokedba authored Nov 30, 2024
1 parent bc5b26a commit b5a36f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform-provider-oci/oke-quickstartz/modules/oke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ resource "oci_containerengine_cluster" "oke_cluster" {
freeform_tags = var.load_balancers_tags.freeformTags
# defined_tags = var.load_balancers_tags.definedTags
}
open_id_connect_discovery {
is_open_id_connect_discovery_enabled = var.oke_cluster_oidc_discovery
}
}
image_policy_config {
is_policy_enabled = false
Expand All @@ -51,9 +54,6 @@ resource "oci_containerengine_cluster" "oke_cluster" {
cni_type = var.cni_type
}

# open_id_connect_discovery {
# is_open_id_connect_discovery_enabled =false
# }
lifecycle {
ignore_changes = [freeform_tags, defined_tags, kubernetes_version, id]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ locals {
locals {
oke_compartment_ocid = var.compartment_ocid
}
# OIDC
variable "oke_cluster_oidc_discovery" {
default = false
description = "Enable OpenID Connect discovery in the cluster"
}

# Deployment Details + Freeform Tags
variable "cluster_tags" {
Expand Down

0 comments on commit b5a36f2

Please sign in to comment.