Skip to content

Default channel for Sequence#1569

Merged
knative-prow-robot merged 41 commits into
knative:masterfrom
nachocano:default-channel-sequence
Jul 26, 2019
Merged

Default channel for Sequence#1569
knative-prow-robot merged 41 commits into
knative:masterfrom
nachocano:default-channel-sequence

Conversation

@nachocano
Copy link
Copy Markdown
Contributor

Helps with #1343

Proposed Changes

  • Setting a default channelTemplate for the sequence in the admission webhook, using the default channel ConfigMap introduced in PR

Release Note

Sequences do not need to specify a `spec.channelTemplate`. If they don't, a default one will be set based on the default channel configured by the operator in the `default-ch-webhook` ConfigMap.

…equence

# Conflicts:
#	pkg/apis/messaging/v1alpha1/sequence_types.go
#	pkg/apis/messaging/v1alpha1/sequence_validation.go
#	pkg/apis/messaging/v1alpha1/sequence_validation_test.go
#	pkg/reconciler/sequence/sequence_test.go
#	pkg/reconciler/testing/sequence.go
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 25, 2019
@nachocano
Copy link
Copy Markdown
Contributor Author

/cc @vaikas-google

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 25, 2019
@knative-prow-robot knative-prow-robot added the area/test-and-release Test infrastructure, tests or release label Jul 25, 2019
@nachocano
Copy link
Copy Markdown
Contributor Author

forgot to push, my bad... trying again

@nachocano
Copy link
Copy Markdown
Contributor Author

/test pull-knative-eventing-unit-tests

@knative-metrics-robot
Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/apis/messaging/v1alpha1/sequence_defaults.go 0.0% 100.0% 100.0

}

if equality.Semantic.DeepEqual(ps.ChannelTemplate, eventingduck.ChannelTemplateSpec{}) {
if ps.ChannelTemplate == nil {
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.

What happens if channelTemplate is set but empty?

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.

you mean something like:

spec:
  channelTemplate: {}

It will fail because we validate en the next lines wether it has APIVersion and Kind.

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.

Ahh, it was below the fold, so I didn't notice it.

Copy link
Copy Markdown
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

}

if equality.Semantic.DeepEqual(ps.ChannelTemplate, eventingduck.ChannelTemplateSpec{}) {
if ps.ChannelTemplate == nil {
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.

Ahh, it was below the fold, so I didn't notice it.

@knative-prow-robot knative-prow-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 26, 2019
@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Jul 26, 2019

/approve
leaving lgtm to @Harwayne since he had a question.

@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Harwayne, nachocano, vaikas-google

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:
  • OWNERS [Harwayne,vaikas-google]

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

@nachocano
Copy link
Copy Markdown
Contributor Author

Having some weird error:

/usr/local/go/pkg/tool/linux_amd64/link: signal: killed

github.com/knative/eventing/pkg/provisioners/inmemory/clusterchannelprovisioner.test

2019/07/26 17:08:09 $WORK/b345/pkg.a(go.o): error reading symbol: read $WORK/b345/pkg.a: cannot allocate memory
/usr/local/go/pkg/tool/linux_amd64/link: signal: killed

/test pull-knative-eventing-unit-tests

@knative-prow-robot knative-prow-robot merged commit ab1c5e0 into knative:master Jul 26, 2019
@vaikas vaikas mentioned this pull request Jul 26, 2019
matzew pushed a commit to matzew/eventing that referenced this pull request Jan 17, 2022
Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
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. area/test-and-release Test infrastructure, tests or release 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.

6 participants