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: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,8 +367,19 @@ Example:
367
367
perm: 0600
368
368
```
369
369
370
+
Inline data example:
371
+
372
+
```yaml
373
+
- name: motd
374
+
data: |
375
+
Powered by k0s
376
+
dst: /etc/motd
377
+
perm: 0644
378
+
```
379
+
370
380
* `name`: name of the file "bundle", used only for logging purposes (optional)
371
-
* `src`: File path, an URL or [Glob pattern](https://golang.org/pkg/path/filepath/#Match) to match files to be uploaded. URL sources will be directly downloaded using the target host. If the value is a URL, '%'-prefixed tokens can be used, see [tokens](#tokens). (required)
381
+
* `src`: File path, an URL or [Glob pattern](https://golang.org/pkg/path/filepath/#Match) to match files to be uploaded. URL sources will be directly downloaded using the target host. If the value is a URL, '%'-prefixed tokens can be used, see [tokens](#tokens). (required when `data` is not set)
382
+
* `data`: Inline file data to write to the destination. Use together with `dst` or `dst` + `dstDir`. (required when `src` is not set)
372
383
* `dstDir`: Destination directory for the file(s). `k0sctl` will create full directory structure if it does not already exist on the host (default: user home)
373
384
* `dst`: Destination filename for the file. Only usable for single file uploads (default: basename of file)
374
385
* `perm`: File permission mode for uploaded file(s) (default: same as local)
0 commit comments