-
Story
-
Resolution: Done
-
Critical
-
None
-
None
-
3
-
False
-
None
-
False
-
-
-
-
AppSvc Sprint 238, AppSvc Sprint 239
Owner: Architect:
Francesco Ilario
Story (Required)
As a Primaza Administrator,
I would like to create ServiceClasses that express the reference to a secrets field by the mean of constants
so that I can reference non-spec referenced secrets
Background (Required)
Actually only Secrets referenced from ServiceClasses specification can be used for extracting data.
We want to provide the user the possibility to say use this secret or that secret field that I'm explicitly targeting in ServiceClass spec.
See epic for arch document link.
Glossary
See glossary in architecture document
Out of scope
NA
In Scope
- Constant sub-field in SecretRefFields structure
Approach(Required)
Declare a FieldMapping struct like the following:
// +kubebuilder:validation:MaxProperties:=1 // +kubebuilder:validation:MinProperties:=1 type FieldMapping struct { // Constant is a constant value for the field Constant *string `json:"constant,omitempty"` // JsonPathExpr represents a jsonPath for extracting the field JsonPathExpr *string `json:"jsonPath,omitempty"` }
and use it in ServiceClassSecretRefFieldMapping for fields SecretName and SecretKey
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
FieldMapping is used in ServiceClass' SecretRefField
- QE
There are test cases for Constant value in ServiceClass' SecretRefField
- Docs
There is a section in our docs dedicated to explaining how SecretRefField extraction works
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