Relative location of schema files to import #2571
-
|
Hi all, I'm attempting to set up our GitOps to import schema and seed relationships by mounting them in a pod and running the I'm importing both my schema and my relationships as separate configmaps because I'd like to be able to use a common schema across multiple environments and import different relationships depending on the environment (different ids etc.). Right now I'm trying to use The import runs in the pod as: I'm getting the error message: I can't figure out where I need to put the My pod My schema and relationships are both mounted from a Schema: Relations: Please let me know if more info is needed.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
It's basically checking that the current working directory is a parent directory of the targeted file. This is intended as a security measure to prevent We're using // IsLocal reports whether path, using lexical analysis only, has all of these properties:
//
// - is within the subtree rooted at the directory in which path is evaluated
// - is not an absolute path
// - is not empty
// - on Windows, is not a reserved name such as "NUL"I looked it up, and the working directory for a |
Beta Was this translation helpful? Give feedback.
It's basically checking that the current working directory is a parent directory of the targeted file. This is intended as a security measure to prevent
zedfrom accessing files that it shouldn't have access to.We're using
filepath.IsLocalto check this, and from the docs:I looked it up, and the working directory for a
zedcontainer should already be the root. Have you tried removing the leading slash? I think …