Merge pull request #43 from mattmoor/update-ggcr

Pull in the config change to ggcr.
This commit is contained in:
Jason Hall
2019-06-23 14:09:01 -04:00
committed by GitHub
2 changed files with 5 additions and 3 deletions
Generated
+2 -2
View File
@@ -142,7 +142,7 @@
[[projects]]
branch = "master"
digest = "1:ea38e7f69c0eac433ce08e27804ab50e9f6b4454cab951ae7cb60d1b5f1e3e92"
digest = "1:e6359560ec72d5f3baf4afcd9f46fd3d62b510d3b8aef140f785d9c3d6b8e80a"
name = "github.com/google/go-containerregistry"
packages = [
"pkg/authn",
@@ -162,7 +162,7 @@
"pkg/v1/v1util",
]
pruneopts = "UT"
revision = "11836488c0a2f806544892ad2ff3ed07103e0768"
revision = "ca8b66cb1b793f7fb0e3c191ad9a37eb3dc80ea0"
[[projects]]
branch = "master"
+3 -1
View File
@@ -77,6 +77,8 @@ func Config(base v1.Image, cfg v1.Config) (v1.Image, error) {
}
cf.Config = cfg
// Downstream tooling expects these to match.
cf.ContainerConfig = cfg
return ConfigFile(base, cf)
}
@@ -468,7 +470,7 @@ func Time(img v1.Image, t time.Time) (v1.Image, error) {
// Copy basic config over
cfg.Config = ocf.Config
cfg.ContainerConfig = ocf.ContainerConfig
cfg.ContainerConfig = ocf.Config // Downstream tooling expects these to match.
// Strip away timestamps from the config file
cfg.Created = v1.Time{Time: t}