Skip to content

Commit

Permalink
Merge pull request #2222 from oracle/release_gh
Browse files Browse the repository at this point in the history
Releasing version 6.14.0
  • Loading branch information
srinioci authored Oct 17, 2024
2 parents ce1e0d3 + 9e5682d commit f000974
Show file tree
Hide file tree
Showing 333 changed files with 8,014 additions and 823 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## 6.14.0 (October 16, 2024)

### Added
- Support for OIDC Discovery in OKE
- Support for Support Cross region Backup copy & Replication for volumes encrypted with Customer KMS Keys
- Support for GenerateOnPremConnectorConfiguration resource in Data Safe
- Support for OIDC Auth Terraform
- Support for GoldenGate new deployment creation page and extended connectivity test results
- Support for DNSSEC
- Direct API support for OCI BSS
- Support for Desktop as a Service: Desktop Session Lifecycle Management
### Bug Fix
Fixed the timestamp issue to corrected form

## 6.13.0 (October 09, 2024)

### Added
Expand Down
280 changes: 280 additions & 0 deletions examples/container_engine/oidc_authn_token_config/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0

variable "tenancy_ocid" {
}

variable "user_ocid" {
}

variable "compartment_ocid" {
}

variable "region" {
default = "us-ashburn-1"
}

variable "kms_vault_id" {
}

variable "compartment_id" {
}

variable "cluster_cluster_pod_network_options_cni_type" {
default = "OCI_VCN_IP_NATIVE"
}

variable "cluster_defined_tags_value" {
default = "value"
}

variable "cluster_endpoint_config_is_public_ip_enabled" {
default = false
}

variable "cluster_endpoint_config_nsg_ids" {
default = []
}

variable "cluster_freeform_tags" {
default = { "Department" = "Finance" }
}

variable "cluster_image_policy_config_is_policy_enabled" {
default = false
}

variable "cluster_kubernetes_version" {
default = "kubernetesVersion"
}

variable "cluster_name" {
default = "name"
}

variable "cluster_options_add_ons_is_kubernetes_dashboard_enabled" {
default = true
}

variable "cluster_options_add_ons_is_tiller_enabled" {
default = true
}

variable "cluster_options_admission_controller_options_is_pod_security_policy_enabled" {
default = false
}

variable "cluster_options_kubernetes_network_config_pods_cidr" {
default = "10.1.0.0/16"
}

variable "cluster_options_kubernetes_network_config_services_cidr" {
default = "10.2.0.0/16"
}

variable "cluster_options_open_id_connect_token_authentication_config_client_id" {
default = "client_id"
}

variable "cluster_options_open_id_connect_token_authentication_config_is_open_id_connect_auth_enabled" {
default = true
}

variable "cluster_options_open_id_connect_token_authentication_config_ca_certificate" {
}

variable "cluster_options_open_id_connect_token_authentication_config_groups_claim" {
default = "groupsClaim"
}

variable "cluster_options_open_id_connect_token_authentication_config_groups_prefix" {
default = "groupsPrefix"
}

variable "cluster_options_open_id_connect_token_authentication_config_issuer_url" {
default = "https://url1.com"
}

variable "cluster_options_open_id_connect_token_authentication_config_required_claims_key" {
default = "key"
}

variable "cluster_options_open_id_connect_token_authentication_config_required_claims_value" {
default = "value"
}

variable "cluster_options_open_id_connect_token_authentication_config_signing_algorithms" {
default = ["RS256"]
}

variable "cluster_options_open_id_connect_token_authentication_config_username_claim" {
default = "sub"
}

variable "cluster_options_open_id_connect_token_authentication_config_username_prefix" {
default = "oidc:"
}

variable "cluster_options_persistent_volume_config_defined_tags_value" {
default = "value"
}

variable "cluster_options_persistent_volume_config_freeform_tags" {
default = { "Department" = "Finance" }
}

variable "cluster_options_service_lb_config_defined_tags_value" {
default = "value"
}

variable "cluster_options_service_lb_config_freeform_tags" {
default = { "Department" = "Finance" }
}

variable "cluster_options_service_lb_subnet_ids" {
default = []
}

variable "cluster_state" {
default = []
}

variable "cluster_type" {
default = "ENHANCED_CLUSTER"
}



provider "oci" {
region = var.region
auth = "SecurityToken"
config_file_profile = "terraform-federation-test"
}

variable defined_tag_namespace_name {
default = "test"
}

