mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-16 09:16:24 +00:00
Fix namespace typo (#3298)
Signed-off-by: Emin Aktas <emin.aktas@trendyol.com> Signed-off-by: eminaktas <eminaktas34@gmail.com>
This commit is contained in:
parent
bf662b1ed4
commit
388b160840
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ OuterLoop:
|
||||||
resourceNamespace := resource.GetNamespace()
|
resourceNamespace := resource.GetNamespace()
|
||||||
namespaceLabels = namespaceSelectorMap[resource.GetNamespace()]
|
namespaceLabels = namespaceSelectorMap[resource.GetNamespace()]
|
||||||
if resourceNamespace != "default" && len(namespaceLabels) < 1 {
|
if resourceNamespace != "default" && len(namespaceLabels) < 1 {
|
||||||
return engineResponses, policyreport.Info{}, sanitizederror.NewWithError(fmt.Sprintf("failed to get namesapce labels for resource %s. use --values-file flag to pass the namespace labels", resource.GetName()), nil)
|
return engineResponses, policyreport.Info{}, sanitizederror.NewWithError(fmt.Sprintf("failed to get namespace labels for resource %s. use --values-file flag to pass the namespace labels", resource.GetName()), nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue