Skip to content

Commit

Permalink
Add correct defaults to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Nov 3, 2022
1 parent 0a957e0 commit b8d219b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions provider/cmd/pulumi-resource-docker/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4321,11 +4321,13 @@
"properties": {
"context": {
"type": "string",
"description": "The path to the build context to use."
"description": "The path to the build context to use.",
"default": "."
},
"dockerfile": {
"type": "string",
"description": "The path to the Dockerfile to use."
"description": "The path to the Dockerfile to use.",
"default": "Dockerfile"
},
"name": {
"type": "string",
Expand All @@ -4351,11 +4353,13 @@
"inputProperties": {
"context": {
"type": "string",
"description": "The path to the build context to use."
"description": "The path to the build context to use.",
"default": "."
},
"dockerfile": {
"type": "string",
"description": "The path to the Dockerfile to use."
"description": "The path to the Dockerfile to use.",
"default": "Dockerfile"
},
"name": {
"type": "string",
Expand Down
4 changes: 4 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,12 @@ func Provider() tfbridge.ProviderInfo {
"dockerfile": {
Description: "The path to the Dockerfile to use.",
TypeSpec: schema.TypeSpec{Type: "string"},
Default: "Dockerfile",
},
"context": {
Description: "The path to the build context to use.",
TypeSpec: schema.TypeSpec{Type: "string"},
Default: ".",
},
"name": {
Description: "The image name",
Expand All @@ -172,10 +174,12 @@ func Provider() tfbridge.ProviderInfo {
"dockerfile": {
Description: "The path to the Dockerfile to use.",
TypeSpec: schema.TypeSpec{Type: "string"},
Default: "Dockerfile",
},
"context": {
Description: "The path to the build context to use.",
TypeSpec: schema.TypeSpec{Type: "string"},
Default: ".",
},
"name": {
Description: "The image name",
Expand Down

0 comments on commit b8d219b

Please sign in to comment.