-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renderer for kubernetes metadata #4675
Conversation
c3a701a
to
b51445b
Compare
bd39b6c
to
66a6c01
Compare
Updating to 'ready for review'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great progress on this, some feedback.
|
||
// mergeMaps merges meta, spec annotations/labels in the sequence env+app map->current map | ||
func mergeKubernetesMetadataMaps(cascadeMap map[string]string, currMap map[string]string, metaMap map[string]string, specMap map[string]string) (map[string]string, map[string]string) { | ||
currMap = labels.Merge(cascadeMap, currMap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the above line for?
d00d41c
to
d51895b
Compare
setAnnotations(o, metaAnnotations, specAnnotations) | ||
} | ||
|
||
if kubeMetadataExt != nil && kubeMetadataExt.Labels != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same applies to these as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required because in this update after line 56, we don't return if the extension doesn't exist we continue ahead so kubeMetadataExt could be nil
8beea8d
to
7ce13d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff!
7ce13d5
to
af16abf
Compare
Description
This PR creates renderers for Kubernetes Metadata extension. We will begin with first making it work for Containers and then update to cascade values from Env and Application extensions if they exist.
4351
Fixes: #4353
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: