-
Notifications
You must be signed in to change notification settings - Fork 13
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: support newly added template types - pulumi, k8s & workflow #428
Conversation
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.
Looking good, Notice that we renamed the blueprint type so please adjust your PR accordingly
env0/templates.go
Outdated
"terragrunt", | ||
"pulumi", | ||
"k8s", | ||
"complex", |
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.
we renamed complex
to workflow
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.
fixed.
@@ -502,7 +502,7 @@ func TestUnitTemplateResource(t *testing.T) { | |||
"repository": template.Repository, | |||
"type": "gruntyform", | |||
}), | |||
ExpectError: regexp.MustCompile(`must be one of: terragrunt, terraform`), | |||
ExpectError: regexp.MustCompile(`must be one of`), |
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.
Does this work? shouldn't it list all of the available types
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.
It works. I didn't want us to modify the test every time a new type was added.
(This test isn't beneficial, to begin with).
Since it's a regex match, it passes because the prefix never changes.
Issue & Steps to Reproduce / Feature Request
resolves #425
Solution
Added the new types to the schema (resource and data) + documentation.