-
Notifications
You must be signed in to change notification settings - Fork 980
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
Refactor/kubernetes configs split #534
Refactor/kubernetes configs split #534
Conversation
4e0b0b2
to
a8db885
Compare
Splitting configurations seems good. One suggest is using |
This PR has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this PR will be closed in 30 days |
This PR was automatically closed because of stale in 30 days |
This is sad that this PR has been stalled and closed because of a suggestion. Templating is being used for many files. Static ones may be then templated without makefile change. @repeatedly is it really a blocking suggestion ? This PR, even without replacing some |
Hi, these suggested changes are lack of COPY steps on Dockerfile like as: We should process copying files into each of images. |
@cosmo0920 you're right. So I'm willing to take back that work for a couple of hours in the current week to polish it. Will you be able to merge it before it goes stale ? Will I have to open another PR ? |
I've reopened this pull request, please continue your work here. |
fb32d5c
to
c63b930
Compare
@ashie @cosmo0920 here you are people ! I took the freedom to rebuild al src to see what outputs looks like. Waiting for your reviews |
Hmm, seeing the pollution in diffs inducted by the |
Don't worry, keep as is. |
Application of feedback fluent#534 (comment)
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.
Could you add container-image-template
and container-image-template-all
to .PHONY
placed in the tail of Makefile?
DCO check is failed: https://github.com/fluent/fluentd-kubernetes-daemonset/pull/534/checks?check_run_id=2929861869 |
As a reply to #534 (comment), I didn't test each target, since https://github.com/fluent/fluentd-kubernetes-daemonset/blob/master/MAINTAINING.md mention only Moreover, So, am I supposed to keep all the rules previously existing ? Are they all necessary ? Weren't those legacy of older build workflows ? Thank you |
The benefit of $ time make src-all
...
real 6m30.801s $ time make dockerfile-all
...
real 0m24.827s |
Sorry for the kind of WIP and broken state of the PR lately. I'm cleaning it up, and hope that this one will be the good one. Force push of all those PR commits was due to rebase onto the latest master, and addition of signoffs on each commits. |
Application of feeedback fluent#534 (comment) Signed-off-by: GerkinDev <[email protected]>
Application of feeedback fluent#534 (comment) Signed-off-by: GerkinDev <[email protected]>
e50af31
to
26b127f
Compare
Application of feedback fluent#534 (comment)
Application of feeedback fluent#534 (comment) Signed-off-by: GerkinDev <[email protected]>
26b127f
to
902d19e
Compare
Signed-off-by: GerkinDev <[email protected]>
Signed-off-by: GerkinDev <[email protected]>
Signed-off-by: GerkinDev <[email protected]>
Application of feedback fluent#534 (comment) Signed-off-by: GerkinDev <[email protected]>
Application of feeedback fluent#534 (comment) Signed-off-by: GerkinDev <[email protected]>
902d19e
to
83878ad
Compare
post-checkout-hook: | ||
if [ -n "$(findstring /arm64/,$(DOCKERFILE))" ]; then \ | ||
mkdir -p $(DOCKERFILE)/hooks; \ | ||
mkdir -p docker-image/$(DOCKERFILE)/hooks; \ |
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.
Good catch!
I wondered why broken directories are created after make src-all
for a while ago. This is the answer.
LGTM, thanks for you work! @cosmo0920 Could you double-check? |
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.
Split configurations and generating them work for me.
Okay I'll |
Ah, you don't have to generate files with make src-all. |
So do you need anything else? |
👍 |
I'd applied this patch at master: 87ec024 |
Hmm, |
Follow up for #534 Fix #583 Signed-off-by: Takuro Ashie <[email protected]>
Follow up for #534 Fix #583 Signed-off-by: Takuro Ashie <[email protected]>
This PR starts with a refactor of the makefile to mutualize redundant parts, to reduce the overall makefile size and increase its maintainability.
Then, each kubernetes source is splitted in its own erb.
Closes #531
Facilitate resolution of #519
Feedbacks welcome. More work related to #519 coming next. (I already have the fluentd conf somewhere)