-
Notifications
You must be signed in to change notification settings - Fork 60
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
New test: install the operator with debug enabled #333
Comments
I'm not sure the debug is set correctly. kata-deploy expects an environment variable exported as [wmoschet@wainer-laptop operator]$ ./kustomize build config/samples/ccruntime/default/
apiVersion: confidentialcontainers.org/v1beta1
kind: CcRuntime
metadata:
name: ccruntime-sample
spec:
ccNodeSelector:
matchLabels:
node.kubernetes.io/worker: ""
config:
cleanupCmd:
- /opt/kata-artifacts/scripts/kata-deploy.sh
- reset
debug: false
defaultRuntimeClassName: kata-qemu
environmentVariables:
- name: INSTALL_OFFICIAL_CONTAINERD
value: "false"
installCmd:
- /opt/kata-artifacts/scripts/kata-deploy.sh
- install
installDoneLabel:
<SNIP> |
Actually |
Is there a clean way to do this by checking for any logs with priority level == debug? If not, maybe that's a longer term goal to improve our logging. |
Hi @portersrc !
Just after opening this issue I looked at kata-deploy's code again, now I have a better understanding of what it enables in terms of debugging. It is not that kata-deploy script itself will emit debug messages, but rather it will enable debugging of the following components:
|
Good eyes. Well, one passing condition could be to check that all 3 of those files have debug enabled. It's a little error-prone, crude, etc., but that would work for now. |
Yep, I had the same thing in mind :) |
Test Case
Use case: As an user installing CoCo via operator I want to switch on the debugging messages so that I can debug errors on the installation.
Add a new test case to the operator tests to check the condition
debug=true
.Split out of #247
Implementation
In order to switch debugging on/off , you should change the kustomization file on the corresponding ccruntime's overlay directory. For example, in the default ccruntime kustomization file:
Questions:
The text was updated successfully, but these errors were encountered: