-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
switch off of the bazel debs #335
switch off of the bazel debs #335
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder 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 |
3061d6c
to
e43cdf2
Compare
e43cdf2
to
5e8627c
Compare
all the builds passed this time, pushing a slight cleanup / refactor |
5e8627c
to
c1af70b
Compare
/hold cancel |
if err := install.Run("/bin/sh", "-c", "dpkg -i "+debs); err != nil { | ||
log.Errorf("Debian install failed! %v", err) | ||
return err | ||
kindBinDir := path.Join(install.BasePath(), "bin") |
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 is the install logic from the make/bash/docker build, they match now
c1af70b
to
7bb6beb
Compare
7bb6beb
to
cac4a6e
Compare
filepath.Join(buildDir, "debs", "kubelet.deb"): "debs/kubelet.deb", | ||
filepath.Join(buildDir, "debs", "kubectl.deb"): "debs/kubectl.deb", | ||
filepath.Join(buildDir, "debs", "kubernetes-cni.deb"): "debs/kubernetes-cni.deb", | ||
filepath.Join(buildDir, "debs", "cri-tools.deb"): "debs/cri-tools.deb", |
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.
How are cri-tools and kubernetes-cni now installed? Don't see any references to them elsewhere 🙄
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.
they're installed in the base image, this is now on par with the make/bash/docker build.
these debs just wrap downloading a copy of a stable release of these based on WORKSPACE, we do ~the same in the base image already.
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.
or rather CNI is:
Lines 82 to 92 in 6f430d3
# Install CNI binaries to /opt/cni/bin | |
# TODO(bentheelder): doc why / what here | |
ARG CNI_VERSION="0.6.0" | |
ARG CNI_TARBALL="cni-plugins-${ARCH}-v${CNI_VERSION}.tgz" | |
ARG CNI_BASE_URL="https://storage.googleapis.com/kubernetes-release/network-plugins/" | |
ARG CNI_URL="${CNI_BASE_URL}${CNI_TARBALL}" | |
RUN curl -sSL --retry 5 --output /tmp/cni.tgz "${CNI_URL}" \ | |
&& sha256sum /tmp/cni.tgz \ | |
&& mkdir -p /opt/cni/bin \ | |
&& tar -C /opt/cni/bin -xzf /tmp/cni.tgz \ | |
&& rm -rf /tmp/cni.tgz |
but cri-tools was only to satisfy the deb install requirements, we don't use those while we're on the dockershim path.
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.
if/when we take a poke at CRI path we can install these to the base image, they have stable releases and don't change often in the kubernetes WORKSPACE
, and IIRC are backwards/forwards compatible.
/lgtm |
/lgtm |
all of the builds passed again, so we're just waiting for the e2es 😅 |
* version v0.18.0-alpha * update docs for v0.17.0 * fix kind version in readme * comments-update-buildcontext * Added validations for azs, k8sVersion, vpcs and subnets in each provider * fixing dependency bugs * Merge with master * fixed gcp * Update pkg/cluster/internal/validate/gcp.go Co-authored-by: esierra-stratio <102975650+esierra-stratio@users.noreply.github.com> * fixed build * Update CHANGELOG.md --------- Co-authored-by: Benjamin Elder <bentheelder@google.com> Co-authored-by: Daman <aroradaman@gmail.com> Co-authored-by: Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> Co-authored-by: esierra-stratio <102975650+esierra-stratio@users.noreply.github.com>
* chore: bump azure provider * bump azure provider version * [CLOUD-109] Integrar GKE como nuevo provider (kubernetes-sigs#320) * Initial gke support * Fix gcr authentication * Minor fixes * Fix gcr authentication * Enable machine pools for gke * Enable gke in capg * Add google artifact registry support * Add gke version validation * Improve error message * Update cluster-operator version * Fix gke install logic * Improve execute command retries (kubernetes-sigs#298) * Improve execute command retries * Fix kubeconfig condition * Fix ecr login when ecr is in another region * Remove comment * [BUILD] 0.17.0-0.3.0: New pre-release * Prepare for next version: 0.17.0-0.3.0-SNAPSHOT * Prepare for next version: 0.17.0-0.3.1-SNAPSHOT * Improve retry logic --------- Co-authored-by: stratiocommit <stratiocommit@stratio.com> * Feature/add infra validations (kubernetes-sigs#335) * version v0.18.0-alpha * update docs for v0.17.0 * fix kind version in readme * comments-update-buildcontext * Added validations for azs, k8sVersion, vpcs and subnets in each provider * fixing dependency bugs * Merge with master * fixed gcp * Update pkg/cluster/internal/validate/gcp.go Co-authored-by: esierra-stratio <102975650+esierra-stratio@users.noreply.github.com> * fixed build * Update CHANGELOG.md --------- Co-authored-by: Benjamin Elder <bentheelder@google.com> Co-authored-by: Daman <aroradaman@gmail.com> Co-authored-by: Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com> Co-authored-by: esierra-stratio <102975650+esierra-stratio@users.noreply.github.com> * version v0.18.0-alpha * delete unneeded files * add CHANGELOG --------- Co-authored-by: Francisco Augusto <faugusto@stratio.com> Co-authored-by: stratiocommit <stratiocommit@stratio.com> Co-authored-by: lreciomelero <120394823+lreciomelero@users.noreply.github.com> Co-authored-by: Benjamin Elder <bentheelder@google.com> Co-authored-by: Daman <aroradaman@gmail.com> Co-authored-by: Kubernetes Prow Robot <k8s-ci-robot@users.noreply.github.com>
easiest answer to fixing the bazel build after cross compliation landed.
/hold
positive:
negative: