Skip to content

Commit 37803e6

Browse files
committed
deprecation warning for -ephemeral
We want developers to be aware that -ephemeral is going to go away, so always warn about it on stderr.
1 parent e48a722 commit 37803e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/hostpathplugin/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func main() {
4848
return
4949
}
5050

51+
if *ephemeral {
52+
fmt.Fprintln(os.Stderr, "Deprecation warning: The ephemeral flag is deprecated and should only be used when deploying on Kubernetes 1.15. It will be removed in the future.")
53+
}
54+
5155
handle()
5256
os.Exit(0)
5357
}

0 commit comments

Comments
 (0)