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

PingSource conversion v1beta1, and crd. #3744

Merged

Conversation

lionelvillard
Copy link
Member

Part of #3606

Proposed Changes

  • Add conversion webhook
  • Add v1beta1 to CRD.

Release Note


Docs

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 28, 2020
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 28, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lionelvillard

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

@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 28, 2020
@lionelvillard
Copy link
Member Author

/cc @aliok @nachocano @bharattkukreja


return nil
default:
return fmt.Errorf("Unknown conversion, got: %T", sink)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we have been doing something like apis.ConvertToViaProxy(ctx, source, &v1beta1.PingSource{}, sink)
similar thing in the ConvertFrom

Copy link
Member Author

Choose a reason for hiding this comment

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

did it in v1alpha2. Thanks!

@nachocano
Copy link
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 28, 2020
// in v1beta1, timezone has its own field
schedule := source.Spec.Schedule
if strings.HasPrefix(schedule, "TZ=") || strings.HasPrefix(schedule, "CRON_TZ=") {
i := strings.Index(schedule, " ")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be worth adding a comment with an example string, and what you are extracting from it...
can you it in a follow up, if you agree it might be useful for future maintainers

@knative-test-reporter-robot

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/e2e.TestBrokerChannelFlowV1Beta1BrokerV1
test/e2e.TestBrokerChannelFlowV1Beta1BrokerV1/InMemoryChannel-messaging.knative.dev/v1

@lionelvillard
Copy link
Member Author

/test pull-knative-eventing-integration-tests

@knative-prow-robot knative-prow-robot merged commit a5279ea into knative:master Jul 28, 2020
@lionelvillard lionelvillard deleted the pingsource-v1beta1-conversion branch August 28, 2020 15:38
@lionelvillard lionelvillard restored the pingsource-v1beta1-conversion branch September 3, 2020 15:43
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants