Skip to content

Commit f66b9e9

Browse files
Releasing version 4.79.0
Releasing version 4.79.0
2 parents 4fba76a + 0e0d97e commit f66b9e9

File tree

168 files changed

+5503
-448
lines changed

Some content is hidden

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

168 files changed

+5503
-448
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 4.79.0 (June 08, 2022)
2+
3+
### Added
4+
- BM Platform Config Support
5+
- Support for private endpoint in resource manager
6+
### Bug Fix
7+
- Resolve terraform not dropping resolver rules and view and async polling
8+
19
## 4.78.0 (June 01, 2022)
210

311
### Added

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Terraform Provider for Oracle Cloud Infrastructure
1919
Requirements
2020
------------
2121

22-
- [Terraform](https://www.terraform.io/downloads.html) v0.10.1 or greater
23-
- [Go](https://golang.org/doc/install) 1.15.5 (recommended)
22+
- [Terraform](https://www.terraform.io/downloads.html) v0.12.31 or greater
23+
- [Go](https://golang.org/doc/install) 1.17.2 (recommended)
2424

25-
Note: You may use any version 1.8 or above to build the provider. However, the `goimports`, `go vet`, and `gofmt` code checks will only pass when using version 1.15.
25+
Note: You may use any version 1.8 or above to build the provider. However, the `goimports`, `go vet`, and `gofmt` code checks will only pass when using version 1.17.
2626

2727

2828
Building the Provider

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/mitchellh/mapstructure v1.1.2 // indirect
5454
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5555
github.com/oklog/run v1.0.0 // indirect
56-
github.com/oracle/oci-go-sdk/v65 v65.8.0
56+
github.com/oracle/oci-go-sdk/v65 v65.8.1
5757
github.com/pmezard/go-difflib v1.0.0 // indirect
5858
github.com/sony/gobreaker v0.5.0 // indirect
5959
github.com/ulikunitz/xz v0.5.8 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
289289
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
290290
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
291291
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
292-
github.com/oracle/oci-go-sdk/v65 v65.8.0 h1:7sJGQoHquTw1nAdrpKe6qWlenMLCH3sN39EowU61D/E=
293-
github.com/oracle/oci-go-sdk/v65 v65.8.0/go.mod h1:oyMrMa1vOzzKTmPN+kqrTR9y9kPA2tU1igN3NUSNTIE=
292+
github.com/oracle/oci-go-sdk/v65 v65.8.1 h1:Mn/IgGZMWkmg7RbcdPAogcmfoDFrYP1CvU9x/4r/lT8=
293+
github.com/oracle/oci-go-sdk/v65 v65.8.1/go.mod h1:oyMrMa1vOzzKTmPN+kqrTR9y9kPA2tU1igN3NUSNTIE=
294294
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
295295
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
296296
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

internal/globalvar/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
)
99

10-
const Version = "4.78.0"
11-
const ReleaseDate = "2022-06-02"
10+
const Version = "4.79.0"
11+
const ReleaseDate = "2022-06-08"
1212

1313
func PrintVersion() {
1414
log.Printf("[INFO] terraform-provider-oci %s\n", Version)

internal/integrationtest/core_instance_resource_test.go

Lines changed: 200 additions & 15 deletions
Large diffs are not rendered by default.

internal/service/core/core_instance_configuration_resource.go

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,13 +629,33 @@ func CoreInstanceConfigurationResource() *schema.Resource {
629629
ValidateFunc: validation.StringInSlice([]string{
630630
"AMD_MILAN_BM",
631631
"AMD_ROME_BM",
632+
"AMD_ROME_BM_GPU",
632633
"AMD_VM",
634+
"INTEL_ICELAKE_BM",
633635
"INTEL_SKYLAKE_BM",
634636
"INTEL_VM",
635637
}, true),
636638
},
637639

638640
// Optional
641+
"are_virtual_instructions_enabled": {
642+
Type: schema.TypeBool,
643+
Optional: true,
644+
Computed: true,
645+
ForceNew: true,
646+
},
647+
"is_access_control_service_enabled": {
648+
Type: schema.TypeBool,
649+
Optional: true,
650+
Computed: true,
651+
ForceNew: true,
652+
},
653+
"is_input_output_memory_management_unit_enabled": {
654+
Type: schema.TypeBool,
655+
Optional: true,
656+
Computed: true,
657+
ForceNew: true,
658+
},
639659
"is_measured_boot_enabled": {
640660
Type: schema.TypeBool,
641661
Optional: true,
@@ -648,6 +668,12 @@ func CoreInstanceConfigurationResource() *schema.Resource {
648668
Computed: true,
649669
ForceNew: true,
650670
},
671+
"is_symmetric_multi_threading_enabled": {
672+
Type: schema.TypeBool,
673+
Optional: true,
674+
Computed: true,
675+
ForceNew: true,
676+
},
651677
"is_trusted_platform_module_enabled": {
652678
Type: schema.TypeBool,
653679
Optional: true,
@@ -660,6 +686,12 @@ func CoreInstanceConfigurationResource() *schema.Resource {
660686
Computed: true,
661687
ForceNew: true,
662688
},
689+
"percentage_of_cores_enabled": {
690+
Type: schema.TypeInt,
691+
Optional: true,
692+
Computed: true,
693+
ForceNew: true,
694+
},
663695

664696
// Computed
665697
},
@@ -2172,9 +2204,29 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationLaunch
21722204
switch strings.ToLower(type_) {
21732205
case strings.ToLower("AMD_MILAN_BM"):
21742206
details := oci_core.InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig{}
2207+
if areVirtualInstructionsEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "are_virtual_instructions_enabled")); ok {
2208+
tmp := areVirtualInstructionsEnabled.(bool)
2209+
details.AreVirtualInstructionsEnabled = &tmp
2210+
}
2211+
if isAccessControlServiceEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_access_control_service_enabled")); ok {
2212+
tmp := isAccessControlServiceEnabled.(bool)
2213+
details.IsAccessControlServiceEnabled = &tmp
2214+
}
2215+
if isInputOutputMemoryManagementUnitEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_input_output_memory_management_unit_enabled")); ok {
2216+
tmp := isInputOutputMemoryManagementUnitEnabled.(bool)
2217+
details.IsInputOutputMemoryManagementUnitEnabled = &tmp
2218+
}
2219+
if isSymmetricMultiThreadingEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_symmetric_multi_threading_enabled")); ok {
2220+
tmp := isSymmetricMultiThreadingEnabled.(bool)
2221+
details.IsSymmetricMultiThreadingEnabled = &tmp
2222+
}
21752223
if numaNodesPerSocket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "numa_nodes_per_socket")); ok {
21762224
details.NumaNodesPerSocket = oci_core.InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(numaNodesPerSocket.(string))
21772225
}
2226+
if percentageOfCoresEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "percentage_of_cores_enabled")); ok {
2227+
tmp := percentageOfCoresEnabled.(int)
2228+
details.PercentageOfCoresEnabled = &tmp
2229+
}
21782230
if isMeasuredBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_measured_boot_enabled")); ok {
21792231
tmp := isMeasuredBootEnabled.(bool)
21802232
details.IsMeasuredBootEnabled = &tmp
@@ -2190,6 +2242,63 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationLaunch
21902242
baseObject = details
21912243
case strings.ToLower("AMD_ROME_BM"):
21922244
details := oci_core.InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig{}
2245+
if areVirtualInstructionsEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "are_virtual_instructions_enabled")); ok {
2246+
tmp := areVirtualInstructionsEnabled.(bool)
2247+
details.AreVirtualInstructionsEnabled = &tmp
2248+
}
2249+
if isAccessControlServiceEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_access_control_service_enabled")); ok {
2250+
tmp := isAccessControlServiceEnabled.(bool)
2251+
details.IsAccessControlServiceEnabled = &tmp
2252+
}
2253+
if isInputOutputMemoryManagementUnitEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_input_output_memory_management_unit_enabled")); ok {
2254+
tmp := isInputOutputMemoryManagementUnitEnabled.(bool)
2255+
details.IsInputOutputMemoryManagementUnitEnabled = &tmp
2256+
}
2257+
if isSymmetricMultiThreadingEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_symmetric_multi_threading_enabled")); ok {
2258+
tmp := isSymmetricMultiThreadingEnabled.(bool)
2259+
details.IsSymmetricMultiThreadingEnabled = &tmp
2260+
}
2261+
if numaNodesPerSocket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "numa_nodes_per_socket")); ok {
2262+
details.NumaNodesPerSocket = oci_core.InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(numaNodesPerSocket.(string))
2263+
}
2264+
if percentageOfCoresEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "percentage_of_cores_enabled")); ok {
2265+
tmp := percentageOfCoresEnabled.(int)
2266+
details.PercentageOfCoresEnabled = &tmp
2267+
}
2268+
if isMeasuredBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_measured_boot_enabled")); ok {
2269+
tmp := isMeasuredBootEnabled.(bool)
2270+
details.IsMeasuredBootEnabled = &tmp
2271+
}
2272+
if isSecureBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_secure_boot_enabled")); ok {
2273+
tmp := isSecureBootEnabled.(bool)
2274+
details.IsSecureBootEnabled = &tmp
2275+
}
2276+
if isTrustedPlatformModuleEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_trusted_platform_module_enabled")); ok {
2277+
tmp := isTrustedPlatformModuleEnabled.(bool)
2278+
details.IsTrustedPlatformModuleEnabled = &tmp
2279+
}
2280+
baseObject = details
2281+
case strings.ToLower("AMD_ROME_BM_GPU"):
2282+
details := oci_core.InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig{}
2283+
if areVirtualInstructionsEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "are_virtual_instructions_enabled")); ok {
2284+
tmp := areVirtualInstructionsEnabled.(bool)
2285+
details.AreVirtualInstructionsEnabled = &tmp
2286+
}
2287+
if isAccessControlServiceEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_access_control_service_enabled")); ok {
2288+
tmp := isAccessControlServiceEnabled.(bool)
2289+
details.IsAccessControlServiceEnabled = &tmp
2290+
}
2291+
if isInputOutputMemoryManagementUnitEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_input_output_memory_management_unit_enabled")); ok {
2292+
tmp := isInputOutputMemoryManagementUnitEnabled.(bool)
2293+
details.IsInputOutputMemoryManagementUnitEnabled = &tmp
2294+
}
2295+
if isSymmetricMultiThreadingEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_symmetric_multi_threading_enabled")); ok {
2296+
tmp := isSymmetricMultiThreadingEnabled.(bool)
2297+
details.IsSymmetricMultiThreadingEnabled = &tmp
2298+
}
2299+
if numaNodesPerSocket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "numa_nodes_per_socket")); ok {
2300+
details.NumaNodesPerSocket = oci_core.InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum(numaNodesPerSocket.(string))
2301+
}
21932302
if isMeasuredBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_measured_boot_enabled")); ok {
21942303
tmp := isMeasuredBootEnabled.(bool)
21952304
details.IsMeasuredBootEnabled = &tmp
@@ -2218,6 +2327,36 @@ func (s *CoreInstanceConfigurationResourceCrud) mapToInstanceConfigurationLaunch
22182327
details.IsTrustedPlatformModuleEnabled = &tmp
22192328
}
22202329
baseObject = details
2330+
case strings.ToLower("INTEL_ICELAKE_BM"):
2331+
details := oci_core.InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig{}
2332+
if isInputOutputMemoryManagementUnitEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_input_output_memory_management_unit_enabled")); ok {
2333+
tmp := isInputOutputMemoryManagementUnitEnabled.(bool)
2334+
details.IsInputOutputMemoryManagementUnitEnabled = &tmp
2335+
}
2336+
if isSymmetricMultiThreadingEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_symmetric_multi_threading_enabled")); ok {
2337+
tmp := isSymmetricMultiThreadingEnabled.(bool)
2338+
details.IsSymmetricMultiThreadingEnabled = &tmp
2339+
}
2340+
if numaNodesPerSocket, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "numa_nodes_per_socket")); ok {
2341+
details.NumaNodesPerSocket = oci_core.InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(numaNodesPerSocket.(string))
2342+
}
2343+
if percentageOfCoresEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "percentage_of_cores_enabled")); ok {
2344+
tmp := percentageOfCoresEnabled.(int)
2345+
details.PercentageOfCoresEnabled = &tmp
2346+
}
2347+
if isMeasuredBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_measured_boot_enabled")); ok {
2348+
tmp := isMeasuredBootEnabled.(bool)
2349+
details.IsMeasuredBootEnabled = &tmp
2350+
}
2351+
if isSecureBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_secure_boot_enabled")); ok {
2352+
tmp := isSecureBootEnabled.(bool)
2353+
details.IsSecureBootEnabled = &tmp
2354+
}
2355+
if isTrustedPlatformModuleEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_trusted_platform_module_enabled")); ok {
2356+
tmp := isTrustedPlatformModuleEnabled.(bool)
2357+
details.IsTrustedPlatformModuleEnabled = &tmp
2358+
}
2359+
baseObject = details
22212360
case strings.ToLower("INTEL_SKYLAKE_BM"):
22222361
details := oci_core.InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig{}
22232362
if isMeasuredBootEnabled, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "is_measured_boot_enabled")); ok {
@@ -2260,11 +2399,89 @@ func InstanceConfigurationLaunchInstancePlatformConfigToMap(obj *oci_core.Instan
22602399
case oci_core.InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig:
22612400
result["type"] = "AMD_MILAN_BM"
22622401

2402+
if v.AreVirtualInstructionsEnabled != nil {
2403+
result["are_virtual_instructions_enabled"] = bool(*v.AreVirtualInstructionsEnabled)
2404+
}
2405+
2406+
if v.IsAccessControlServiceEnabled != nil {
2407+
result["is_access_control_service_enabled"] = bool(*v.IsAccessControlServiceEnabled)
2408+
}
2409+
2410+
if v.IsInputOutputMemoryManagementUnitEnabled != nil {
2411+
result["is_input_output_memory_management_unit_enabled"] = bool(*v.IsInputOutputMemoryManagementUnitEnabled)
2412+
}
2413+
2414+
if v.IsSymmetricMultiThreadingEnabled != nil {
2415+
result["is_symmetric_multi_threading_enabled"] = bool(*v.IsSymmetricMultiThreadingEnabled)
2416+
}
2417+
22632418
result["numa_nodes_per_socket"] = string(v.NumaNodesPerSocket)
2419+
2420+
if v.PercentageOfCoresEnabled != nil {
2421+
result["percentage_of_cores_enabled"] = int(*v.PercentageOfCoresEnabled)
2422+
}
22642423
case oci_core.InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig:
22652424
result["type"] = "AMD_ROME_BM"
2425+
2426+
if v.AreVirtualInstructionsEnabled != nil {
2427+
result["are_virtual_instructions_enabled"] = bool(*v.AreVirtualInstructionsEnabled)
2428+
}
2429+
2430+
if v.IsAccessControlServiceEnabled != nil {
2431+
result["is_access_control_service_enabled"] = bool(*v.IsAccessControlServiceEnabled)
2432+
}
2433+
2434+
if v.IsInputOutputMemoryManagementUnitEnabled != nil {
2435+
result["is_input_output_memory_management_unit_enabled"] = bool(*v.IsInputOutputMemoryManagementUnitEnabled)
2436+
}
2437+
2438+
if v.IsSymmetricMultiThreadingEnabled != nil {
2439+
result["is_symmetric_multi_threading_enabled"] = bool(*v.IsSymmetricMultiThreadingEnabled)
2440+
}
2441+
2442+
result["numa_nodes_per_socket"] = string(v.NumaNodesPerSocket)
2443+
2444+
if v.PercentageOfCoresEnabled != nil {
2445+
result["percentage_of_cores_enabled"] = int(*v.PercentageOfCoresEnabled)
2446+
}
2447+
case oci_core.InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig:
2448+
result["type"] = "AMD_ROME_BM_GPU"
2449+
2450+
if v.AreVirtualInstructionsEnabled != nil {
2451+
result["are_virtual_instructions_enabled"] = bool(*v.AreVirtualInstructionsEnabled)
2452+
}
2453+
2454+
if v.IsAccessControlServiceEnabled != nil {
2455+
result["is_access_control_service_enabled"] = bool(*v.IsAccessControlServiceEnabled)
2456+
}
2457+
2458+
if v.IsInputOutputMemoryManagementUnitEnabled != nil {
2459+
result["is_input_output_memory_management_unit_enabled"] = bool(*v.IsInputOutputMemoryManagementUnitEnabled)
2460+
}
2461+
2462+
if v.IsSymmetricMultiThreadingEnabled != nil {
2463+
result["is_symmetric_multi_threading_enabled"] = bool(*v.IsSymmetricMultiThreadingEnabled)
2464+
}
2465+
2466+
result["numa_nodes_per_socket"] = string(v.NumaNodesPerSocket)
22662467
case oci_core.InstanceConfigurationAmdVmLaunchInstancePlatformConfig:
22672468
result["type"] = "AMD_VM"
2469+
case oci_core.InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig:
2470+
result["type"] = "INTEL_ICELAKE_BM"
2471+
2472+
if v.IsInputOutputMemoryManagementUnitEnabled != nil {
2473+
result["is_input_output_memory_management_unit_enabled"] = bool(*v.IsInputOutputMemoryManagementUnitEnabled)
2474+
}
2475+
2476+
if v.IsSymmetricMultiThreadingEnabled != nil {
2477+
result["is_symmetric_multi_threading_enabled"] = bool(*v.IsSymmetricMultiThreadingEnabled)
2478+
}
2479+
2480+
result["numa_nodes_per_socket"] = string(v.NumaNodesPerSocket)
2481+
2482+
if v.PercentageOfCoresEnabled != nil {
2483+
result["percentage_of_cores_enabled"] = int(*v.PercentageOfCoresEnabled)
2484+
}
22682485
case oci_core.InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig:
22692486
result["type"] = "INTEL_SKYLAKE_BM"
22702487
case oci_core.InstanceConfigurationIntelVmLaunchInstancePlatformConfig:

0 commit comments

Comments
 (0)