Skip to content

KAR injector support for Camel-K #19

Description

@tardieu

To deploy Camel-K integrations using kubectl with need yaml such as:

apiVersion: v1
kind: Pod
metadata:
  name: stock-source
spec:
  containers:
  - name: stock-source
    image: localhost:5000/kar/kar-examples-stock-source
    env:
    - name: KAFKA_BROKERS
      valueFrom:
        secretKeyRef:
          name: kar.ibm.com.runtime-config
          key: kafka_brokers

See https://github.com/IBM/kar/blob/main/examples/camel-k/deploy/stocks.yaml.

We could extend the mutating webhook to permit something like:

apiVersion: v1
kind: Pod
metadata:
  name: stock-source
  annotations:
    kar.ibm.com/runtime: camel
spec:
  containers:
  - name: stock-source
    image: localhost:5000/kar/kar-examples-stock-source

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions