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

Bump shipwright-io/build to v0.5.0 (II) #34

Merged

Conversation

HeavyWombat
Copy link
Contributor

Changes

Based on #19, but with an additional tweak for client-go in the Go modules files. Otherwise, just cherry-picked the commits by @adambkaplan and fixed the merge conflict in Go sum:

  • Fix reporting of build run status
  • Move client-go from replace to import
  • Skip resource list unit test

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

NONE

adambkaplan and others added 4 commits July 8, 2021 11:30
- Update shipwright-io/build to v0.5.0
- Update k8s.io to v0.20.2 (Kubernetes 1.20)
In v0.5.0, the BuildRun status fields "Succeeded" and "Reason" were
removed. This was replaced by the condition type "Succeeded."
Remove import and later replace of `k8s.io/client-go` by just using the import.
k8s 1.20's fake dynamic client returns an error trying to convert an
unstructured type to the list's underlying type. Skipping the resource
list unit test until the fake dynamic client is fixed upstream.

See kubernetes/client-go#983
@HeavyWombat
Copy link
Contributor Author

HeavyWombat commented Jul 8, 2021

I am currently working on the local source code EP and for this, I needed to play around with the CLI. For future updates, I would like to align the CLI a bit more to the current level of https://github.com/shipwright-io/build. That is why I wanted to start to bump the version to the latest level and sync the import style.

@otaviof @alicerum Going forward, I would like to propose to replace the dynamic client with the specific client. I have done that task in https://github.com/homeport/build-load some time ago and can offer to do the same here again.

@HeavyWombat HeavyWombat added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jul 8, 2021
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 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 Jul 8, 2021
@SaschaSchwarze0
Copy link
Member

@otaviof @alicerum Going forward, I would like to propose to replace the dynamic client with the specific client. I have done that task in https://github.com/homeport/build-load some time ago and can offer to do the same here again.

Hi @HeavyWombat you can go ahead with that. There is consensus on that aspect I'd say. The issue is Review the Need for the Dynamic-Client #24. It was also discussed in the community meeting from June 21st.

@SaschaSchwarze0
Copy link
Member

He @otaviof, @HeavyWombat rebased the commits from @adambkaplan from PR #19 that you had approved already. Can you approve this one?

Copy link
Member

@adambkaplan adambkaplan left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 14, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 14, 2021
@openshift-merge-robot openshift-merge-robot merged commit 3e80c54 into shipwright-io:main Jul 14, 2021
@HeavyWombat HeavyWombat deleted the bump/shipwright-build branch April 1, 2022 14:51
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants