You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/content/en/references/kustomize/cmd/localize/_index.md
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,12 @@ for full capabilities.
12
12
13
13
### Description
14
14
15
-
The `kustomize localize` command makes a recursive copy of a kustomization
15
+
The `kustomize localize` command makes a copy of a [kustomization root](https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#kustomization-root),
16
16
in which referenced urls are replaced by local paths to their downloaded content.
17
-
The command copies files referenced under kustomization [fields](#fields).
18
-
The copy contains files referenced both by the kustomization in question
19
-
and by recursively referenced kustomizations.
17
+
The command copies files referenced under kustomization [fields](#fields)
18
+
in the source kustomization, and all base kustomizations under it.
20
19
21
-
The purpose of this command is to create a copy on which
20
+
The purpose of this command is to create a copied root on which
22
21
`kustomize build`<sup>[[build]](#notes)</sup> produces the same output
23
22
without a network connection. The original motivation for this command
24
23
is documented [here](https://github.com/kubernetes-sigs/kustomize/issues/3980).
@@ -35,11 +34,11 @@ The command takes the following form:
35
34
36
35
where
37
36
38
-
*`target` is the [kustomization directory](https://kubectl.docs.kubernetes.io/references/kustomize/glossary/#kustomization-root)
39
-
to localize. This value can be a local path or a [remote root](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md).
37
+
*`target` is the kustomization root to localize.
38
+
This value can be a local path or a [remote root](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md).
40
39
The default value is the current working directory.
41
40
*`newDir` is the destination of the "localized" copy that the command creates.
42
-
The destination cannot already exist.
41
+
The destination directory cannot already exist.
43
42
The command creates the destination directory, but not any of its parents.
44
43
The default destination is a directory in the current working directory named:
45
44
*`localized-{target}` for local `target`
@@ -57,8 +56,9 @@ of `scope`, excluding files that `target` does not reference and
57
56
with the addition of downloaded remote content.
58
57
59
58
Downloaded files are copied to a directory named `localized-files` located in
60
-
the same directory as the referencing kustomization. Inside `localized-files`,
61
-
the content of remote
59
+
the same directory as the referencing kustomization file.
60
+
Inside `localized-files`, the content of remote
61
+
62
62
* roots are written to path<sup>[[localized root]](#notes)</sup>:
63
63
64
64
<pre>
@@ -76,27 +76,22 @@ the content of remote
76
76
77
77
Running the following command:
78
78
79
-
<!--
80
-
TODO(annasong): Replace ref with kustomize/v5.0 after release.
81
-
The kustomize/v4.5.7 version is very slow to execute because it fetches
0 commit comments