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

WIP: add Apache Camel K plugin for Kind #527

Closed

Conversation

matzew
Copy link
Contributor

@matzew matzew commented Jun 20, 2024

Changes

  • adding the Camel K install for the kind-based cluster

/kind

Fixes #

Release Note


Docs


Signed-off-by: Matthias Wessendorf <[email protected]>
Copy link

knative-prow bot commented Jun 20, 2024

@matzew: The label(s) kind/<kind> cannot be applied, because the repository doesn't have them.

In response to this:

Changes

  • adding the Camel K install for the kind-based cluster

/kind

Fixes #

Release Note


Docs


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

knative-prow bot commented Jun 20, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: matzew
Once this PR has been reviewed and has the lgtm label, please assign davidhadas for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 knative-prow bot requested review from dsimansk and rhuss June 20, 2024 12:15
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 20, 2024
@matzew matzew changed the title WIPL add Apache Camel K plugin for Kind WIP: add Apache Camel K plugin for Kind Jun 20, 2024
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 20, 2024
@matzew
Copy link
Contributor Author

matzew commented Jun 20, 2024

How to test this PR?

  • Build binary (./hack/build.sh)
  • make sure helm is installed
  • run the add-on: ./kn-quickstart kind --registry --install-eventing --install-camel

Once all installed, run a simple example, such as kamelet as source.

Convenience manifest for all bits:

apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
  namespace: default
  name: kamelet-source
---
apiVersion: v1
kind: Service
metadata:
  name: kamelet-receiver-function
spec:
  selector:
    app: kamelet-receiver-function
  ports:
    - port: 80
      protocol: TCP
      targetPort: http
      name: http
---
apiVersion: v1
kind: Pod
metadata:
  name: kamelet-receiver-function
  labels:
    app: kamelet-receiver-function
spec:
  securityContext:
    runAsNonRoot: true
    seccompProfile:
      type: RuntimeDefault
  containers:
  - name: kamelet-receiver-function
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
      runAsNonRoot: true
      capabilities:
        drop:
        - ALL
      seccompProfile:
        type: RuntimeDefault
    image: registry.ci.openshift.org/openshift/knative-eventing-event-display:knative-nightly
    imagePullPolicy: Always
    ports:
    - containerPort: 8080
      protocol: TCP
      name: http
---
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
  name: trigger
spec:
  broker: kamelet-source
  subscriber:
    ref:
      apiVersion: v1
      kind: Service
      name: kamelet-receiver-function
---
apiVersion: camel.apache.org/v1
kind: Pipe
metadata:
  name: beer-source-pipe
spec:
  source:
    ref:
      kind: Kamelet
      apiVersion: camel.apache.org/v1
      name: beer-source
  sink:
    properties:
      cloudEventsType: com.corp.my.beer.source
    ref:
      kind: Broker
      apiVersion: eventing.knative.dev/v1
      name: kamelet-source

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Reopen with /reopen. Mark as fresh by adding the
comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 19, 2024
@github-actions github-actions bot closed this Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant