mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
Fix: fix compatibility test
This commit is contained in:
@@ -209,7 +209,7 @@ func (a *AppManifestsDispatcher) retrieveLegacyResourceTrackers(ctx context.Cont
|
||||
oldRtList := &v1beta1.ResourceTrackerList{}
|
||||
if err := a.c.List(ctx, oldRtList, client.MatchingLabels{
|
||||
oam.LabelAppName: ExtractAppName(a.currentRTName, a.namespace),
|
||||
"app.oam.dev/namespace": a.namespace,
|
||||
"app.oam.dev/namesapce": a.namespace,
|
||||
}); err != nil {
|
||||
return errors.Wrap(err, "cannot retrieve legacy resource trackers with miss-spell label")
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ var _ = Describe("Test compatibility code", func() {
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: appName + "-v2-" + namespaceName,
|
||||
Labels: map[string]string{
|
||||
"app.oam.dev/namespace": namespaceName,
|
||||
"app.oam.dev/namesapce": namespaceName,
|
||||
oam.LabelAppName: appName,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user