Fixes prefixed annotations support.
This commit is contained in:
parent
a820585f56
commit
a179c3b399
2 changed files with 54 additions and 2 deletions
|
@ -77,13 +77,13 @@ func getAnnotationName(annotations map[string]string, name string) string {
|
|||
}
|
||||
|
||||
if _, ok := annotations[label.Prefix+name]; ok {
|
||||
return name
|
||||
return label.Prefix + name
|
||||
}
|
||||
|
||||
// TODO [breaking] remove label support
|
||||
if lbl, compat := compatibilityMapping[name]; compat {
|
||||
if _, ok := annotations[lbl]; ok {
|
||||
return name
|
||||
return lbl
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue