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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user