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

init: kubectl at 1.7.9 (alias for kubernetes with only kubectl component) #34126

Merged
merged 1 commit into from Feb 8, 2018

Conversation

nicknovitski
Copy link
Contributor

Motivation for this change

Developers who use the kubectl command-line to communicate with remote kubernetes servers don't benefit from compiling local versions of those servers. Also, the helm command-line tool depends only on kubectl, not all of kubernetes. This change makes installing either of those tools a bit quicker.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Fits CONTRIBUTING.md.

@grahamc
Copy link
Member

grahamc commented Jan 24, 2018

@GrahamcOfBorg build kubectl

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-linux

strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/b78z0gprvyyi6rmx73ri045ymnj4rbvk-kubectl-1.7.9-man
checking for references to /tmp/nix-build-kubectl-1.7.9.drv-0 in /nix/store/b78z0gprvyyi6rmx73ri045ymnj4rbvk-kubectl-1.7.9-man...
shrinking RPATHs of ELF executables and libraries in /nix/store/4rvah8gadf9q7h0ic8fhwv9bf425pqys-kubectl-1.7.9-pause
shrinking /nix/store/4rvah8gadf9q7h0ic8fhwv9bf425pqys-kubectl-1.7.9-pause/bin/pause
strip is /nix/store/mdyy001q67hiks0g24ra53z7ckm4jfr4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/4rvah8gadf9q7h0ic8fhwv9bf425pqys-kubectl-1.7.9-pause/bin 
patching script interpreter paths in /nix/store/4rvah8gadf9q7h0ic8fhwv9bf425pqys-kubectl-1.7.9-pause
checking for references to /tmp/nix-build-kubectl-1.7.9.drv-0 in /nix/store/4rvah8gadf9q7h0ic8fhwv9bf425pqys-kubectl-1.7.9-pause...
/nix/store/4wc1yw9xd4knnl3badxcbgnfwa1lhjr9-kubectl-1.7.9

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-darwin

strip is /nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/vw3k3a0150y99jdwdjdmwsdza17k0z9l-kubectl-1.7.9/bin
patching script interpreter paths in /nix/store/vw3k3a0150y99jdwdjdmwsdza17k0z9l-kubectl-1.7.9
gzipping man pages under /nix/store/y4znpvbg4g3jmfcwqn7ypj6s3gl1ri9c-kubectl-1.7.9-man/share/man/
strip is /nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/y4znpvbg4g3jmfcwqn7ypj6s3gl1ri9c-kubectl-1.7.9-man
strip is /nix/store/i1zz228nl3bljcbb83fq0rq7lr7nvv4y-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/bf9x4jq1qzky0ng1nvp6c1ywy4xqhz35-kubectl-1.7.9-pause/bin
patching script interpreter paths in /nix/store/bf9x4jq1qzky0ng1nvp6c1ywy4xqhz35-kubectl-1.7.9-pause
/nix/store/vw3k3a0150y99jdwdjdmwsdza17k0z9l-kubectl-1.7.9

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: aarch64-linux

    k8s.io/kubernetes/hack/cmd/teststale
    k8s.io/kubernetes/vendor/github.com/jteeuwen/go-bindata/go-bindata
+++ [0124 01:32:41] Generating bindata:
    test/e2e/generated/gobindata_util.go
/build/source /build/source/test/e2e/generated
/build/source/test/e2e/generated
+++ [0124 01:33:17] Building go targets for linux/arm64:
    cmd/libs/go2idl/openapi-gen
building of '/nix/store/2kmsfqhlwp6c1bg6icbgpr5gisfk9r6z-kubectl-1.7.9.drv' timed out after 3200 seconds
error: build of '/nix/store/2kmsfqhlwp6c1bg6icbgpr5gisfk9r6z-kubectl-1.7.9.drv' failed

@nicknovitski
Copy link
Contributor Author

Huh. You'd think if the full kubernetes package didn't time out, neither would this one.

@nicknovitski nicknovitski mentioned this pull request Feb 1, 2018
8 tasks
@NeQuissimus NeQuissimus merged commit 250df5c into NixOS:master Feb 8, 2018
@NeQuissimus
Copy link
Member

Combined with this and I am happy: 😄

  nixpkgs.config.packageOverrides = super: let self = super.pkgs; in {
    kubernetes = (super.kubernetes.override { components = [ "cmd/kubectl" ]; }).overrideAttrs (oldAttrs: {
      version = "1.9.2";
      name = "kubectl-1.9.2";
      src = pkgs.fetchFromGitHub {
        owner = "kubernetes";
        repo = "kubernetes";
        rev = "v1.9.2";
        sha256 = "0yf9k08ngplqb5xwipyfp25nlb19ykh05b7l9qcvybczihdkv6p2";
      };
    });
  };

@nicknovitski
Copy link
Contributor Author

Yeah, that's almost exactly what we're doing in our local overlay, and it works fine for us. I don't really understand what's breaking in #33954, but hopefully it gets fixed soon.

@nicknovitski nicknovitski deleted the kubectl branch February 11, 2018 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants