Skip to content

added v1beta1 apiserversource type#3614

Merged
knative-prow-robot merged 4 commits into
knative:masterfrom
capri-xiyue:apiseversource_v1beta1_type
Jul 17, 2020
Merged

added v1beta1 apiserversource type#3614
knative-prow-robot merged 4 commits into
knative:masterfrom
capri-xiyue:apiseversource_v1beta1_type

Conversation

@capri-xiyue
Copy link
Copy Markdown
Contributor

@capri-xiyue capri-xiyue commented Jul 16, 2020

Helps with #3611

Proposed Changes

  • 🎁 Adding ApiServerSource v1beta1 types.
  • Fixed bug in apiserver_lifecycle for v1alpha1 and v1alpha2

Release Note

None

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 16, 2020
@knative-prow-robot knative-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 16, 2020
@capri-xiyue
Copy link
Copy Markdown
Contributor Author

/assign @nachocano @lionelvillard

@capri-xiyue
Copy link
Copy Markdown
Contributor Author

/test pull-knative-eventing-integration-tests

}
if !deploymentAvailableFound {
PingSourceCondSet.Manage(s).MarkUnknown(PingSourceConditionDeployed, "DeploymentUnavailable", "The Deployment '%s' is unavailable.", d.Name)
apiserverCondSet.Manage(s).MarkUnknown(ApiServerConditionDeployed, "DeploymentUnavailable", "The Deployment '%s' is unavailable.", d.Name)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks for fixing this!

)

// No-op test because method does nothing.
func TestAPIServerSourceDefaults(t *testing.T) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can add logic here now, as we are doing some defaulting

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread pkg/apis/sources/v1beta1/apiserver_lifecycle.go Outdated
Comment thread pkg/apis/sources/v1beta1/apiserver_lifecycle.go Outdated
Comment thread pkg/apis/sources/v1beta1/apiserver_lifecycle_test.go Outdated
@nachocano
Copy link
Copy Markdown
Contributor

Thanks @capri-xiyue !!!
Just a few nits that I think can be removed and we get this one in.

@nachocano
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: capri-xiyue, nachocano

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

The pull request process is described here

Details 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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2020
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/sources/v1alpha2/apiserver_lifecycle.go 92.9% 96.2% 3.3
pkg/apis/sources/v1beta1/apiserver_conversion.go Do not exist 100.0%
pkg/apis/sources/v1beta1/apiserver_defaults.go Do not exist 100.0%
pkg/apis/sources/v1beta1/apiserver_lifecycle.go Do not exist 96.2%
pkg/apis/sources/v1beta1/apiserver_types.go Do not exist 100.0%
pkg/apis/sources/v1beta1/apiserver_validation.go Do not exist 90.0%

@capri-xiyue
Copy link
Copy Markdown
Contributor Author

/test pull-knative-eventing-integration-tests

@knative-test-reporter-robot
Copy link
Copy Markdown

The following jobs failed:

Test name Triggers Retries
pull-knative-eventing-integration-tests 0/3

Failed non-flaky tests preventing automatic retry of pull-knative-eventing-integration-tests:

test/conformance.TestChannelDataPlaneSuccess
test/conformance.TestChannelDataPlaneSuccess/InMemoryChannel-messaging.knative.dev/v1
test/conformance.TestChannelDataPlaneSuccess/InMemoryChannel-messaging.knative.dev/v1/full-event_encoding_structured_version_0.3

@capri-xiyue
Copy link
Copy Markdown
Contributor Author

/test pull-knative-eventing-integration-tests

@knative-prow-robot knative-prow-robot merged commit 4b0317d into knative:master Jul 17, 2020
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants