Capture context from cobra CLI and pass forward (#2551)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@ limitations under the License.
|
||||
package resources
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -29,7 +30,7 @@ import (
|
||||
)
|
||||
|
||||
type Resource interface {
|
||||
Dump(string)
|
||||
Dump(context.Context, string)
|
||||
}
|
||||
|
||||
func getFileName(dumpdir string, meta metav1.ObjectMeta) string {
|
||||
|
||||
Reference in New Issue
Block a user