resource "oci_core_vcn" "test_vcn" {
cidr_block = "10.0.0.0/16"
compartment_id = var.compartment_ocid
display_name = "tfVcnForClusters"
}

resource "oci_core_internet_gateway" "test_ig" {
compartment_id = var.compartment_ocid
display_name = "tfClusterInternetGateway"
vcn_id = oci_core_vcn.test_vcn.id
}

resource "oci_identity_tag_namespace" "tag-namespace1" {
#Required
compartment_id = var.tenancy_ocid
description = "example tag namespace"
name = var.defined_tag_namespace_name != "" ? var.defined_tag_namespace_name : "example-tag-namespace-all"

is_retired = false
}

resource "oci_core_route_table" "test_route_table" {
compartment_id = var.compartment_ocid
vcn_id = oci_core_vcn.test_vcn.id
display_name = "tfClustersRouteTable"

route_rules {
destination = "0.0.0.0/0"
destination_type = "CIDR_BLOCK"
network_entity_id = oci_core_internet_gateway.test_ig.id
}
}

data "oci_identity_availability_domains" "test_availability_domains" {
compartment_id = var.tenancy_ocid
}

data "oci_identity_availability_domain" "ad1" {
compartment_id = var.tenancy_ocid
ad_number = 1
}

data "oci_identity_availability_domain" "ad2" {
compartment_id = var.tenancy_ocid
ad_number = 2
}

resource "oci_core_subnet" "clusterSubnet_2" {
#Required
availability_domain = data.oci_identity_availability_domain.ad2.name
cidr_block = "10.0.21.0/24"
compartment_id = var.compartment_ocid
vcn_id = oci_core_vcn.test_vcn.id
display_name = "tfSubNet1ForClusters"

# Provider code tries to maintain compatibility with old versions.
security_list_ids = [oci_core_vcn.test_vcn.default_security_list_id]
route_table_id = oci_core_route_table.test_route_table.id
}

resource "oci_containerengine_cluster" "test_cluster" {
#Required
compartment_id = var.compartment_ocid
kubernetes_version = "v1.28.2"
name = "tfTestCluster"
vcn_id = oci_core_vcn.test_vcn.id

#Optional
# defined_tags = map(oci_identity_tag_namespace.tag-namespace1.name.oci_identity_tag.tag1.name, var.cluster_defined_tags_value)

freeform_tags = var.cluster_freeform_tags
options {

#Optional
add_ons {

#Optional
is_kubernetes_dashboard_enabled = var.cluster_options_add_ons_is_kubernetes_dashboard_enabled
is_tiller_enabled = var.cluster_options_add_ons_is_tiller_enabled
}
admission_controller_options {

#Optional
is_pod_security_policy_enabled = var.cluster_options_admission_controller_options_is_pod_security_policy_enabled
}
kubernetes_network_config {

#Optional
pods_cidr = var.cluster_options_kubernetes_network_config_pods_cidr
services_cidr = var.cluster_options_kubernetes_network_config_services_cidr
}
open_id_connect_token_authentication_config {
#Required
is_open_id_connect_auth_enabled = var.cluster_options_open_id_connect_token_authentication_config_is_open_id_connect_auth_enabled

#Optional
client_id = var.cluster_options_open_id_connect_token_authentication_config_client_id
issuer_url = var.cluster_options_open_id_connect_token_authentication_config_issuer_url
ca_certificate = var.cluster_options_open_id_connect_token_authentication_config_ca_certificate
groups_claim = var.cluster_options_open_id_connect_token_authentication_config_groups_claim
groups_prefix = var.cluster_options_open_id_connect_token_authentication_config_groups_prefix
required_claims {

#Optional
key = var.cluster_options_open_id_connect_token_authentication_config_required_claims_key
value = var.cluster_options_open_id_connect_token_authentication_config_required_claims_value
}
signing_algorithms = var.cluster_options_open_id_connect_token_authentication_config_signing_algorithms
username_claim = var.cluster_options_open_id_connect_token_authentication_config_username_claim
username_prefix = var.cluster_options_open_id_connect_token_authentication_config_username_prefix
}
}
type = var.cluster_type
}

data "oci_containerengine_clusters" "test_clusters" {
#Required
compartment_id = var.compartment_id

#Optional
name = var.cluster_name
state = var.cluster_state
}
Loading

0 comments on commit f000974

Please sign in to comment.