Skip to content

Commit

Permalink
adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebsyed12 committed Jan 15, 2025
1 parent d931f5f commit 6da98e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ metadata:
spec:
template:
serviceAccountName: openstack-events
# Kubernetes resource event sources
resource:
neutron-deployment:
# monitor deployment resources under openstack namespace
namespace: openstack
resource: deployments
group: apps
version: v1
# Event types to listen for (e.g., ADD, UPDATE, DELETE). Here we want only when deployment is created.
eventTypes:
- ADD
filter:
# filter based these labels to match neutron-server deployment
labels:
- key: application
value: neutron
Expand Down
4 changes: 3 additions & 1 deletion workflows/openstack/sensors/sensor-neutron-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ metadata:
spec:
template:
serviceAccountName: openstack-events
# events the Sensor listens for
dependencies:
- eventName: neutron-deployment
eventSourceName: openstack-neutron
name: openstack-neutron-server-deployment
# actions executed when dependencies are satisfied (StandardK8STrigger designed to create or update a generic Kubernetes resource.)
triggers:
- template:
name: create-provisioning-network
Expand All @@ -19,7 +21,7 @@ spec:
source:
resource:
apiVersion: batch/v1
kind: Job
kind: Job # Resource type to be created

Check warning on line 24 in workflows/openstack/sensors/sensor-neutron-deployment.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

24:25 [comments] too few spaces before comment

Check warning on line 24 in workflows/openstack/sensors/sensor-neutron-deployment.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

24:25 [comments] too few spaces before comment
metadata:
generateName: create-provision-network
spec:
Expand Down

0 comments on commit 6da98e0

Please sign in to comment.