-
Notifications
You must be signed in to change notification settings - Fork 39
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
added ability to set custom template delims #18
added ability to set custom template delims #18
Conversation
5f6b1ad
to
f582994
Compare
input/v1beta1/input.go
Outdated
// Template start characters | ||
LeftDelims string `json:"leftDelims,omitempty"` | ||
// Template end characters | ||
RightDelims string `json:"rightDelims,omitempty"` |
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.
// Template start characters | |
LeftDelims string `json:"leftDelims,omitempty"` | |
// Template end characters | |
RightDelims string `json:"rightDelims,omitempty"` | |
// Template start characters | |
// +optional | |
LeftDelims *string `json:"leftDelims,omitempty"` | |
// Template end characters | |
// +optional | |
RightDelims *string `json:"rightDelims,omitempty"` | |
These are optional, right? Even though this isn't a real CRD we try to follow CRD conventions. So for optional fields we want them to be pointers, and have the +optional
comment marker.
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.
Done as well
Could you please add a new directory under |
223dfec
to
48d731e
Compare
Done |
Hey @negz |
Hi @AndrewChubatiuk, thanks for your PR! It looks like some of the unit tests are failing. Could you please fix them and sign your commits? |
24351a1
to
d7703bf
Compare
HI @ezgidemirel |
input/v1beta1/input.go
Outdated
|
||
// Go Template Config | ||
// +optional | ||
Config *Config `json:"config,omitempty"` |
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.
maybe config is a bit generic? all the other fields below (source/inline/filesystem) could easily be below config
. WDYT about templateConfig
? CC @turkenh
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.
removed config
level and left just delims
config
d5fc53c
to
0bc1c01
Compare
Signed-off-by: Andrew Chubatiuk <[email protected]>
Signed-off-by: Andrew Chubatiuk <[email protected]>
Signed-off-by: Andrew Chubatiuk <[email protected]>
Signed-off-by: Andrew Chubatiuk <[email protected]>
Signed-off-by: Andrew Chubatiuk <[email protected]>
0bc1c01
to
254d529
Compare
@ezgidemirel @turkenh @phisco |
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! thanks @AndrewChubatiuk!
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.
Thanks @AndrewChubatiuk!
Description of your changes
Added ability to set custom template delims to avoid using escaping, while using Helm