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
operator: Ship slimmer binaries #10972
Conversation
TODOs
Follow-up TODOs
|
2fd8cbb
to
610cb76
Compare
test-me-please |
Tests fail on GKE with this:
Seems unrelated/flake. |
test-me-please |
this PR has been marked as a draft PR since it had a WIP label. Please click in "Ready for review" [below vvv ] once the PR is ready to be reviewed. CI will still run for draft PRs. |
d677fde
to
3e8edd2
Compare
3e8edd2
to
b3bf764
Compare
option.BindEnv(option.IPAM) | ||
|
||
rootCmd.PreRunE = func(cmd *cobra.Command, args []string) error { |
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's not particularly pretty, but seems okay to me. A better options would be to have a wrapper binary that calls out to the correct implementation, but I think this will do to start with.
There are still a few TODOs, but I believe it has all Go code changes need to be considered for 1.8 queue. |
{{- else if .Values.global.azure.enabled }} | ||
- cilium-operator-azure | ||
{{- else }} | ||
- cilium-operator-generic |
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.
This will imply --ipam=cluster-pool
will be the default. Is that reasonable for new installations, or we should stick to one of the older modes for some time?
test-gke |
ba36a32
to
328c8bb
Compare
This comment has been minimized.
This comment has been minimized.
328c8bb
to
bd26b4f
Compare
I've dropped Helm chart changes for now as those were incomplete, will aim to address those in a separate PR. |
This comment has been minimized.
This comment has been minimized.
bd26b4f
to
a82a505
Compare
test-4.19 |
|
- add per-provider binaries - handle --ipam flag - avoid adding deprecated flags in new binaries - continue building fat binary and maintain the same name for compatibility Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
@aanm I've addressed the 'go vet' issue, it should pass on Travis now, since it passed in Jenkins earlier, do you think we can merge without running all the tests? |
a82a505
to
3528fa9
Compare
Fixes: #10972 Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
Fixes: #10972 Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
This is a follow-up from #10758. The aim is to close #9920.
Sizes of new stripped binaries: