Skip to content
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

Reduce binary size #554

Merged
merged 2 commits into from
Apr 15, 2017
Merged

Reduce binary size #554

merged 2 commits into from
Apr 15, 2017

Conversation

tgraf
Copy link
Member

@tgraf tgraf commented Apr 15, 2017

Size reduction:
 cilium            27M => 17M
 cilium-agent      37M => 37M
 cilium-docker     26M => 16M
 cilium-cni        26M => 16M

Keeping this in the generic `common/types` blows the size of all users.
Reduces size of cilium client from 45M to 37M.

Signed-off-by: Thomas Graf <thomas@cilium.io>
Also:
Including an entire package just to retrieve the definition of the
ContainerName label is pointless as it will never ever change again.

Size reduction:
 cilium            27M => 17M
 cilium-agent      37M => 37M
 cilium-docker     26M => 16M
 cilium-cni        26M => 16M

Signed-off-by: Thomas Graf <thomas@cilium.io>
@tgraf tgraf added the kind/enhancement This would improve or streamline existing functionality. label Apr 15, 2017
@tgraf tgraf added this to the 0.9 milestone Apr 15, 2017
@tgraf tgraf requested review from ianvernon and aanm April 15, 2017 10:16
)

const (
KubernetesContainerNameLabel = "io.kubernetes.container.name"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported const KubernetesContainerNameLabel should have comment (or a comment on this block) or be unexported

@tgraf tgraf merged commit fee8f1c into master Apr 15, 2017
@tgraf tgraf deleted the binary-size branch April 15, 2017 13:27
michi-covalent pushed a commit to michi-covalent/cilium that referenced this pull request May 30, 2023
The multicluster workflow uses `go run` but doesn't explicitly install a
specific Go version. Thus, in some cases an older Go version might be
used which leads to failures such as:

```
vendor/k8s.io/client-go/plugin/pkg/client/auth/exec/metrics.go:21:2: cannot find package "." in:
	/home/runner/work/cilium-cli/cilium-cli/vendor/io/fs
```

Fixes cilium#554

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This would improve or streamline existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants