Skip to content

Commit 9e3c449

Browse files
authored
Include version in state and plan (#4126)
## Changes - Include state_version=1 in the state. - Include plan_version=1 in the plan. - Include cli_version in both. ## Why Good for debugging. In the future we might want to introduce version 2, this would help. We'll have to support reading state without the version info though. We don't yet read plans, so once we start doing it (#4094), we can limit ourselves to plan_version==1.
1 parent dda3340 commit 9e3c449

File tree

258 files changed

+574
-20
lines changed

Some content is hidden

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

258 files changed

+574
-20
lines changed

acceptance/bundle/artifacts/whl_dynamic/out.plan_create.direct.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.test_job": {
46
"action": "create",

acceptance/bundle/artifacts/whl_dynamic/out.plan_create.terraform.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.test_job": {
46
"action": "create"

acceptance/bundle/artifacts/whl_dynamic/out.plan_update.direct.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.test_job": {
46
"action": "update",

acceptance/bundle/artifacts/whl_dynamic/out.plan_update.terraform.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.test_job": {
46
"action": "update"

acceptance/bundle/migrate/basic/out.new_state.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"state_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"lineage": "[UUID]",
35
"serial": 6,
46
"state": {

acceptance/bundle/migrate/basic/out.plan_update.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.test_job": {
46
"action": "update",

acceptance/bundle/migrate/dashboards/out.new_state.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"state_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"lineage": "[UUID]",
35
"serial": 3,
46
"state": {

acceptance/bundle/migrate/dashboards/out.plan_after_migrate.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.dashboards.dashboard1": {
46
"action": "skip",

acceptance/bundle/migrate/default-python/out.plan_after_deploy.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.sample_job": {
46
"depends_on": [

acceptance/bundle/migrate/default-python/out.plan_after_migration.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"plan_version": 1,
3+
"cli_version": "[DEV_VERSION]",
24
"plan": {
35
"resources.jobs.sample_job": {
46
"depends_on": [

0 commit comments

Comments
 (0)