-
Notifications
You must be signed in to change notification settings - Fork 4
SPKS Redis: Add extra haproxy config for metrics backends #543
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
Conversation
Signed-off-by: Nicolas Bigler <[email protected]>
|
| return runtime.NewFatalResult(fmt.Errorf("cannot parse release values from desired release: %w", err)) | ||
| } | ||
|
|
||
| haproxyExtraConfig := fmt.Sprintf(` |
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.
Couldn't we just do this with a string format PnT patch? https://docs.crossplane.io/latest/guides/function-patch-and-transform/#string-format
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.
Yes but that would result in a huge unreadable patch. Would you prefer doing it with pnt patch?
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.
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.
I thought we decided on that, we use comp-functions for SPKS only when necessary, we keep PnT as base as it used to be!
Update: One thing that I am investigating with our comp function architecture is to get out all the code that we can be configured either with project syn or another configuration manager such as KCL. So this approach here might be true for our appcat comp-functions as well.
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.
Ok. Thanks for the input. I'll close this PR as I've integrated this logic directly into PnT.
Summary
Checklist
/mergecomment.Component PR: vshn/component-appcat#1007