mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 11:46:06 +00:00
Use factory.Namespace() to replace hardcoded velero namespace (#4346)
* Use factory.Namespace() to replace hardcoded velero namespace Signed-off-by: half-life666 <half-life@jibudata.com> * Add change log for pr 4346 Signed-off-by: half-life666 <half-life@jibudata.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Use factory.Namespace() to replace hardcoded velero namespace
|
||||
@@ -221,7 +221,7 @@ func userPriorityConfigMap() (*corev1.ConfigMap, error) {
|
||||
return nil, errors.Wrap(err, "getting Kube client")
|
||||
}
|
||||
|
||||
cm, err := kc.CoreV1().ConfigMaps("velero").Get(
|
||||
cm, err := kc.CoreV1().ConfigMaps(fc.Namespace()).Get(
|
||||
context.Background(),
|
||||
"enableapigroupversions",
|
||||
metav1.GetOptions{},
|
||||
|
||||
Reference in New Issue
Block a user