We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c33614 commit d2a417eCopy full SHA for d2a417e
pkg/backup.go
@@ -222,7 +222,7 @@ func (opt *options) backupManifests(targetRef v1beta1.TargetRef) (*restic.Backup
222
}
223
224
func (opt *options) targetMatched(tref v1beta1.TargetRef, expected v1beta1.TargetRef) bool {
225
- if expected.Namespace == "" {
+ if expected.Namespace == "" && tref.Namespace != "" {
226
expected.Namespace = opt.namespace
227
228
return tref.Kind == expected.Kind && tref.Name == expected.Name && tref.Namespace == expected.Namespace
0 commit comments