Skip to content

Commit

Permalink
Add crane root flags and ability to place files in home dir (#1848)
Browse files Browse the repository at this point in the history
## Description

This makes necessary changes to Zarf to allow for a `k3d` multi-arch
package to exist (see https://github.com/Racer159/zarf-package-k3d)

## Related Issue

Fixes #1777

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [X] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

---------

Co-authored-by: Jonathan Perry <YrrepNoj@gmail.com>
  • Loading branch information
Racer159 and YrrepNoj authored Jun 26, 2023
1 parent 14cccd2 commit f52d66a
Show file tree
Hide file tree
Showing 25 changed files with 167 additions and 190 deletions.
2 changes: 1 addition & 1 deletion docs/2-the-zarf-cli/100-cli-commands/zarf_tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Collection of additional tools to make airgap easier
* [zarf tools gen-pki](zarf_tools_gen-pki.md) - Generates a Certificate Authority and PKI chain of trust for the given host
* [zarf tools get-creds](zarf_tools_get-creds.md) - Displays a Table of credentials for deployed components. Pass a component name to get a single credential
* [zarf tools kubectl](zarf_tools_kubectl.md) - Kubectl command. See https://kubernetes.io/docs/reference/kubectl/overview/ for more information.
* [zarf tools monitor](zarf_tools_monitor.md) - Launches a terminal UI to monitor the connected cluster using K9s
* [zarf tools monitor](zarf_tools_monitor.md) - Launches a terminal UI to monitor the connected cluster using K9s.
* [zarf tools registry](zarf_tools_registry.md) - Tools for working with container registries using go-containertools
* [zarf tools sbom](zarf_tools_sbom.md) - Generates a Software Bill of Materials (SBOM) for the given package
* [zarf tools wait-for](zarf_tools_wait-for.md) - Waits for a given Kubernetes resource to be ready
12 changes: 0 additions & 12 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ zarf tools kubectl [flags]
-h, --help help for kubectl
```

## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
```

## SEE ALSO

* [zarf tools](zarf_tools.md) - Collection of additional tools to make airgap easier
14 changes: 1 addition & 13 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_monitor.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# zarf tools monitor
<!-- Auto-generated by docs/gen-cli-docs.sh -->

Launches a terminal UI to monitor the connected cluster using K9s
Launches a terminal UI to monitor the connected cluster using K9s.

```
zarf tools monitor [flags]
Expand All @@ -13,18 +13,6 @@ zarf tools monitor [flags]
-h, --help help for monitor
```

## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
```

## SEE ALSO

* [zarf tools](zarf_tools.md) - Collection of additional tools to make airgap easier
18 changes: 5 additions & 13 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,11 @@ Tools for working with container registries using go-containertools
## Options

```
-h, --help help for registry
```

## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
-h, --help help for registry
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ zarf tools registry catalog REGISTRY [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
13 changes: 5 additions & 8 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_registry_copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ zarf tools registry copy SRC DST [flags]
## Options

```
--all-tags (Optional) if true, copy all tags from SRC to DST
-a, --all-tags (Optional) if true, copy all tags from SRC to DST
-h, --help help for copy
-j, --jobs int (Optional) The maximum number of concurrent copies, defaults to GOMAXPROCS
-n, --no-clobber (Optional) if true, avoid overwriting existing tags in DST
Expand All @@ -19,13 +19,10 @@ zarf tools registry copy SRC DST [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ zarf tools registry login [OPTIONS] [SERVER] [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
11 changes: 4 additions & 7 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_registry_pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ zarf tools registry pull IMAGE TARBALL [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
11 changes: 4 additions & 7 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_registry_push.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ zarf tools registry push PATH IMAGE [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
--allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers
--insecure Allow image references to be fetched without TLS
--platform string Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default "all")
-v, --verbose Enable debug logs
```

## SEE ALSO
Expand Down
12 changes: 0 additions & 12 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ zarf tools sbom [flags]
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
--tmpdir string Specify the temporary directory to use for intermediate files
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
```

## SEE ALSO

* [zarf tools](zarf_tools.md) - Collection of additional tools to make airgap easier
Expand Down
13 changes: 3 additions & 10 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom_attest.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@ zarf tools sbom attest --output [FORMAT] <IMAGE> [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
-c, --config string application config file
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
-q, --quiet suppress all logging output
--tmpdir string Specify the temporary directory to use for intermediate files
-v, --verbose count increase verbosity (-v = info, -vv = debug)
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
-c, --config string application config file
-q, --quiet suppress all logging output
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## SEE ALSO
Expand Down
13 changes: 3 additions & 10 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom_convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,9 @@ zarf tools sbom convert [SOURCE-SBOM] -o [FORMAT] [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
-c, --config string application config file
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
-q, --quiet suppress all logging output
--tmpdir string Specify the temporary directory to use for intermediate files
-v, --verbose count increase verbosity (-v = info, -vv = debug)
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
-c, --config string application config file
-q, --quiet suppress all logging output
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## SEE ALSO
Expand Down
13 changes: 3 additions & 10 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom_login.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,9 @@ zarf tools sbom login [OPTIONS] [SERVER] [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
-c, --config string application config file
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
-q, --quiet suppress all logging output
--tmpdir string Specify the temporary directory to use for intermediate files
-v, --verbose count increase verbosity (-v = info, -vv = debug)
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
-c, --config string application config file
-q, --quiet suppress all logging output
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## SEE ALSO
Expand Down
13 changes: 3 additions & 10 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom_packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,9 @@ zarf tools sbom packages [SOURCE] [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
-c, --config string application config file
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
-q, --quiet suppress all logging output
--tmpdir string Specify the temporary directory to use for intermediate files
-v, --verbose count increase verbosity (-v = info, -vv = debug)
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
-c, --config string application config file
-q, --quiet suppress all logging output
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## SEE ALSO
Expand Down
13 changes: 3 additions & 10 deletions docs/2-the-zarf-cli/100-cli-commands/zarf_tools_sbom_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,9 @@ zarf tools sbom version [flags]
## Options inherited from parent commands

```
-a, --architecture string Architecture for OCI images and Zarf packages
-c, --config string application config file
--insecure Allow access to insecure registries and disable other recommended security enforcements such as package checksum and signature validation. This flag should only be used if you have a specific reason and accept the reduced security posture.
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info")
--no-log-file Disable log file creation
--no-progress Disable fancy UI progress bars, spinners, logos, etc
-q, --quiet suppress all logging output
--tmpdir string Specify the temporary directory to use for intermediate files
-v, --verbose count increase verbosity (-v = info, -vv = debug)
--zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")
-c, --config string application config file
-q, --quiet suppress all logging output
-v, --verbose count increase verbosity (-v = info, -vv = debug)
```

## SEE ALSO
Expand Down
Loading

0 comments on commit f52d66a

Please sign in to comment.