-
Notifications
You must be signed in to change notification settings - Fork 9
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
use custom runtime "contrast-cc" #344
Conversation
3716db7
to
fbd6ad7
Compare
|
09a0eab
to
c0c7e08
Compare
nix shell .#contrast --command resourcegen runtime workspace/runtime.yml | ||
nix run .#kypatch images -- workspace/runtime.yml \ | ||
--replace "ghcr.io/edgelesssys/contrast/node-installer:latest" "$nodeInstallerImgTagged" |
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.
cc @wirungu: another use case for image patching incoming.
paths = filterNonCoCoRuntime("kata-cc-isolation", paths, logger) | ||
paths = filterNonCoCoRuntime("contrast-cc", paths, logger) |
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 reminds me that we'll likely need to do something here if kata-containers/kata-containers#8571 would eventually be fixed.
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.
Agreed. I do expect that resourcegen will give us a flag to specify the runtimeClassName to select, so this should be a trivial fix.
0bfc39a
to
91f3a53
Compare
@@ -66,6 +66,7 @@ buildGoModule rec { | |||
"-s" | |||
"-w" | |||
"-X main.version=v${version}" | |||
"-X github.com/edgelesssys/contrast/cli/cmd.runtimeHandler=${runtimeHandler}" |
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 create a second var when we already have one that contains runtimeHandler?
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.
The other var is in the internal e2e package.
91f3a53
to
e4f9222
Compare
e4f9222
to
89538ed
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
This PR switches from the
kata-cc-isolation
runtime tocontrast-cc-<VERSIONHASH>
.I need to include a bunch of somewhat unrelated changes in this PR to make sure it is a clean switch.
Failing e2e tests are due to the test not using the new
ContrastTest
framework. We need to decide what to do about that. I will probably open a PR in parallel to move the remaining tests.Test cases:
Planned follow ups (to limit the scope of this PR):
runtimeClassName: contrast-cc
withruntimeClassName: contrast-cc-<VERSIONHASH>
in generate step