Skip to content

Tags: sourcegraph-ce/terraform-provider-time

Tags

v0.9.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update CHANGELOG.md for v0.9.1 (hashicorp#135)

v0.9.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
SDKv2 to Framework Migration (hashicorp#112)

* set up muxing to prepare for migration

* update dependencies

* Simplify muxing

* Setting up muxing for tests

* Start migrating time offset resource to framework

* Implement remaining offset attributes in import function

* refactor tests

* Remove unneeded test function

* add schema validators to offset_days field

* Implement update function

* tidy the go mod

* add pointer receiver to functions implementing framework interfaces

* add helper method to convert offset to Int64 type

* refactor time offset multiplication

* add tests to check updated offset values

* Add 'AtLeastOneOf' validators to offset attributes

* Create setOffsetValues helper method

* Begin migrating time_rotating resource to framework

* Implement AtLeastOneOf and int64 AtLeast validators and Create function

* add Plan Modifiers to offset resource

* add Return statements after offset parsing error handling

* Replace !=0 with >0 for offset import checks

* Implement import function

* Add description to offset and rotating schemas

* Add check to ensure that plan modifier is only run when at least one of the offset_* fields has been updated (hashicorp#51)

* Add test to verify behavior of time_offset resource is not altered by migrating from SDKv2 to the Framework (hashicorp#51)

* Update error message

* Implement update and partially implement read

* Refactor ModifyPlan and Import functions to use setOffsetValues helper function

* Partially implement modifyPlan function

* Implement IsRFC3339Time validator

* Start implementation of time_sleep resource

* Implement schema for time_sleep resource

* Implement replaceIfOutdated plan modifier

* Finish read implementation for time_rotating

* fix bug to remove resource after time expiration in time_rotating resource

* implement newResource and CRUD operations for time_sleep resource

* Remove unneeded code in delete method

* add Update implementation to pass values from plan to the state

* Start time_static resource migration

* Implement schema for time_static resource

* Implement importState function for time_static resource

* Implement CRUD operations for time_static resource

* Update importState implementation to populate schema fields

* Refactor time_rotating tests

* Refactor time_sleep tests

* Refactor time_static tests

* Remove SDKv2 versions of provider and resources and move tests to provider directory

* Remove provider muxer

* Address linter warnings

* Upgrade terraform-plugin-framework version to 0.13.0

* Refactor ineffectual assignments

* Add markdown description for static resource

* Move Metadata and GetSchema functions to the top of each resource

* Refactor provider name in order to remove of import alias

* Refactor hardcoded value for attribute path

* Add checks to return early if diagnostics has error

* Refactor setOffsetValues to mutate the plan

* Refactor helper functions to return errors

* Clean up syntax

* Add tests to check if resource has/hasn't been recreated

* Set unparam linter to ignore test function

* add Terraform version 1.3.* testing

* Adding a code comment

* Add defensive check for a null Plan in modifyPlan functions

* Move offset attribute validators to a ConfigValidators method

* Refactor tests to fix typos and add back previously removed test coverage

* Refactor upgrade tests to be acceptance tests instead of unit tests

* Move rotating config validations outside of attribute validation to configValidators method

* Refactor to check for null and unknown values by checking attr.Value directly

* Update comment for clarity

* Update regex for validator test

* Update CHANGELOG.md

Co-authored-by: Benjamin Bennett <[email protected]>

v0.8.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Cleanup CHANGELOG.md for 0.8.0 release (hashicorp#115)

v0.3.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
resource/time_offset: Ensure base_rfc3339 is always set in Terrafrom …

…state during creation, even if unconfigured (hashicorp#4)