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: docs/man/man1/oc-process.1
+10
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ Templates allow parameterization of resources prior to being sent to the server
21
21
.PP
22
22
The output of the process command is always a list of one or more resources. You may pipe the output to the create command over STDIN (using the '\-f \-' option) or redirect it to a file.
23
23
24
+
.PP
25
+
Process resolves the template on the server, but you may pass \-\-local to parameterize the template locally. When running locally be aware that the version of your client tools will determine what template transformations are supported, rather than the server.
26
+
24
27
25
28
.SH OPTIONS
26
29
.PP
@@ -31,6 +34,10 @@ The output of the process command is always a list of one or more resources. You
31
34
\fB\-l\fP, \fB\-\-labels\fP=""
32
35
Label to set in all resources for this template
33
36
37
+
.PP
38
+
\fB\-\-local\fP=false
39
+
If true process the template locally instead of contacting the server.
40
+
34
41
.PP
35
42
\fB\-o\fP, \fB\-\-output\fP="json"
36
43
Output format. One of: describe|json|yaml|name|go\-template=...|go\-template\-file=...|jsonpath=...|jsonpath\-file=...
@@ -143,6 +150,9 @@ The output of the process command is always a list of one or more resources. You
143
150
# Convert template.json file into resource list and pass to create
144
151
oc process \-f template.json | oc create \-f \-
145
152
153
+
# Process a file locally instead of contacting the server
154
+
oc process \-f template.json \-\-local \-o yaml
155
+
146
156
# Process template while passing a user\-defined label
Copy file name to clipboardexpand all lines: docs/man/man1/openshift-cli-process.1
+10
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ Templates allow parameterization of resources prior to being sent to the server
21
21
.PP
22
22
The output of the process command is always a list of one or more resources. You may pipe the output to the create command over STDIN (using the '\-f \-' option) or redirect it to a file.
23
23
24
+
.PP
25
+
Process resolves the template on the server, but you may pass \-\-local to parameterize the template locally. When running locally be aware that the version of your client tools will determine what template transformations are supported, rather than the server.
26
+
24
27
25
28
.SH OPTIONS
26
29
.PP
@@ -31,6 +34,10 @@ The output of the process command is always a list of one or more resources. You
31
34
\fB\-l\fP, \fB\-\-labels\fP=""
32
35
Label to set in all resources for this template
33
36
37
+
.PP
38
+
\fB\-\-local\fP=false
39
+
If true process the template locally instead of contacting the server.
40
+
34
41
.PP
35
42
\fB\-o\fP, \fB\-\-output\fP="json"
36
43
Output format. One of: describe|json|yaml|name|go\-template=...|go\-template\-file=...|jsonpath=...|jsonpath\-file=...
@@ -143,6 +150,9 @@ The output of the process command is always a list of one or more resources. You
143
150
# Convert template.json file into resource list and pass to create
0 commit comments