Change container base image to cgr.dev/chainguard/static (#2881)
* Change container base image to cgr.dev/chainguard/static * Lint fixes * fix test failure * Add router deployment wait * add check command in upgrade script --------- Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ func (opts *LogSubCommand) do(input cli.Input) error {
|
||||
t = time.Now().UTC() // next time fetch values from this time
|
||||
if err != nil {
|
||||
console.Verbose(2, "error querying logs: %s", err)
|
||||
if dbType == logdb.KUBERNETES { //in case of Kubernetes log we print pod namespace warning once
|
||||
if dbType == logdb.KUBERNETES { // in case of Kubernetes log we print pod namespace warning once
|
||||
warn = false
|
||||
}
|
||||
responseChan <- struct{}{}
|
||||
@@ -116,7 +116,7 @@ func (opts *LogSubCommand) do(input cli.Input) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if dbType == logdb.KUBERNETES { //in case of Kubernetes log we print pods info only once. And then print new logs
|
||||
if dbType == logdb.KUBERNETES { // in case of Kubernetes log we print pods info only once. And then print new logs
|
||||
detail = false
|
||||
}
|
||||
responseChan <- struct{}{}
|
||||
|
||||
@@ -517,7 +517,7 @@ func localArchiveFromSpec(specDir string, aus *spectypes.ArchiveUploadSpec) (*fv
|
||||
// to do a filepath.Walk and call path.Match on each path...
|
||||
files := make([]string, 0)
|
||||
|
||||
//checking if file is a zip
|
||||
// checking if file is a zip
|
||||
if match, _ := utils.IsZip(aus.IncludeGlobs[0]); match && len(aus.IncludeGlobs) == 1 {
|
||||
files = append(files, aus.IncludeGlobs[0])
|
||||
} else {
|
||||
@@ -560,7 +560,7 @@ func localArchiveFromSpec(specDir string, aus *spectypes.ArchiveUploadSpec) (*fv
|
||||
}
|
||||
archiveFileName = archiveFile.Name()
|
||||
|
||||
//This instance is required to allow overwriting and not changing DefaultZip
|
||||
// This instance is required to allow overwriting and not changing DefaultZip
|
||||
zipOverwrite := archiver.Zip{OverwriteExisting: true}
|
||||
err = zipOverwrite.Archive(files, archiveFileName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user