-
Notifications
You must be signed in to change notification settings - Fork 460
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
Add crictl [create,runp,run,pull] jsonschema
subcommands
#1449
Add crictl [create,runp,run,pull] jsonschema
subcommands
#1449
Conversation
79ef7af
to
63e11d5
Compare
@kubernetes-sigs/cri-tools-maintainers PTAL |
63e11d5
to
89ca668
Compare
@kubernetes-sigs/cri-tools-maintainers PTAL |
cmd/crictl/image.go
Outdated
Subcommands: []*cli.Command{{ | ||
Name: "jsonschema", | ||
Aliases: []string{"js"}, | ||
Usage: "Display the JSON schema for the pod-config.json", |
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.
why this for the image subcommand?
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.
pedantically: seems like a bleeding of the runtime service into the image client (not like they're actually separated in practice)
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.
It's added here because of crictl pull --pod-config pod-config.[json|yam]
.
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.
I am not sure I understand the logic of using it in pull
. What is the output of a command will be?
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.
@SergeyKanzhelev the sandbox config provides additional context during the image pull. For example CRI-O uses it to separate pulls into dedicated cgroups:
89ca668
to
43e7d85
Compare
43e7d85
to
1bedd5e
Compare
The `jsonschema` / `js` subcommands will print the pod and/or container config JSON schemas for end users to understand where the data is coming from. Signed-off-by: Sascha Grunert <[email protected]>
1bedd5e
to
cd11136
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert, SergeyKanzhelev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The
jsonschema
/js
subcommands will print the pod and/or container config JSON schemas for end users to understand where the data is coming from.Which issue(s) this PR fixes:
Refers to kubernetes/website#40360
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?