fix: change Annotations to Labels

Signed-off-by: chengleqi <chengleqi5g@hotmail.com>
This commit is contained in:
chengleqi
2022-10-11 16:18:51 +08:00
parent fb45a94bb8
commit 73696d8c04

View File

@@ -880,8 +880,8 @@ func mergeCustomRules(ctx context.Context, k8sClient client.Client) error {
format string
err error
)
if item.Annotations != nil {
format = item.Annotations[oam.LabelResourceRuleFormat]
if item.Labels != nil {
format = item.Labels[oam.LabelResourceRuleFormat]
}
switch format {
case oam.ResourceTopologyFormatJSON: