Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Enable building kubectl hermetically as part of toolchain setup #229

Merged
merged 13 commits into from
Nov 21, 2018

Conversation

nlopezgi
Copy link
Contributor

@nlopezgi nlopezgi commented Nov 21, 2018

Ready for review now.
This PR enables building kubectl. This is now the default behavior which can be overriden by using a custom kubectl_configure(name="k8s_config" ...) target.
This PR resolves: #227

k8s/k8s.bzl Outdated Show resolved Hide resolved
@nlopezgi
Copy link
Contributor Author

@alex1545 fyi

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Looks awesome. We need tests and docs

strip_prefix = k8s_prefix,
urls = [("https://github.com/kubernetes/kubernetes/archive/%s.tar.gz" % k8s_commit)],
)
http_archive(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this?

Copy link
Contributor Author

@nlopezgi nlopezgi Nov 21, 2018

Choose a reason for hiding this comment

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

yes, this is what Jeff Grafton was referring to as problematic with the kubernetes repo and which would be solved by the abandoned cl (kubernetes/kubernetes#71290 (comment))

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Just a nit pick. Love this!!

Default Args:
build_srcs: Optional. Set to true to build kubectl from sources. Default: False
k8s_commit: Otional. Commit / release tag at which to build kubectl
from. Default "v1.13.0-beta.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

we need an issue to update this when 1.13 is out.

Also we need docs that only = or gt 1.13 is supported

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do docs in upcoming PR to avoid re-triggering CI.

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Let’s get docs and tests in please

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrislovecnm, nlopezgi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@chrislovecnm chrislovecnm merged commit ff2cbf0 into bazelbuild:master Nov 21, 2018
@nlopezgi nlopezgi deleted the kubectlBuild branch November 26, 2018 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubectl tool chain building kubectl from source
4 participants