mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-20 17:47:15 +00:00
fix: change Annotations to Labels
Signed-off-by: chengleqi <chengleqi5g@hotmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user