Skip to content

Commit

Permalink
samples: Adapt kata samples to the newly exposed fields in the CRD
Browse files Browse the repository at this point in the history
Let's already adapt the samples, as those can be easily used as part
of the CI.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
  • Loading branch information
fidencio committed Aug 7, 2023
1 parent 36664b5 commit b282054
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion config/samples/ccruntime/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ patches:
- patch: |-
- op: replace
path: /spec/config/runtimeClassNames
value: ["kata", "kata-clh", "kata-clh-tdx", "kata-qemu", "kata-qemu-tdx", "kata-qemu-sev", "kata-qemu-snp"]
value: ["kata-clh", "kata-clh-tdx", "kata-qemu", "kata-qemu-tdx", "kata-qemu-sev", "kata-qemu-snp"]
- op: add
path: /spec/config/defaultRuntimeClassName
value: "kata-qemu"
- op: add
path: /spec/config/debug
value: false
target:
kind: CcRuntime
3 changes: 3 additions & 0 deletions config/samples/ccruntime/peer-pods/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ patches:
- op: replace
path: /spec/config/runtimeClassNames
value: ["kata-remote"]
- op: add
path: /spec/config/debug
value: false
target:
kind: CcRuntime
8 changes: 7 additions & 1 deletion config/samples/ccruntime/s390x/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ patches:
- patch: |-
- op: replace
path: /spec/config/runtimeClassNames
value: ["kata", "kata-qemu", "kata-qemu-se"]
value: ["kata-qemu", "kata-qemu-se"]
- op: add
path: /spec/config/defaultRuntimeClassName
value: "kata-qemu"
- op: add
path: /spec/config/debug
value: false
target:
kind: CcRuntime

0 comments on commit b282054

Please sign in to comment.