rebase: update kubernetes to v1.20.0

updated kubernetes packages to latest
release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2020-12-17 17:58:29 +05:30
committed by mergify[bot]
parent 4abe128bd8
commit 83559144b1
1624 changed files with 247222 additions and 160270 deletions

View File

@ -47,6 +47,14 @@ func initializeInfoCache() {
}
}
func EnableFileCache() {
fileCacheEnable = true
}
func EnableInfoCache() {
infoCacheEnable = true
}
func DisableFileCache() {
fileCacheEnable = false
}
@ -78,10 +86,19 @@ func GetInfoCache() map[string]interface{} {
return infoCache
}
func ClearFileCache() {
fileCache = make(map[string][]byte, 0)
}
func ClearInfoCache() {
infoCache = make(map[string]interface{})
}
func ClearCaches() {
ClearFileCache()
ClearInfoCache()
}
// FetchFile gets a specified file from the local filesystem or a remote location.
func FetchFile(fileurl string) ([]byte, error) {
var bytes []byte