mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
e294e1246b
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539 This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization. |
||
---|---|---|
.. | ||
README.md | ||
send-to-webex-room.yaml |
Post a message to Webex room
This task posts a simple text message to a Webex room.
send-to-webex-room
This task uses the Messages API of Webex to send a text message. Create a bot as decribed over here.
Install the Task and create a secret
kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/send-to-webex-room/0.1/raw
Create a secret that has the Webex API bot token.
Example webex-token-secret.yaml
kind: Secret
apiVersion: v1
metadata:
name: webex-token-secret
stringData:
token: {place token of Bot}
Example kubectl command
kubectl apply -f webex-token-secret.yaml
Parameters
-
webex-token-secret-name: The name of the secret which has the Webex Bot token.
-
message: Plain text message to be posted in the chat.
-
room-id: The ID of the room to send the message. See official documentation or medium article for help to find your ID.
Platforms
The Task can be run on linux/amd64
, linux/s390x
and linux/ppc64le
platforms.
Usage
Example Tekton CLI command
tkn task start send-to-webex-room -p webex-token-secret-name=webex-token-secret -p room-id=test -p message=test
This TaskRun runs the Task to post a message to a Webex room.
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: run-send-to-webex
spec:
params:
- name: webex-token-secret-name
value: webex-token-secret
- name: message
value: "Hello from Tekton!"
- name: room-id
value: "<your target room ID>"
taskRef:
name: send-to-webex-room