Skip to content

Fix install_kubebuilder.sh script #258

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

Merged

Conversation

perdasilva
Copy link
Contributor

@perdasilva perdasilva commented Mar 2, 2022

Signed-off-by: perdasilva [email protected]

The install_kubebuilder.sh script no longer seems to be working:

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    67  100    67    0     0    151      0 --:--:-- --:--:-- --:--:--   151
100 21145  100 21145    0     0  42496      0 --:--:-- --:--:-- --:--:-- 42496

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Kubebuilder installation complete!
Run the following locally to ensure kubebuilder is added to $PATH
export PATH=/home/perdasilva/sdk/go1.17.7/bin:/home/perdasilva/sdk/go1.16.14/bin:/home/perdasilva/go/bin:/home/perdasilva/bin:/home/perdasilva/miniconda3/bin:/home/perdasilva/.crc/bin/oc:/home/perdasilva/go/go1.17.6/bin:/usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/usr/local/kubebuilder/bin

It seems https://go.kubebuilder.io/releases/2.3.1/linux/amd64 no longer points to the 2.3.1 release, or is down.

This PR updates the script to download the release directly from github.

After fix:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   675  100   675    0     0   2454      0 --:--:-- --:--:-- --:--:--  2454
100 54.8M  100 54.8M    0     0  1769k      0  0:00:31  0:00:31 --:--:-- 1731k
mv: cannot create directory '/usr/local/kubebuilder': Permission denied  # <- Expected download and untaring works ^^

$ find /tmp/kubebuilder_2.3.1_linux_amd64/                                                                                              Wed 02 Mar 2022 12:24:50
/tmp/kubebuilder_2.3.1_linux_amd64/
/tmp/kubebuilder_2.3.1_linux_amd64/bin
/tmp/kubebuilder_2.3.1_linux_amd64/bin/kubebuilder
/tmp/kubebuilder_2.3.1_linux_amd64/bin/kubectl
/tmp/kubebuilder_2.3.1_linux_amd64/bin/kube-apiserver
/tmp/kubebuilder_2.3.1_linux_amd64/bin/etcd

@openshift-ci openshift-ci bot requested review from benluddy and joelanford March 2, 2022 11:21
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 2, 2022
@perdasilva perdasilva force-pushed the fix_kubebuilder_install branch from 0b03f20 to 3b0cc11 Compare March 2, 2022 11:29
@perdasilva
Copy link
Contributor Author

overriding things to get this merged asap to unblock the downstream sync. We can revert this later should the link start working again.

@perdasilva
Copy link
Contributor Author

perdasilva commented Mar 2, 2022

/override ci/prow/e2e-aws-console-olm
/override ci/prow/e2e-aws-olm
/override ci/prow/e2e-gcp
/override ci/prow/e2e-upgrade

Edit: lol, I guess I cannot....
Edit: I guess I can

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

@perdasilva: Overrode contexts on behalf of perdasilva: ci/prow/e2e-aws-console-olm, ci/prow/e2e-aws-olm, ci/prow/e2e-gcp, ci/prow/e2e-upgrade

In response to this:

/override ci/prow/e2e-upgrade
/override ci/prow/e2e-aws-console-olm
/override ci/prow/e2e-aws-olm
/override ci/prow/e2e-gcp

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@perdasilva
Copy link
Contributor Author

/label lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

@perdasilva: The label(s) /label lgtm cannot be applied. These labels are supported: platform/aws, platform/azure, platform/baremetal, platform/google, platform/libvirt, platform/openstack, ga, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, px-approved, docs-approved, qe-approved, downstream-change-needed, backport-risk-assessed, cherry-pick-approved

In response to this:

/label lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@perdasilva
Copy link
Contributor Author

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

@perdasilva: you cannot LGTM your own PR.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@perdasilva
Copy link
Contributor Author

@perdasilva: you cannot LGTM your own PR.

Damn you, robot!!!

@perdasilva perdasilva force-pushed the fix_kubebuilder_install branch from 3b0cc11 to 59947b9 Compare March 2, 2022 12:53
@camilamacedo86
Copy link
Contributor

camilamacedo86 commented Mar 2, 2022

@fgiloux @perdasilva

https://go.kubebuilder.io/dl seems to be redirected to https://github.com/kubernetes-sigs/kubebuilder/releases
https://go.kubebuilder.io/dl/latest/linux/amd64 seems to be a valid link but not https://go.kubebuilder.io/dl/2.3.1/linux/amd64 or https://go.kubebuilder.io/dl/v2.3.1/linux/amd64
cc @camilamacedo86 as she should know.

Why would we need to install KB releases < v3.0.0 such as 2.3.1? If we need the scaffold used before < v3.0.0 then we can. use go/v2 plugin instead of go/v3.

I do not see any reason for we use any version < v3.0.0 so if the changes work from v3.0.0 that shows fine for me.

@perdasilva
Copy link
Contributor Author

@camilamacedo86 At the moment this is just blocking a CI job. I could update to > 3.0.0 as a separate issue. Could we get this one through to unblock me, then I'll put up another one testing out > 3.0.0?

@@ -8,13 +8,18 @@ KUBEBUILDER_BIN=${KUBEBUILDER_BIN:=/usr/local/kubebuilder}
OS=$(go env GOOS)
ARCH=$(go env GOARCH)
KUBEBUILDER_RELEASE=2.3.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's basically the change I've made. I've put a note to say that from 3.0.0+ the url wouldn't work. This is to unblock CI. Once this is through I can look at upping the version to 3.0.0 as a different issue. wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

The URL @perdasilva is using seems to work as it is, the new format for 3.0.0+ versions is commented out.

Copy link
Contributor

@gallettilance gallettilance left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 2, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gallettilance, perdasilva

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:
  • OWNERS [gallettilance,perdasilva]

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

@perdasilva
Copy link
Contributor Author

/override ci/prow/e2e-aws-console-olm
/override ci/prow/e2e-aws-olm
/override ci/prow/e2e-gcp
/override ci/prow/e2e-upgrade

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

@perdasilva: Overrode contexts on behalf of perdasilva: ci/prow/e2e-aws-console-olm, ci/prow/e2e-aws-olm, ci/prow/e2e-gcp, ci/prow/e2e-upgrade

In response to this:

/override ci/prow/e2e-aws-console-olm
/override ci/prow/e2e-aws-olm
/override ci/prow/e2e-gcp
/override ci/prow/e2e-upgrade

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-merge-robot openshift-merge-robot merged commit 198d00f into openshift:master Mar 2, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2022

@perdasilva: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

perdasilva pushed a commit to perdasilva/operator-framework-olm that referenced this pull request Mar 7, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Mar 15, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Mar 16, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Mar 28, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Apr 6, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request May 23, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Jul 11, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Jul 17, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
tmshort pushed a commit to tmshort/operator-framework-olm that referenced this pull request Jul 20, 2023
Signed-off-by: Jordan <[email protected]>

Signed-off-by: Jordan <[email protected]>
Upstream-repository: api
Upstream-commit: 7339a22050af53df7b6f97a652b8e2d73698765a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants