in cmd/k8s-cloudkms-plugin/main.go [149:160]
func mustValidateFlags() {
if *kmsVersion == "v1" && *keySuffix != "" {
glog.Exitf("--key-suffix argument cannot be used in v1 mode (--kms=v1)")
}
glog.Infof("Checking socket path %q", *pathToUnixSocket)
socketDir := filepath.Dir(*pathToUnixSocket)
glog.Infof("Unix Socket directory is %q", socketDir)
if _, err := os.Stat(socketDir); err != nil {
glog.Exitf(" Directory %q portion of path-to-unix-socket flag:%q does not seem to exist.", socketDir, *pathToUnixSocket)
}
glog.Infof("Communication between KUBE API and KMS Plugin containers will be via %q", *pathToUnixSocket)
}