kaniko/pkg/config
Andreas Fleig 01763bce5b
Fix fs_util tests failing on systems with /tmp mountpoint (#2583)
* Rename IgnoreListPath to MountInfoPath in config & constants

The string points to /proc/self/mountinfo

* fs_util_test.go: fix tests failing when /tmp mountpoint present

The tests

* Test_GetFSFromLayers_ignorelist
* Test_GetFSFromLayers_with_whiteouts_include_whiteout_disabled
* Test_GetFSFromLayers_with_whiteouts_include_whiteout_enabled

were failing on systems with a /tmp mountpoint:

fs_util.InitIgnoreList() adds all mountpoints to the ignore list,
but the tests were expecting file operations in a /tmp subdirectory.

This change provides an empty mountinfo list for the affected tests.

Fixes #1779
2023-06-19 12:01:20 -07:00
..
args.go fix: Refactor `LayersMap` to correct old strange code behavior (#2066) 2022-05-17 20:30:58 -04:00
args_test.go Allow user to provide registry certificate 2020-03-08 18:17:50 +01:00
init.go Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
options.go Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
options_test.go add boilerplate 2020-08-13 14:44:07 -07:00
stage.go Update copy command cache key logic 2019-12-09 16:48:20 -08:00