Skip to content

Commit

Permalink
Add warning for cache add
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Wadhwa committed Feb 9, 2021
1 parent 53887f4 commit e8945f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/minikube/cmd/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var addCacheCmd = &cobra.Command{
Short: "Add an image to local cache.",
Long: "Add an image to local cache.",
Run: func(cmd *cobra.Command, args []string) {
out.WarningT("\"minikube cache\" will be deprecated in upcoming versions, please switch to \"minikube image load\"")
// Cache and load images into docker daemon
if err := machine.CacheAndLoadImages(args, cacheAddProfiles()); err != nil {
exit.Error(reason.InternalCacheLoad, "Failed to cache and load images", err)
Expand Down

0 comments on commit e8945f2

Please sign in to comment.