-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(terraform): rework dep types (#9116)
Improves the `depType` values returned by the terraform manager. Closes #8792 BREAKING CHANGE: Values for extracted `depType` in terraform manager have changed, please see the `terraform` manager readme for details.
- Loading branch information
Showing
8 changed files
with
98 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,23 @@ Object { | |
"currentValue": "1.0.1", | ||
"datasource": "helm", | ||
"depName": "redis", | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
"https://charts.helm.sh/stable", | ||
], | ||
}, | ||
Object { | ||
"datasource": "helm", | ||
"depName": "redis", | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
"https://charts.helm.sh/stable", | ||
], | ||
}, | ||
Object { | ||
"datasource": "helm", | ||
"depName": "./charts/example", | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
undefined, | ||
], | ||
|
@@ -33,7 +33,7 @@ Object { | |
"currentValue": "4.0.1", | ||
"datasource": "helm", | ||
"depName": undefined, | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
"https://charts.helm.sh/stable", | ||
], | ||
|
@@ -43,7 +43,7 @@ Object { | |
"currentValue": "5.0.1", | ||
"datasource": "helm", | ||
"depName": "redis", | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
"https://charts.helm.sh/stable", | ||
], | ||
|
@@ -52,7 +52,7 @@ Object { | |
"currentValue": "6.0.1", | ||
"datasource": "helm", | ||
"depName": "redis", | ||
"depType": "helm", | ||
"depType": "helm_release", | ||
"registryUrls": Array [ | ||
undefined, | ||
], | ||
|
@@ -68,86 +68,86 @@ Object { | |
"currentValue": "v1.0.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/hashicorp/example", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "next", | ||
"datasource": "github-tags", | ||
"depName": "github.com/hashicorp/example", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "tfmodule_one-v0.0.9", | ||
"datasource": "github-tags", | ||
"depName": "github.com/githubuser/myrepo", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "githubuser/myrepo", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/hashicorp/example.2.3", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "hashicorp/example.2.3", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/hashicorp/example.2.3", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "hashicorp/example.2.3", | ||
}, | ||
Object { | ||
"currentValue": "0.1.0", | ||
"datasource": "terraform-module", | ||
"depName": "hashicorp/consul/aws", | ||
"depType": "terraform", | ||
"depType": "module", | ||
}, | ||
Object { | ||
"currentValue": "v0.1.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/tieto-cem/terraform-aws-ecs-task-definition", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "tieto-cem/terraform-aws-ecs-task-definition", | ||
}, | ||
Object { | ||
"currentValue": "v0.1.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/tieto-cem/terraform-aws-ecs-task-definition", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "tieto-cem/terraform-aws-ecs-task-definition", | ||
}, | ||
Object { | ||
"currentValue": "v2.0.0", | ||
"datasource": "github-tags", | ||
"depName": "github.com/hashicorp/example", | ||
"depType": "github", | ||
"depType": "module", | ||
"lookupName": "hashicorp/example", | ||
}, | ||
Object { | ||
"datasource": "terraform-module", | ||
"depName": "terraform-aws-modules/security-group/aws", | ||
"depType": "terraform", | ||
"depType": "module", | ||
}, | ||
Object { | ||
"currentValue": "<= 2.4.0", | ||
"datasource": "terraform-module", | ||
"depName": "terraform-aws-modules/security-group/aws", | ||
"depType": "terraform", | ||
"depType": "module", | ||
}, | ||
Object { | ||
"currentValue": "1.28.3", | ||
"datasource": "terraform-module", | ||
"depName": "particuleio/addons/kubernetes", | ||
"depType": "terraform", | ||
"depType": "module", | ||
}, | ||
Object { | ||
"currentValue": "~> 1.1.0", | ||
"datasource": "terraform-module", | ||
"depName": "app.terraform.io/example-corp/k8s-cluster/azurerm", | ||
"depType": "terraform", | ||
"depType": "module", | ||
"registryUrls": Array [ | ||
"https://app.terraform.io", | ||
], | ||
|
@@ -156,7 +156,7 @@ Object { | |
"currentValue": "~> 1.1", | ||
"datasource": "terraform-module", | ||
"depName": "app.terraform.io/example-corp/k8s-cluster/azurerm", | ||
"depType": "terraform", | ||
"depType": "module", | ||
"registryUrls": Array [ | ||
"https://app.terraform.io", | ||
], | ||
|
@@ -165,7 +165,7 @@ Object { | |
"currentValue": "~~ 1.1", | ||
"datasource": "terraform-module", | ||
"depName": "app.terraform.io/example-corp/k8s-cluster/azurerm", | ||
"depType": "terraform", | ||
"depType": "module", | ||
"registryUrls": Array [ | ||
"https://app.terraform.io", | ||
], | ||
|
@@ -174,7 +174,7 @@ Object { | |
"currentValue": ">= 1.0.0, <= 2.0.0", | ||
"datasource": "terraform-module", | ||
"depName": "hashicorp/consul/aws", | ||
"depType": "terraform", | ||
"depType": "module", | ||
}, | ||
Object { | ||
"skipReason": "local", | ||
|
@@ -186,97 +186,98 @@ Object { | |
"currentValue": "1.36.1", | ||
"datasource": "terraform-provider", | ||
"depName": "azurerm", | ||
"depType": "terraform", | ||
"depType": "provider", | ||
}, | ||
Object { | ||
"currentValue": "=2.4", | ||
"datasource": "terraform-provider", | ||
"depName": "gitlab", | ||
"depType": "terraform", | ||
"depType": "provider", | ||
}, | ||
Object { | ||
"currentValue": "=1.3", | ||
"datasource": "terraform-provider", | ||
"depName": "gitlab", | ||
"depType": "terraform", | ||
"depType": "provider", | ||
}, | ||
Object { | ||
"datasource": "terraform-provider", | ||
"depName": "helm", | ||
"depType": "terraform", | ||
"depType": "provider", | ||
}, | ||
Object { | ||
"currentValue": "V1.9", | ||
"datasource": "terraform-provider", | ||
"depName": "newrelic", | ||
"depType": "terraform", | ||
"depType": "provider", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.0", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "https://bitbucket.com/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.0", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "https://bitbucket.com/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "next", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "https://bitbucket.com/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.1", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "https://bitbucket.com/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.2", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "http://bitbucket.com/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": "v1.0.3", | ||
"datasource": "git-tags", | ||
"depName": "bitbucket.com/hashicorp/example", | ||
"depType": "gitTags", | ||
"depType": "module", | ||
"lookupName": "ssh://[email protected]/hashicorp/example", | ||
}, | ||
Object { | ||
"currentValue": ">= 2.7.0", | ||
"datasource": "terraform-provider", | ||
"depName": "aws", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
}, | ||
Object { | ||
"currentValue": ">= 2.0.0", | ||
"datasource": "terraform-provider", | ||
"depName": "azurerm", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
}, | ||
Object { | ||
"currentValue": ">= 0.13", | ||
"datasource": "github-tags", | ||
"depName": "hashicorp/terraform", | ||
"depType": "required_version", | ||
"extractVersion": "v(?<version>.*)$", | ||
"lineNumber": 230, | ||
}, | ||
Object { | ||
"currentValue": "2.7.2", | ||
"datasource": "terraform-provider", | ||
"depName": "docker", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
"registryUrls": Array [ | ||
"https://releases.hashicorp.com", | ||
], | ||
|
@@ -285,34 +286,34 @@ Object { | |
"currentValue": "2.7.0", | ||
"datasource": "terraform-provider", | ||
"depName": "aws", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
"lookupName": "aws", | ||
}, | ||
Object { | ||
"currentValue": "=2.27.0", | ||
"datasource": "terraform-provider", | ||
"depName": "azurerm", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
}, | ||
Object { | ||
"currentValue": "1.2.4", | ||
"datasource": "terraform-provider", | ||
"depName": "invalid", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
"skipReason": "unsupported-url", | ||
}, | ||
Object { | ||
"currentValue": "1.2.4", | ||
"datasource": "terraform-provider", | ||
"depName": "helm", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
"lookupName": "hashicorp/helm", | ||
}, | ||
Object { | ||
"currentValue": ">= 1.0", | ||
"datasource": "terraform-provider", | ||
"depName": "kubernetes", | ||
"depType": "terraform", | ||
"depType": "required_provider", | ||
"lookupName": "hashicorp/kubernetes", | ||
"registryUrls": Array [ | ||
"https://terraform.example.com", | ||
|
@@ -324,6 +325,7 @@ Object { | |
"currentValue": "1.7.8", | ||
"datasource": "docker", | ||
"depName": "nginx", | ||
"depType": "docker_image", | ||
"replaceString": "nginx:1.7.8", | ||
}, | ||
Object { | ||
|
@@ -332,6 +334,7 @@ Object { | |
Object { | ||
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}", | ||
"datasource": "docker", | ||
"depType": "docker_image", | ||
"replaceString": "\${data.docker_registry_image.ubuntu.name}", | ||
"skipReason": "contains-variable", | ||
}, | ||
|
@@ -341,6 +344,7 @@ Object { | |
"currentValue": "1.7.8", | ||
"datasource": "docker", | ||
"depName": "nginx", | ||
"depType": "docker_container", | ||
"replaceString": "nginx:1.7.8", | ||
}, | ||
Object { | ||
|
@@ -352,6 +356,7 @@ Object { | |
"currentValue": "v1", | ||
"datasource": "docker", | ||
"depName": "repo.mycompany.com:8080/foo-service", | ||
"depType": "docker_service", | ||
"replaceString": "repo.mycompany.com:8080/foo-service:v1", | ||
}, | ||
Object { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.