mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
Add faq
This commit is contained in:
35
docs/FAQ.md
Normal file
35
docs/FAQ.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# FAQ
|
||||||
|
|
||||||
|
## security: file 'foo' is not in or below 'bar'
|
||||||
|
|
||||||
|
v2.0 added a security check that prevents
|
||||||
|
kustomizations from reading files outside their own
|
||||||
|
directory root.
|
||||||
|
|
||||||
|
This was meant to help protect the person inclined to
|
||||||
|
download kustomization directories from the web and use
|
||||||
|
them without inspection to control their production
|
||||||
|
cluster (see [#693](https://github.com/kubernetes-sigs/kustomize/issues/693)).
|
||||||
|
|
||||||
|
Resources (including configmap and secret generators)
|
||||||
|
can _still be shared_ via the recommended best practice
|
||||||
|
of placing them in a directory with their own
|
||||||
|
kustomization file, and refering to this directory as a
|
||||||
|
[`base`](glossary.md#base) from any kustomization that
|
||||||
|
wants to use it. This encourages modularity and
|
||||||
|
relocatability.
|
||||||
|
|
||||||
|
At the moment (in v2.0.3), however, there's no
|
||||||
|
(released) analogous way to share patch files and other
|
||||||
|
transformer configuration data between kustomizations.
|
||||||
|
|
||||||
|
As a stop-gap until we add base-like behavior for
|
||||||
|
transformers, we've added a flag to disable the check:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
kustomize build --load_restrictor none $target
|
||||||
|
```
|
||||||
|
|
||||||
|
This flag is not in v2.0.3, but is available from head
|
||||||
|
(`go install sigs.k8s.io/kustomize`).
|
||||||
@@ -1,28 +1,26 @@
|
|||||||
# Kustomize docs
|
# Kustomize docs
|
||||||
|
|
||||||
* [installation instructions](INSTALL.md)
|
* [installation instructions](INSTALL.md)
|
||||||
|
|
||||||
|
* [FAQ](FAQ.md)
|
||||||
|
|
||||||
* [kustomization.yaml](kustomization.yaml) - Example of a
|
* [kustomization.yaml](kustomization.yaml) - Example of a
|
||||||
[kustomization](glossary.md#kustomization)
|
[kustomization](glossary.md#kustomization)
|
||||||
with explanations of each field.
|
with explanations of each field.
|
||||||
|
|
||||||
* [versioning policy](versioningPolicy.md) - How the code and the kustomization
|
* [versioning policy](versioningPolicy.md) - How the code and the kustomization
|
||||||
file evolve in time.
|
file evolve in time.
|
||||||
|
|
||||||
* [version 2.0.0](version2.0.0.md) - Release note of Kustomize 2.0.0.
|
* [version 2.0.0](version2.0.0.md) - Release note of Kustomize 2.0.0.
|
||||||
|
|
||||||
* [workflow](workflows.md) - Some steps one might take in using
|
* [workflow](workflows.md) - Some steps one might take in using
|
||||||
bespoke and off-the-shelf configurations.
|
bespoke and off-the-shelf configurations.
|
||||||
|
|
||||||
* [glossary](glossary.md) - An attempt to disambiguiate terminology.
|
* [glossary](glossary.md) - An attempt to disambiguiate terminology.
|
||||||
|
|
||||||
* [eschewed features](eschewedFeatures.md) - Why certain features are (currently)
|
* [eschewed features](eschewedFeatures.md) - Why certain features are (currently)
|
||||||
not supported in Kustomize.
|
not supported in Kustomize.
|
||||||
|
|
||||||
* [contributing guidelines](../CONTRIBUTING.md) - Please read before sending a PR.
|
* [contributing guidelines](../CONTRIBUTING.md) - Please read before sending a PR.
|
||||||
|
|
||||||
* [code of conduct](../code-of-conduct.md)
|
* [code of conduct](../code-of-conduct.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user