This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch kube-pods in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1a8895a3860f12564da1317763e0b19d7b198efe Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Sep 1 15:04:03 2021 +0200 Added Kubernetes Pods Source Kamelets --- kubernetes-pods-source.kamelet.yaml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/kubernetes-pods-source.kamelet.yaml b/kubernetes-pods-source.kamelet.yaml new file mode 100644 index 0000000..a970672 --- /dev/null +++ b/kubernetes-pods-source.kamelet.yaml @@ -0,0 +1,55 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: Kamelet +metadata: + name: kubernetes-pods-source + annotations: + camel.apache.org/kamelet.support.level: "Preview" + camel.apache.org/catalog.version: "main-SNAPSHOT" + camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Im [...] + camel.apache.org/provider: "Apache Software Foundation" + camel.apache.org/kamelet.group: "Kubernetes" + labels: + camel.apache.org/kamelet.type: "source" +spec: + definition: + title: "Kubernetes Pods source" + description: |- + Consume Events from Kubernetes Pods + required: + - token + - masterUrl + type: object + properties: + token: + title: Oauth Token + description: The Auth Token to connect to Kubernetes Cluster + type: string + masterUrl: + title: Kubernetes Master URL + description: The Kubernetes Cluster Master URL + type: string + format: password + x-descriptors: + - urn:alm:descriptor:com.tectonic.ui:password + resourceName: + title: Resource Name + description: The Resource Name we want to watch + type: string + types: + out: + mediaType: application/json + dependencies: + - "camel:kubernetes" + - "camel:kamelet" + - "camel:jackson" + flow: + from: + uri: "kubernetes-pods://{{masterUrl}}" + parameters: + oauthToken: "{{token}}" + resourceName: "{{?resourceName}}" + steps: + - marshal: + json: {} + - to: "kamelet:sink" +