Skip to content

Instantly share code, notes, and snippets.

@maximilien
Last active January 15, 2025 21:18
Show Gist options
  • Save maximilien/feb903214b34e4eb035625c3a3413dc9 to your computer and use it in GitHub Desktop.
Save maximilien/feb903214b34e4eb035625c3a3413dc9 to your computer and use it in GitHub Desktop.
Bee Hive - YAML - Conditional 1
apiVersion: beehive/v1
kind: Workflow
metadata:
name: beehive-deployment
labels:
app: example2
spec:
strategy:
type: sequence
template:
metadata:
labels:
app: mas
use-case: cbom
agents:
- finder
- fixer
- writer
steps:
exception:
- step4
step1:
finder:
code: |
# code here
step2:
condition:
if: |
# expression
then:
step1: |
# additional code
else: |
# additional code
step3:
writer:
code: |
# code here
step4:
code: |
# exception code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment