Skip to content
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 without default runtimeClass #334

Open
wainersm opened this issue Jan 22, 2024 · 0 comments
Open

New test: install the operator without default runtimeClass #334

wainersm opened this issue Jan 22, 2024 · 0 comments

Comments

@wainersm
Copy link
Member

Test Case

Use case: As an user installing CoCo via operator, I don't want it to deploy a default "kata" runtimeclass .

Add a new test case to the operator tests to check the condition defaultRuntimeClassName is omitted.

Split out of #247

Implementation

  1. Change the kustomization file on the corresponding ccruntime's overlay directory. For example, in the default ccruntime kustomization file:
diff --git a/config/samples/ccruntime/default/kustomization.yaml b/config/samples/ccruntime/default/kustomization.yaml
index b22bc16..286ef44 100644
--- a/config/samples/ccruntime/default/kustomization.yaml
+++ b/config/samples/ccruntime/default/kustomization.yaml
@@ -30,7 +30,7 @@ patches:
         snapshotter: "nydus"
     - op: add
       path: /spec/config/defaultRuntimeClassName
-      value: "kata-qemu"
+      value: ""
     - op: add
       path: /spec/config/debug
       value: false
  1. Install the operator
  2. Check the default runtime "kata" is not created.
@wainersm wainersm changed the title New test: install operatior without default runtimeClass New test: install operator without default runtimeClass Jan 22, 2024
@wainersm wainersm changed the title New test: install operator without default runtimeClass New test: install the operator without default runtimeClass Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant