Skip to content

Commit e45c5d9

Browse files
Jacob SwansonNagaRajuPasunuri
authored andcommitted
Bug Fix - Container Instance HTTP health check port field set to required
1 parent 998d6bf commit e45c5d9

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

internal/service/container_instances/container_instances_container_instance_resource.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ func ContainerInstancesContainerInstanceResource() *schema.Resource {
122122
"TCP",
123123
}, true),
124124
},
125-
"port": {
126-
Type: schema.TypeInt,
127-
Required: true,
128-
ForceNew: true,
129-
},
130-
131125
// Optional
132126
"failure_action": {
133127
Type: schema.TypeString,
@@ -192,6 +186,12 @@ func ContainerInstancesContainerInstanceResource() *schema.Resource {
192186
Computed: true,
193187
ForceNew: true,
194188
},
189+
"port": {
190+
Type: schema.TypeInt,
191+
Optional: true,
192+
Computed: true,
193+
ForceNew: true,
194+
},
195195
"status": {
196196
Type: schema.TypeString,
197197
Optional: true,

website/docs/d/container_instances_container_instance.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ The following attributes are exported:
6262
* `processor_description` - A short description of the container instance's processor (CPU).
6363
* `state` - The current state of the container instance.
6464
* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`.
65-
* `tenant_id` - TenantId id of the container instance.
6665
* `time_created` - The time the container instance was created, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
6766
* `time_updated` - The time the container instance was updated, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
6867
* `vnics` - The virtual networks available to the containers in the container instance.

website/docs/d/container_instances_container_instances.html.markdown

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ The following attributes are exported:
7777
* `processor_description` - A short description of the container instance's processor (CPU).
7878
* `state` - The current state of the container instance.
7979
* `system_tags` - Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`.
80-
* `tenant_id` - TenantId id of the container instance.
8180
* `time_created` - The time the container instance was created, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
8281
* `time_updated` - The time the container instance was updated, in the format defined by [RFC 3339](https://tools.ietf.org/rfc/rfc3339).
8382
* `vnics` - The virtual networks available to the containers in the container instance.

website/docs/r/container_instances_container_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ resource "oci_container_instances_container_instance" "test_container_instance"
3434
health_checks {
3535
#Required
3636
health_check_type = var.container_instance_containers_health_checks_health_check_type
37-
port = var.container_instance_containers_health_checks_port
3837
3938
#Optional
4039
failure_action = var.container_instance_containers_health_checks_failure_action
@@ -49,6 +48,7 @@ resource "oci_container_instances_container_instance" "test_container_instance"
4948
interval_in_seconds = var.container_instance_containers_health_checks_interval_in_seconds
5049
name = var.container_instance_containers_health_checks_name
5150
path = var.container_instance_containers_health_checks_path
51+
port = var.container_instance_containers_health_checks_port
5252
success_threshold = var.container_instance_containers_health_checks_success_threshold
5353
timeout_in_seconds = var.container_instance_containers_health_checks_timeout_in_seconds
5454
}

0 commit comments

Comments
 (0)