1
0
mirror of https://github.com/ko-build/ko.git synced 2025-07-15 23:54:17 +02:00

Remove deprecated things. (#162)

Fixes: https://github.com/google/ko/issues/158
Fixes: https://github.com/google/ko/issues/160
This commit is contained in:
Matt Moore
2020-09-24 16:14:58 -07:00
committed by GitHub
parent 8b52ec2374
commit 33e66aca49
4 changed files with 39 additions and 73 deletions

View File

@ -130,19 +130,9 @@ func createCancellableContext() context.Context {
return ctx
}
const Deprecation160 = `NOTICE!
-----------------------------------------------------------------
We are changing the default base image in a subsequent release.
For more information (including how to suppress this message):
https://github.com/google/ko/issues/160
-----------------------------------------------------------------
`
func init() {
// If omitted, use this base image.
viper.SetDefault("defaultBaseImage", "gcr.io/distroless/static:nonroot")
viper.SetConfigName(".ko") // .yaml is implicit
viper.SetEnvPrefix("KO")
viper.AutomaticEnv()
@ -159,11 +149,6 @@ func init() {
}
}
if !viper.IsSet("defaultBaseImage") {
viper.Set("defaultBaseImage", "gcr.io/distroless/static:latest")
log.Print(Deprecation160)
}
ref := viper.GetString("defaultBaseImage")
dbi, err := name.ParseReference(ref)
if err != nil {