-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
5
-
False
-
None
-
False
-
-
-
-
AppSvc Sprint 235, AppSvc Sprint 236
Owner: Architect:
Francesco Ilario
Story (Required)
As a Primaza Developer,
I would like Service Agent to watch Service Classes' Resources
so that it will create Registered Services for new resource instances
Background (Required)
When a Service Class is created, the Service Agent looks for resources matching its specification.
The Service Agent also needs to monitor changes to resources matching the Service Class specifications and update Registered Services accordingly.
See epic for arch document link.
Glossary
See glossary in architecture document
Out of scope
NA
In Scope
- Watcher for Service Class's resource
- Handling Resource creation
- Handling Resource update
- Handling Resource deletion
Approach(Required)
When a Service Class is created, a watcher for the Service Class's resource must be registered.
When a watched resource is created/updated/deleted, the Registered Service is created/updated/deleted.
For watching resources it may be used the DynamicInformer. An example of implementation can be found here.
Demo requirements(Required)
NA
Dependencies
NA
Edge Case
NA
BDD Tests
You can find BDD Test specification for this story in the "Testing Instruction" Field Tab or in the GitHub Issue linked to this story.
Click here for all BDD Tests Issues.
Acceptance Criteria
- Development
Service Agent creates a Registered Service when a resource matching a registered Service Class is created
Service Agent updates the Registered Service when a resource matching a registered Service Class is updated
Service Agent deletes the Registered Service when a resource matching a registered Service Class is deleted
- QE
There are test cases for resource creation
There are test cases for resource update
There are test cases for resource deletion
- Docs
There is a section in our Service Agent docs dedicated to explaining how it monitors resources matching Service Classes
Update architecture document with any changes while implementing
INVEST Checklist
Dependencies identified
Blockers noted and expected delivery timelines set
Design is implementable
Acceptance criteria agreed upon
Story estimated
Legend
Unknown
Verified
Unsatisfied
- is related to
-
APPSVC-1276 Define ServiceClass and DiscoveryController
- Closed
- relates to
-
APPSVC-1322 Application Agent watches Service Bindings' resources
- Closed