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

report available status for shipwright build object #14

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

jkhelil
Copy link
Contributor

@jkhelil jkhelil commented Jul 9, 2021

Changes

Report available status for shipwright build

#7

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

When the Shipwright build controller is deployed, the ShipwrightBuild object now reports the available status of the build controller

@gabemontero
Copy link
Member

/assign @adambkaplan
/assign @otaviof

Copy link
Contributor

@coreydaley coreydaley left a comment

Choose a reason for hiding this comment

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

I think that the Kubernetes way of logging is to only start Errors with lower case letters (and maybe Debug is ok also?), and the rest like Info all start with upper case.
I believe it is the same with condition messages also.

api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
cmd/operator/main.go Outdated Show resolved Hide resolved
cmd/operator/main.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
Copy link
Member

@otaviof otaviof left a comment

Choose a reason for hiding this comment

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

Thanks, Corey!

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2021
@openshift-ci openshift-ci bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lgtm Indicates that a PR is ready to be merged. labels Aug 3, 2021
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2021
api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
@otaviof
Copy link
Member

otaviof commented Aug 16, 2021

@jkhelil thanks for the PR, it looks good! I'll add the label back again.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2021
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.

Minor items, otherwise looks good.

controllers/shipwrightbuild_controller.go Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Outdated Show resolved Hide resolved
controllers/shipwrightbuild_controller.go Show resolved Hide resolved
@adambkaplan
Copy link
Member

Verify check failed - run `make manifests` and commit the resulting changes to git.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2021
@adambkaplan
Copy link
Member

@jkhelil looks like the update to the API also requires changes to the OLM bundle resource:

Verify check failed - run `make bundle` and commit the resulting changes to git.

@adambkaplan
Copy link
Member

adambkaplan commented Aug 31, 2021

@jkhelil please review the submitter checklist:

  1. PR needs testing. At minimum the unit test should verify that we're creating the Ready status condition. See https://github.com/shipwright-io/operator/blob/main/controllers/shipwrightbuild_controller_test.go#L130-L131. Unfortunately we don't really have e2e tests yet.
  2. Needs docs - we don't have API docs yet. I recommend creating a shipwrightbuild.md file under docs/ to start an API reference.
  3. Needs a release note - the PR description needs a code block that starts with "```release-note"

@adambkaplan
Copy link
Member

/kind feature

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 31, 2021
@adambkaplan
Copy link
Member

It may be easier to update our "default" ginkgo tests to check that status is being set correctly:

https://github.com/shipwright-io/operator/blob/main/controllers/default_test.go

@gabemontero
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 5, 2021
@jkhelil
Copy link
Contributor Author

jkhelil commented Oct 6, 2021

@adambkaplan can ou approve please

@adambkaplan adambkaplan added this to the release-v0.6.0 milestone Oct 6, 2021
api/v1alpha1/shipwrightbuild_types.go Outdated Show resolved Hide resolved
@@ -42,7 +42,79 @@ spec:
type: string
type: object
status:
description: ShipwrightBuildStatus defines the observed state of Shipwright-Build
description: ShipwrightBuildStatus defines the observed state of ShipwrightBuild
Copy link
Member

Choose a reason for hiding this comment

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

Yes - @otaviof please write this up in a GitHub issue here.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 7, 2021
@jkhelil jkhelil force-pushed the BUILD-259 branch 3 times, most recently from 4fdecb9 to b8ea1dc Compare October 7, 2021 15:25
@otaviof
Copy link
Member

otaviof commented Oct 7, 2021

@jkhelil Having a look on the lastest CI run, I think the flag -ginkgo.v is not working anymore, we should instead use -test.v. Please have a look.

@jkhelil
Copy link
Contributor Author

jkhelil commented Oct 8, 2021

@jkhelil Having a look on the lastest CI run, I think the flag -ginkgo.v is not working anymore, we should instead use -test.v. Please have a look.

replaced with -test.v -test.failfast

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.

One last style item on the unit test.

api/v1alpha1/shipwrightbuild_types_test.go Outdated Show resolved Hide resolved
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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 20, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 20, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan, gabemontero

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 Oct 20, 2021
@adambkaplan
Copy link
Member

Docs to be addressed in #24

@openshift-merge-robot openshift-merge-robot merged commit e8dfb0e into shipwright-io:main Oct 20, 2021
@adambkaplan
Copy link
Member

This fixed #7

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/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants