-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: environment resource does not support new templateless creation #420
Conversation
"name": { | ||
Type: schema.TypeString, | ||
Description: "name to give the template", | ||
Required: templateType == TemplateTypeShared, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
varying behavior...
Type: schema.TypeString, | ||
Description: "description for the template", | ||
Optional: true, | ||
Computed: templateType == TemplateTypeSingle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
varying behavior...
} | ||
|
||
if templateType == TemplateTypeSingle { | ||
s["id"] = &schema.Schema{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
varying behavior...
need to store the template id.
d49c1b5
to
cc34ed3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Solution
This is a large/complex change. The feature will be divided into small PRs.
In this PR I've moved the template schema to a common function that receives template type (shared vs single).
part of #374