open-nomad/website/content/docs/commands/namespace
Tim Gross f4287c870d
cli: detect directory when applying namespace spec file (#12738)
The new `namespace apply` feature that allows for passing a namespace
specification file detects the difference between an empty namespace
and a namespace specification by checking if the file exists. For most
cases, the file will have an extension like `.hcl` and so there's
little danger that a user will apply a file spec when they intended to
apply a file name.

But because directory names typically don't include an extension,
you're much more likely to collide when trying to `namespace apply` by
name only, and then you get a confusing error message of the form:

   Failed to read file: read $namespace: is a directory

Detect the case where the namespace name collides with a directory in
the current working directory, and skip trying to load the directory.
2022-04-21 14:53:45 -04:00
..
apply.mdx cli: detect directory when applying namespace spec file (#12738) 2022-04-21 14:53:45 -04:00
delete.mdx
index.mdx
inspect.mdx
list.mdx
status.mdx docs: add meta to namespace docs 2022-03-04 14:18:57 -08:00