feat(discovery): implement publication fillStrategy and additional context #785
+269
−123
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.
Depends on cryostatio/cryostat#1258
Closes #779
See cryostatio/cryostat-operator#1218 (comment)
Map. This is a convenient feature in general, but essentially required for the next point:cryostat.agent.publish.context, which is aMap<String, String>of additional contextual information that the Agent should pass along to Cryostat when it performs its discovery publication step (ie advertising its own presence as a connectable Target). This may be used for other purposes in the future, but for now the intended use is discussed here: feat(autoconfig): inject Agent discovery augmentations cryostat-operator#1218 (comment) . The Cryostat Operator will set environment variables on autoconfigured Pods so that the Pod name and namespace can be passed on to Cryostat along with the self-describing nodes that the Agent publishes. See feat(discovery): implement subtree fill algorithm, plugin publication context cryostat#1258 for the server-side PR which handles this new data.cryostat.agent.publish.fill-strategy, which tells Cryostat what kind of context the Agent finds itself in and what kind of augmentation Cryostat should do to the nodes published by this Agent. See the Cryostat PR for a detailed explanation of theKUBERNETESstrategy.FIXME:
See smallrye/smallrye-config#1287