-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deprecate and replace zarf package inspect
with child commands zarf package inspect definition|sbom|images
#3416
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e564e26
introduce new commands
AustinAbro321 4bb004d
exporting
AustinAbro321 0535c45
inspect images
AustinAbro321 380c23e
update e2e tests
AustinAbro321 ab7df97
replace command
AustinAbro321 0e2df07
delete inspect
AustinAbro321 249cd7c
test fix
AustinAbro321 5d200b3
output flag
AustinAbro321 8ebe803
make docs and schema
AustinAbro321 1d07ab9
case
AustinAbro321 59b50f1
make docs and schema
AustinAbro321 ffa438a
fix test
AustinAbro321 836dc61
NewOpts functions
AustinAbro321 40581dc
package inspect
AustinAbro321 bc3acfe
Merge branch 'main' into package-inspect-parent
AustinAbro321 960dc9f
update docs
AustinAbro321 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
site/src/content/docs/commands/zarf_package_inspect_definition.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: zarf package inspect definition | ||
description: Zarf CLI command reference for <code>zarf package inspect definition</code>. | ||
tableOfContents: false | ||
--- | ||
|
||
<!-- Page generated by Zarf; DO NOT EDIT --> | ||
|
||
## zarf package inspect definition | ||
|
||
Displays the 'zarf.yaml' definition for the specified package | ||
|
||
``` | ||
zarf package inspect definition [ PACKAGE_SOURCE ] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for definition | ||
--skip-signature-validation Skip validating the signature of the Zarf package | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-a, --architecture string Architecture for OCI images and Zarf packages | ||
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
-k, --key string Path to public key file for validating signed packages | ||
--log-format string [beta] Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev' | ||
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info") | ||
--no-color Disable colors in output | ||
--no-log-file Disable log file creation | ||
--no-progress Disable fancy UI progress bars, spinners, logos, etc | ||
--oci-concurrency int Number of concurrent layer operations to perform when interacting with a remote package. (default 3) | ||
--plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
--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 package inspect](/commands/zarf_package_inspect/) - Displays the definition of a Zarf package (runs offline) | ||
|
44 changes: 44 additions & 0 deletions
44
site/src/content/docs/commands/zarf_package_inspect_images.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: zarf package inspect images | ||
description: Zarf CLI command reference for <code>zarf package inspect images</code>. | ||
tableOfContents: false | ||
--- | ||
|
||
<!-- Page generated by Zarf; DO NOT EDIT --> | ||
|
||
## zarf package inspect images | ||
|
||
List all container images contained in the package | ||
|
||
``` | ||
zarf package inspect images [ PACKAGE_SOURCE ] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for images | ||
--skip-signature-validation Skip validating the signature of the Zarf package | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-a, --architecture string Architecture for OCI images and Zarf packages | ||
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
-k, --key string Path to public key file for validating signed packages | ||
--log-format string [beta] Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev' | ||
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info") | ||
--no-color Disable colors in output | ||
--no-log-file Disable log file creation | ||
--no-progress Disable fancy UI progress bars, spinners, logos, etc | ||
--oci-concurrency int Number of concurrent layer operations to perform when interacting with a remote package. (default 3) | ||
--plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
--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 package inspect](/commands/zarf_package_inspect/) - Displays the definition of a Zarf package (runs offline) | ||
|
45 changes: 45 additions & 0 deletions
45
site/src/content/docs/commands/zarf_package_inspect_sbom.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: zarf package inspect sbom | ||
description: Zarf CLI command reference for <code>zarf package inspect sbom</code>. | ||
tableOfContents: false | ||
--- | ||
|
||
<!-- Page generated by Zarf; DO NOT EDIT --> | ||
|
||
## zarf package inspect sbom | ||
|
||
Output the package SBOM (Software Bill Of Materials) to the specified directory | ||
|
||
``` | ||
zarf package inspect sbom [ PACKAGE ] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for sbom | ||
--output string Specify an output directory for the SBOMs from the created Zarf package | ||
--skip-signature-validation Skip validating the signature of the Zarf package | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-a, --architecture string Architecture for OCI images and Zarf packages | ||
--insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
-k, --key string Path to public key file for validating signed packages | ||
--log-format string [beta] Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev' | ||
-l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info") | ||
--no-color Disable colors in output | ||
--no-log-file Disable log file creation | ||
--no-progress Disable fancy UI progress bars, spinners, logos, etc | ||
--oci-concurrency int Number of concurrent layer operations to perform when interacting with a remote package. (default 3) | ||
--plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture. | ||
--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 package inspect](/commands/zarf_package_inspect/) - Displays the definition of a Zarf package (runs offline) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whenever explicitly ignoring error it's good to explain why you're doing so. I'm guessing that since this is only showing the contents of the file we don't care about the error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually don't know at this point yet if a cluster is needed, which is why we avoid the error. Added context in comments