Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
ACTIVATE := $(VENV_DIR)/bin/activate
endif

WFTMPLS := $(wildcard workflows/*/workflowtemplates/*.yaml)
WFTMPLS := $(wildcard components/*-workflows/*/workflowtemplates/*.yaml)

.PHONY: help
help: ## Displays this help message
Expand All @@ -31,6 +31,8 @@ $(ACTIVATE): requirements-docs.txt
.PHONY: wftmpls
wftmpls: $(WFTMPLS) $(ACTIVATE)
@mkdir -p docs/workflows
@$(PYTHON) scripts/argo-workflows-to-mkdocs.py components/global-workflows docs/workflows
@$(PYTHON) scripts/argo-workflows-to-mkdocs.py components/site-workflows docs/workflows
@$(PYTHON) scripts/argo-workflows-to-mkdocs.py workflows docs/workflows

.PHONY: docs
Expand Down
8 changes: 8 additions & 0 deletions apps/global/global-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
component: global-workflows
componentNamespace: nautobot
sources:
- ref: understack
path: 'components/global-workflows'
- ref: deploy
path: '{{.name}}/manifests/global-workflows'
6 changes: 0 additions & 6 deletions apps/global/nautobot-workflows.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions apps/site/argo-events-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ componentNamespace: argo-events
sources:
- ref: understack
path: 'workflows/argo-events'
- ref: deploy
path: '{{.name}}/manifests/argo-events-workflows'
6 changes: 0 additions & 6 deletions apps/site/openstack-workflows.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions apps/site/site-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
component: site-workflows
componentNamespace: openstack
sources:
- ref: understack
path: 'components/site-workflows'
- ref: deploy
path: '{{.name}}/manifests/site-workflows'
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: nautobot

resources:
- eventbus/eventbus-default.yaml
- eventbus/poddisruptionbudget-eventbus-default-pdb.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: openstack

resources:
- eventbus/eventbus-default.yaml
- eventbus/poddisruptionbudget-eventbus-default-pdb.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
name: keystone-event-project
namespace: argo-events
annotations:
workflows.argoproj.io/title: CRUD Nautobot Tenants from Keystone Projects
workflows.argoproj.io/description: |+
Expand All @@ -24,7 +23,7 @@ metadata:
-p event_type identity.project.created -p project_uuid=00000000-0000-0000-0000-000000000000
```

Defined in `workflows/openstack/sensor-keystone-event-project.yaml`
Defined in `components/site-workflows/sensors/sensor-keystone-event-project.yaml`
spec:
dependencies:
- eventName: notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
name: neutron-event-network-segment-range
namespace: argo-events
annotations:
workflows.argoproj.io/title: Add/edit Nautobot UCVNIGroup range field on Neutron network-segment-range operations
workflows.argoproj.io/description: |+
Expand All @@ -18,7 +17,7 @@ metadata:
-p event_type network_segment_range.create.end -p segment_min_range=1800 segment_max_range=3799
```

Defined in `workflows/openstack/sensor-neutron-event-network-segment-range.yaml`
Defined in `components/site-workflows/sensors/sensor-neutron-event-network-segment-range.yaml`
spec:
dependencies:
- eventName: notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@ apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
name: neutron-oslo-event
namespace: argo-events
annotations:
workflows.argoproj.io/title: Add/edit Nautobot objects according to Neutron events
workflows.argoproj.io/description: |+
Triggers on Events from Neutron:

- network create/update/delete

Submits argo-events using workflowtemplate/openstack-oslo-event
Submits workflow using workflowtemplate/openstack-oslo-event

Defined in `workflows/openstack/sensor-neutron-oslo-event.yaml`
Defined in `components/site-workflows/sensors/sensor-neutron-oslo-event.yaml`
spec:
dependencies:
- eventName: notifications
Expand Down
3 changes: 0 additions & 3 deletions workflows/argo-events/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# this is where our workflows currently run
namespace: argo-events

resources:
- eventbus/eventbus-default.yaml
- eventbus/poddisruptionbudget-eventbus-default-pdb.yaml
Expand Down
7 changes: 0 additions & 7 deletions workflows/kustomization.yaml

This file was deleted.

Loading