Skip to content

Commit 6277de4

Browse files
authored
Release v3.52.0
Release v3.52.0
2 parents 1823252 + 41e85ad commit 6277de4

File tree

87 files changed

+1905
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1905
-105
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
## 3.51.1 (Unreleased)
1+
## 3.52.0 (Unreleased)
2+
3+
### Added
4+
- Support for specifying compartment ID for container engine options APIs
5+
- Support for console access to APEX and SQL Dev in autonomous databases
6+
- Support for Volume Performance Units in `oci_core_boot_volume` and `oci_core_volume` resources
7+
- Support for data safe integration in `oci_database_autonomous_database` resource
8+
9+
### Fixed
10+
- Fixed `time_deletion_of_free_autonomous_database` and `time_reclamation_of_free_autonomous_database`attributes in `oci_database_autonomous_database` resource
11+
- Fix `ssh_public_keys` for DB systems and vm clusters, so that they are TypeSet. Otherwise, the service may return SSH keys out of order, which could result in plan diffs.
12+
- Extend the default operation timeout for DB backups to 1 hour, as current default of 15 minutes could possibly lead to early timeout.
13+
214
## 3.51.0 (November 06, 2019)
315

416
### Added

examples/load_balancer/lb_full/lb_full.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,26 @@ resource "oci_load_balancer_rule_set" "test_rule_set" {
364364
}
365365
}
366366

367+
items {
368+
action = "REDIRECT"
369+
370+
conditions {
371+
attribute_name = "PATH"
372+
attribute_value = "/example"
373+
operator = "FORCE_LONGEST_PREFIX_MATCH"
374+
}
375+
376+
redirect_uri {
377+
protocol = "{protocol}"
378+
host = "in{host}"
379+
port = 8081
380+
path = "{path}/video"
381+
query = "?lang=en"
382+
}
383+
384+
response_code = 302
385+
}
386+
367387
load_balancer_id = "${oci_load_balancer.lb1.id}"
368388
name = "example_rule_set_name"
369389
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce
77
github.com/hashicorp/terraform v0.12.4-0.20190628193153-a74738cd35fc
88
github.com/mitchellh/cli v1.0.0
9-
github.com/oracle/oci-go-sdk v12.3.0+incompatible
9+
github.com/oracle/oci-go-sdk v12.4.0+incompatible
1010
github.com/stretchr/objx v0.1.1 // indirect
1111
github.com/stretchr/testify v1.3.0
1212
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ github.com/oracle/oci-go-sdk v12.2.0+incompatible h1:z5FqDVTRHSYzR9td6FdQpFw2M3M
349349
github.com/oracle/oci-go-sdk v12.2.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
350350
github.com/oracle/oci-go-sdk v12.3.0+incompatible h1:hkX0CRD+OmK3+wCbKItck+zgqD+AiPcfxBXnmdgZPlA=
351351
github.com/oracle/oci-go-sdk v12.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
352+
github.com/oracle/oci-go-sdk v12.4.0+incompatible h1:W/MTcMs9HOnqQA8+v4xfLxMWN1VN3Q/UtrhQiJK6WHU=
353+
github.com/oracle/oci-go-sdk v12.4.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
352354
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
353355
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
354356
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=

oci/audit_events_data_source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ func responseToMap(obj *oci_audit.Response) map[string]interface{} {
560560
func stateChangeToMap(obj *oci_audit.StateChange) map[string]interface{} {
561561
result := map[string]interface{}{}
562562

563-
result["current"] = obj.Current
563+
result["current"] = genericMapToJsonMap(obj.Current)
564564

565-
result["previous"] = obj.Previous
565+
result["previous"] = genericMapToJsonMap(obj.Previous)
566566

567567
return result
568568
}

oci/containerengine_cluster_option_data_source.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ func ContainerengineClusterOptionDataSource() *schema.Resource {
1717
Type: schema.TypeString,
1818
Required: true,
1919
},
20+
"compartment_id": {
21+
Type: schema.TypeString,
22+
Optional: true,
23+
},
2024
// Computed
2125
"kubernetes_versions": {
2226
Type: schema.TypeList,
@@ -55,6 +59,11 @@ func (s *ContainerengineClusterOptionDataSourceCrud) Get() error {
5559
request.ClusterOptionId = &tmp
5660
}
5761

62+
if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
63+
tmp := compartmentId.(string)
64+
request.CompartmentId = &tmp
65+
}
66+
5867
request.RequestMetadata.RetryPolicy = getRetryPolicy(false, "containerengine")
5968

6069
response, err := s.Client.GetClusterOptions(context.Background(), request)

oci/containerengine_cluster_option_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
var (
1717
clusterOptionSingularDataSourceRepresentation = map[string]interface{}{
1818
"cluster_option_id": Representation{repType: Required, create: `all`},
19+
"compartment_id": Representation{repType: Optional, create: `${var.compartment_id}`},
1920
}
2021

2122
ClusterOptionResourceConfig = ""
@@ -46,6 +47,19 @@ func TestContainerengineClusterOptionResource_basic(t *testing.T) {
4647
compartmentIdVariableStr + ClusterOptionResourceConfig,
4748
Check: resource.ComposeAggregateTestCheckFunc(
4849
resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_option_id"),
50+
51+
resource.TestMatchResourceAttr(singularDatasourceName, "kubernetes_versions.#", regexp.MustCompile("[1-9][0-9]*")),
52+
),
53+
},
54+
// verify singular datasource with compartment_id
55+
{
56+
Config: config +
57+
generateDataSourceFromRepresentationMap("oci_containerengine_cluster_option", "test_cluster_option", Optional, Create, clusterOptionSingularDataSourceRepresentation) +
58+
compartmentIdVariableStr + ClusterOptionResourceConfig,
59+
Check: resource.ComposeAggregateTestCheckFunc(
60+
resource.TestCheckResourceAttrSet(singularDatasourceName, "cluster_option_id"),
61+
resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId),
62+
4963
resource.TestMatchResourceAttr(singularDatasourceName, "kubernetes_versions.#", regexp.MustCompile("[1-9][0-9]*")),
5064
),
5165
},

oci/containerengine_node_pool_option_data_source.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ func ContainerengineNodePoolOptionDataSource() *schema.Resource {
1313
return &schema.Resource{
1414
Read: readSingularContainerengineNodePoolOption,
1515
Schema: map[string]*schema.Schema{
16+
"compartment_id": {
17+
Type: schema.TypeString,
18+
Optional: true,
19+
},
1620
"node_pool_option_id": {
1721
Type: schema.TypeString,
1822
Required: true,
@@ -64,6 +68,11 @@ func (s *ContainerengineNodePoolOptionDataSourceCrud) VoidState() {
6468
func (s *ContainerengineNodePoolOptionDataSourceCrud) Get() error {
6569
request := oci_containerengine.GetNodePoolOptionsRequest{}
6670

71+
if compartmentId, ok := s.D.GetOkExists("compartment_id"); ok {
72+
tmp := compartmentId.(string)
73+
request.CompartmentId = &tmp
74+
}
75+
6776
if nodePoolOptionId, ok := s.D.GetOkExists("node_pool_option_id"); ok {
6877
tmp := nodePoolOptionId.(string)
6978
request.NodePoolOptionId = &tmp

oci/containerengine_node_pool_option_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
var (
1717
nodePoolOptionSingularDataSourceRepresentation = map[string]interface{}{
1818
"node_pool_option_id": Representation{repType: Required, create: `all`},
19+
"compartment_id": Representation{repType: Optional, create: `${var.compartment_id}`},
1920
}
2021

2122
NodePoolOptionResourceConfig = ""
@@ -47,6 +48,20 @@ func TestContainerengineNodePoolOptionResource_basic(t *testing.T) {
4748
Check: resource.ComposeAggregateTestCheckFunc(
4849
resource.TestCheckResourceAttrSet(singularDatasourceName, "node_pool_option_id"),
4950

51+
resource.TestMatchResourceAttr(singularDatasourceName, "images.#", regexp.MustCompile("[1-9][0-9]*")),
52+
resource.TestMatchResourceAttr(singularDatasourceName, "kubernetes_versions.#", regexp.MustCompile("[1-9][0-9]*")),
53+
resource.TestMatchResourceAttr(singularDatasourceName, "shapes.#", regexp.MustCompile("[1-9][0-9]*")),
54+
),
55+
},
56+
// verify singular datasource
57+
{
58+
Config: config +
59+
generateDataSourceFromRepresentationMap("oci_containerengine_node_pool_option", "test_node_pool_option", Optional, Create, nodePoolOptionSingularDataSourceRepresentation) +
60+
compartmentIdVariableStr + NodePoolOptionResourceConfig,
61+
Check: resource.ComposeAggregateTestCheckFunc(
62+
resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId),
63+
resource.TestCheckResourceAttrSet(singularDatasourceName, "node_pool_option_id"),
64+
5065
resource.TestMatchResourceAttr(singularDatasourceName, "images.#", regexp.MustCompile("[1-9][0-9]*")),
5166
resource.TestMatchResourceAttr(singularDatasourceName, "kubernetes_versions.#", regexp.MustCompile("[1-9][0-9]*")),
5267
resource.TestMatchResourceAttr(singularDatasourceName, "shapes.#", regexp.MustCompile("[1-9][0-9]*")),

oci/core_boot_volume_data_source.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,9 @@ func (s *CoreBootVolumeDataSourceCrud) SetData() error {
125125
s.D.Set("volume_group_id", *s.Res.VolumeGroupId)
126126
}
127127

128+
if s.Res.VpusPerGB != nil {
129+
s.D.Set("vpus_per_gb", strconv.FormatInt(*s.Res.VpusPerGB, 10))
130+
}
131+
128132
return nil
129133
}

0 commit comments

Comments
 (0)