mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-01 07:47:15 +00:00
Merge pull request #10329 from Bickor/webhook-check
tools.kata-webhook: Specify runtime class using configMap
This commit is contained in:
commit
0e0cb24387
@ -67,3 +67,10 @@ spec:
|
|||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
selector:
|
selector:
|
||||||
app: pod-annotate-webhook
|
app: pod-annotate-webhook
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: kata-webhook
|
||||||
|
data:
|
||||||
|
runtime_class: kata
|
||||||
|
@ -16,7 +16,7 @@ source "${webhook_dir}/common.bash"
|
|||||||
|
|
||||||
readonly hello_pod="hello-kata-webhook"
|
readonly hello_pod="hello-kata-webhook"
|
||||||
# The Pod RuntimeClassName for Kata Containers.
|
# The Pod RuntimeClassName for Kata Containers.
|
||||||
RUNTIME_CLASS="${RUNTIME_CLASS:-"kata"}"
|
RUNTIME_CLASS="${RUNTIME_CLASS:-$(kubectl get configmap kata-webhook -o jsonpath='{.data.runtime_class}' 2>/dev/null || echo "kata")}"
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user