feat: ksbp-58641 extend k8s deployer with component dependencies #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extend PIT configuration file with component dependencies
Feature justification
With more dependent components required to be up-and-running before starting the DPT tests, the current naive sequential deployment and un-deployment ordering is limited to handle complex dependencies. Thus, the toolkit needs to be extended.
Feature descriptions
Optional
dependsOnfield on each component and is respected by the deployer when set.Backward compatibility
This extension is backward compatible and doesn't introduce breaking changes.
dependsOnfield is optional, indicating no dependencies if the field is not present.dependsOnfield is not present in any of the components, all components are considered at the same topological level. In this case, the deployment and un-deployment order follows the component definition order in the PIT yaml file, which is consistent with previous behaviour.Therefore, this extension doesn't break existing PIT configs.
Thorough unit tests
All newly introduced behaviours and backward compatibility have been covered by unit tests.