Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgolangh/ocp-onboarding-swf
https://github.com/rgolangh/ocp-onboarding-swf
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rgolangh/ocp-onboarding-swf
- Owner: rgolangh
- Created: 2023-08-29T05:32:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-04T14:49:17.000Z (over 1 year ago)
- Last Synced: 2024-11-07T10:53:15.731Z (2 months ago)
- Language: Java
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OCP Onboarding workflow using Sonata Serverless Workflow
## Description
This is an OCP onboarding flow to create namespace by a Jira request.
![SWF VIZ](https://raw.githubusercontent.com/ederign/ocp-onboarding-swf/patch-1/src/main/resources/ocp-onboarding.svg)
## Generated clients involved:
- Jira with bearer token, see [specs/jira.yml](src/main/resources/specs/jira.yml)
- k8 with bearer token, [specs/kube.yaml](src/main/resources/specs/kube.yaml)### Working with Jira and K8s instances:
- Jira:
- go to your Jira profile -> Security -> Manage API tokens -> create
- K8s:
- create a service account and set its rbac:
```sh
kubectl create sa sonataflow-bot
kubectl create clusterrole ns-creator --resource=namespace --verb=get,list,create
kubectl create clusterrolebinding sonataflow-bot-ns-creator --clusterrole=ns-creator --user=sonataflow-bot
```
- create a long-lived token using a secret for a service account:
```sh
kubectl apply -f - <