-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 --context-dir option to podman play kube #12913
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan 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 |
@edsantiago PTAL, BTW is there any easy way to change working directory to $PODMAN_TMPDIR, I would like to add a duplicate test where podman play kube --build works without the --context-dir. |
I think, but am not 100% sure, that each subtest runs in a subshell so you can feel free to podman/test/system/070-build.bats Line 318 in 094665a
|
test/system/700-play.bats
Outdated
if is_remote; then | ||
skip "--build is not supported in context remote" | ||
fi |
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.
Shorter & sweeter: skip_if_remote "--build is not supported in remote context"
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 want to see if this passes, then I will make that change, and attempt to cd PODMAN_TMPDIR again.
When I cd PODMAN_TMPDIR, run_podman blows up because it no longer finds podman? |
I'm assuming you're not using |
My own stupidity. PODMAN=./bin/podman hack/bats -f "--build" test/system/700-play.bats |
hack/bats forces root for some reason, BTW but regular bats when I send in the complete path. |
Nonono, $ hack/bats play:build <--- 'play' is the test filename, 'build' is the filter
...
$ hack/bats --help It runs both root and rootless, because there are always differences between the two. It sets |
|
||
if !registry.IsRemote() { |
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.
You're allowing SignaturePolicy for podman-remote
now - is that expected?
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.
No this just joined the out block of if !registry.IsRemote()
|
||
#### **--cert-dir**=*path* | ||
|
||
Use certificates at *path* (\*.crt, \*.cert, \*.key) to connect to the registry. (Default: /etc/containers/certs.d) | ||
Please refer to containers-certs.d(5) for details. (This option is not available with the remote Podman client) | ||
|
||
#### **--context-dir**=*path* |
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.
Are these supposed to be listed alphabetically?
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.
Yes.
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.
This should be after --configmap, then.
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.
Moved
This doesn't look like what #12485 (comment) is describing. Is it sufficient to close the issue? |
41efed0
to
f52dd4f
Compare
This option was requested so that users could specify alternate locations to find context directories for each image build. It requites the --build option to be set. Partion Fix: containers#12485 Signed-off-by: Daniel J Walsh <[email protected]>
LGTM |
/lgtm |
This option was requested so that users could specify alternate
locations to find context directories for each image build. It
requites the --build option to be set.
Partial Fix: #12485
Signed-off-by: Daniel J Walsh [email protected]