-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
3
-
False
-
None
-
False
-
-
-
-
AppSvc Sprint 232, AppSvc Sprint 233, AppSvc Sprint 234
Owner: Architect:
Francesco Ilario
Story (Required)
As a developer, I would like to create cluster specific claims so that I can bind an application in a specific cluster
Background (Required)
We need to implement the ServiceClaim API as define in the Primaza architecture document.
As of now, the ServiceClaim controller can create ServiceBindings that bind a service to applications filtered by a label selector.
We also want to bind to a specific application, providing its name.
See epic for arch document link.
Glossary
See glossary in architecture document
Out of scope
- ServiceBinding API, we will use SBO for now
- No TTL
- No ClaimID
In Scope
- Push bindings and secrets to worker cluster
Approach(Required)
Add custom validation on ServiceClaims checking that ApplicationClusterContext and EnvironmentTag are not defined at the same time.
Use the ApplicationContext to select the namespace where to push the SED secret and the ServiceBinding.
The cluster provided into ApplicationContext should match with one ClusterEnvironment, and the namespaces should be also present into the cluster environment's applicationNamespaces.
If not the service binding should not be pushed and an error condition should be added into ServiceClaim's Status.
validation should check if cluster environment and namespaces exists
Demo requirements(Required)
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
ServiceClaim controller can bind an application to a service in a specific cluster namespace
Primaza validates ServiceClaim ensuring that ApplicationClusterContext and EnvironmentTag are not defined at the same time
- QE
There are test cases for binding to an application in a specific cluster namespace
There are test cases for cluster and namespace not matched with existing cluster environments
- Docs
There is a page in ServiceClaim doc dedicated to explaining how to bind to an application into a single namespace using the ApplicationClusterContext
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
- depends on
-
APPSVC-1271 Define the ServiceClaim API
- Closed
- is related to
-
APPSVC-1288 Primaza Agents deployment
- Closed
-
APPSVC-1293 Application Agent's Service Binding controller
- Closed
- relates to
-
APPSVC-1299 Claim from an Application Namespace
- Closed