This project is mirrored from https://:*****@github.com/hashicorp/terraform.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 14 Sep, 2022 4 commits
  2. 09 Sep, 2022 2 commits
  3. 02 Sep, 2022 1 commit
    • Alisdair McDiarmid's avatar
      Merge pull request #31732 from... · 42ea0815
      Alisdair McDiarmid authored
      Merge pull request #31732 from hashicorp/backport/alisdair/typeexpr-upstreamed/annually-hopeful-filly
      
      Backport of Use upstreamed HCL typexpr package into v1.3
      42ea0815
  4. 01 Sep, 2022 2 commits
  5. 31 Aug, 2022 6 commits
  6. 30 Aug, 2022 8 commits
  7. 29 Aug, 2022 11 commits
  8. 26 Aug, 2022 6 commits
    • Martin Atkins's avatar
      command/jsonchecks: Mark check result objects as experimental · 71dec301
      Martin Atkins authored
      This is a clumsy way to do this, but a pragmatic way to inform potential
      consumers that this part of the format is not yet finalized without having
      to read the docs to see our warning about that.
      
      We need to get some practical experience with a few different consumers
      making use of this format before we can be confident that it's designed
      appropriately. We're not _expecting_ to break it, but we'd like to leave
      the opportunity open in case we quickly learn that there's something
      non-ideal about this design.
      71dec301
    • Martin Atkins's avatar
    • Martin Atkins's avatar
      addrs: Be explicit about checkable object address kinds · 0e4e9f77
      Martin Atkins authored
      Previously we were attempting to infer the checkable object address kind
      of a given address by whether it included "output" in the position where
      a resource type name would otherwise go.
      
      That was already potentially risky because we've historically not
      prevented a resource type named "output", and it's also a
      forward-compatibility hazard in case we introduce additional object kinds
      with entirely-new addressing schemes in future.
      
      Given that, we'll instead always be explicit about what kind of address
      we're storing in a wire or file format, so that we can make sure to always
      use the intended parser when reading an address back into memory, or
      return an error if we encounter a kind we're not familiar with.
      0e4e9f77
    • Martin Atkins's avatar
      command/jsonplan: Include new-style check results in JSON plan output · fe7e6f97
      Martin Atkins authored
      This is a new-shaped representation of check results which follows the
      two-tiered structure of static objects and dynamic instances of objects,
      thereby allowing consumers to see which checkable objects exist in the
      configuration even if a dynamic evaluation error prevented actually
      expanding them all to determine their declared instances.
      
      Eventually we'll include this in the state too, but this initially adds it
      only to the plan in order to replace the now-deprecated experimental
      conditions result that was present but undocumented in Terraform v1.2.
      fe7e6f97
    • Martin Atkins's avatar
      core: Propagate check results accurately from plan to apply · d63871f7
      Martin Atkins authored
      In an earlier commit we changed the states.CheckResults model to
      explicitly model the config object vs. dynamic checkable object hierarchy,
      but neglected to update the logic in Terraform Core to take that into
      account when propagating the object expansion decisions from the plan
      phase to the apply phase. That meant that we were incorrectly classifying
      zero-instance resources always as having an unknown number of instances,
      rather than possibly being known to have zero instances.
      
      This now follows the two-level heirarchy of the data structure, which has
      the nice side-effect that we can remove some of the special-case methods
      from checks.State that we were using to bulk-load data: the data is now
      shaped in the appropriate way to reload the data using the same method
      the plan phase would've used to record the results in the first place.
      d63871f7
    • Martin Atkins's avatar
      states/statefile: Serialize check results into state snapshots · 6de3b1bd
      Martin Atkins authored
      This allows us to retain check results from one run into the next, so that
      we can react to status changes between runs and potentially report e.g.
      that a previously-failing check has now been fixed, or that a
      previously-failing check is "still failing" so that an operator can get
      a hint as to whether a problem is something they've just introduced or if
      it was already an active problem before they made a change.
      6de3b1bd