2.0.0 (August 28th, 2023)
- New Resource:
nomad_node_pool
manages node pools (#340) - New Resource:
nomad_variable
manages Nomad variables (#325) - New Data Source:
nomad_allocations
to retrieve a list of allocations (#358) - New Data Source:
nomad_node_pool
andnomad_node_pools
to retrieves one or mode node pools (#340) - New Data Source:
nomad_variable
retrieves a Nomad variable (#325)
BACKWARDS INCOMPATIBILITIES:
- provider: Terraform Plugin SDK upgraded to v2.10.1. Terraform versions prior to 0.12 are no longer supported. (#339)
- resource/nomad_job: Switch to HCL2 parsing by default. Jobs that require HCL1 parsing must set
hcl1 = true
. (#343) - resource/nomad_job: Deprecate field
allocation_ids
and do not retrieve the job's allocations by default. Setread_allocation_ids
totrue
if you must retain existing behavior, but consider using thenomad_allocations
data source instead. (#357)
DEPRECATIONS:
- resource/nomad_volume: The
nomad_volume
resource has been deprecated. Use the newnomad_csi_volume_registration
resource instead. (#344) - resource/nomad_external_volume: The
nomad_external_volume
resource has been deprecated. Use the newnomad_csi_volume
resource instead. (#344)
IMPROVEMENTS:
- Target Nomad 1.6.0: updated the nomad client to support Nomad API and jobspec version 1.6.0 (#345)
- provider: add
skip_verify
configuration to skip TLS verification (#319) - provider: update Go to 1.21.0 (#369)
- data source/nomad_namespace: add
node_pool_config
attribute (#355) - resource/nomad_acl_policy: add support for
job_acl
(#314) - resource/nomad_csi_volume: add support to import existing volumes. (#359]
- resource/nomad_csi_volume_registration: add support to import existing volumes. (#359]
- resource/nomad_job: add support to import existing jobs. (#359]
- resource/nomad_namespace: add
node_pool_config
attribute (#355)
BUG FIXES:
- data source/acl_auth_method: fix a bug where the values of
max_token_ttl
anddiscovery_ca_pem
were not persisted to state. (#339) - data source/acl_token: fix a bug where the value of
expiration_ttl
was not persisted to state. (#339) - data source/namespace: use type list to represent capabilities so its values can be indexed with Terraform SDKv2 (#339)
- data source/nomad_volume: fix panic when reading volume (#323)
- resources/nomad_acl_binding_rule: fix a bug where
bind_name
was required even whenbind_type
wasmanagement
. (#330) - resources/nomad_job: fix a bug that prevented deployments for jobs in namespaces other than
default
from being monitored. (#347) - resource/nomad_job: fix a bug that could result in unnecessary plan diffs from irrelevant changes. (#356)
- resource/nomad_volume: fix a bug that caused
capacity_min
andcapacity_max
to be mandatory. (#363) - resource/nomad_volume: fix a bug where
topology_request
was not persisted to state. (#342 - resource/nomad_external_volume: fix a bug where
topology_request
was not persisted to state. (#342