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>pull/4372/head
parent
7c4e03e9f9
commit
71d482360f
|
@ -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{},
|
||||
|
|
Loading…
Reference in New Issue