Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rgolangh/ocp-onboarding-swf


https://github.com/rgolangh/ocp-onboarding-swf

Last synced: 14 days ago
JSON representation

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 - <