Skip to content

PingSource broken when created before the KSVC #2994

Open
@matzew

Description

@matzew

Describe the bug

create a ping source before a ksvc, and notice that it will never go to READY state.

pingsource.sources.knative.dev/test-ping-source    False   NotFound          4m

Expected behavior

once the ksvc is there, it should go to ready state.

To Reproduce

  1. Install eventing first
  2. Creates a pingsource
  3. Install Serving
  4. Creates a ksvc
  5. Creates a new PingSource
  6. Creates a new ksvc
  7. Notice that none of the PingSources becomes Ready

Knative release version

  • 0.13
  • 0.14

Additional context

here is the yamls, I used:

  • ping.yaml:
apiVersion: sources.knative.dev/v1alpha2
kind: PingSource
metadata:
  name: test-ping-source
spec:
  schedule: "*/2 * * * *"
  jsonData: '{"message": "Hello world!"}'
  sink:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display
  • ksvc.yaml:
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: event-display
spec:
  template:
    spec:
      containers:
        - image: quay.io/openshift-knative/knative-eventing-sources-event-display:v0.13.2
  • ping2.yaml:
apiVersion: sources.knative.dev/v1alpha2
kind: PingSource
metadata:
  name: test-ping-source2
spec:
  schedule: "*/2 * * * *"
  jsonData: '{"message": "Hello world!"}'
  sink:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display2
  • ksvc2.yaml:
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: event-display2
spec:
  template:
    spec:
      containers:
        - image: quay.io/openshift-knative/knative-eventing-sources-event-display:v0.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/sourceskind/bugCategorizes issue or PR as related to a bug.triage/acceptedIssues which should be fixed (post-triage)

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions