From 7fc64403727d2df9ba3a1c9993e4f75192f0e7c5 Mon Sep 17 00:00:00 2001 From: Vitor Savian Date: Wed, 29 Nov 2023 17:19:11 -0300 Subject: [PATCH] Added new runtime class chart Signed-off-by: Vitor Savian --- packages/rke2-runtimeclasses/charts/Chart.yaml | 12 ++++++++++++ .../rke2-runtimeclasses/charts/templates/NOTES.txt | 1 + .../charts/templates/runtimeclasses.yaml | 8 ++++++++ packages/rke2-runtimeclasses/charts/values.yaml | 7 +++++++ packages/rke2-runtimeclasses/package.yaml | 2 ++ 5 files changed, 30 insertions(+) create mode 100644 packages/rke2-runtimeclasses/charts/Chart.yaml create mode 100644 packages/rke2-runtimeclasses/charts/templates/NOTES.txt create mode 100644 packages/rke2-runtimeclasses/charts/templates/runtimeclasses.yaml create mode 100644 packages/rke2-runtimeclasses/charts/values.yaml create mode 100644 packages/rke2-runtimeclasses/package.yaml diff --git a/packages/rke2-runtimeclasses/charts/Chart.yaml b/packages/rke2-runtimeclasses/charts/Chart.yaml new file mode 100644 index 0000000..445da51 --- /dev/null +++ b/packages/rke2-runtimeclasses/charts/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: rke2-runtimeclasses +description: Add the default runtime classes +version: 0.1.0 +appVersion: 0.1.0 +keywords: + - runtimeclasses +sources: + - https://github.com/rancher/rke2-charts +maintainers: + - name: Rancher Labs + email: charts@rancher.com \ No newline at end of file diff --git a/packages/rke2-runtimeclasses/charts/templates/NOTES.txt b/packages/rke2-runtimeclasses/charts/templates/NOTES.txt new file mode 100644 index 0000000..4317515 --- /dev/null +++ b/packages/rke2-runtimeclasses/charts/templates/NOTES.txt @@ -0,0 +1 @@ +Runtime classes have been installed. diff --git a/packages/rke2-runtimeclasses/charts/templates/runtimeclasses.yaml b/packages/rke2-runtimeclasses/charts/templates/runtimeclasses.yaml new file mode 100644 index 0000000..a8f2809 --- /dev/null +++ b/packages/rke2-runtimeclasses/charts/templates/runtimeclasses.yaml @@ -0,0 +1,8 @@ +{{- range .Values.runtimeClasses }} +apiVersion: node.k8s.io/v1 +kind: RuntimeClass +metadata: + name: {{ .name }} +handler: {{ .handler }} +--- +{{- end }} \ No newline at end of file diff --git a/packages/rke2-runtimeclasses/charts/values.yaml b/packages/rke2-runtimeclasses/charts/values.yaml new file mode 100644 index 0000000..b0b8a86 --- /dev/null +++ b/packages/rke2-runtimeclasses/charts/values.yaml @@ -0,0 +1,7 @@ +runtimeClasses: + - name: nvidia + handler: nvidia + - name: nvidia-experimental + handler: nvidia-experimental + - name: crun + handler: crun \ No newline at end of file diff --git a/packages/rke2-runtimeclasses/package.yaml b/packages/rke2-runtimeclasses/package.yaml new file mode 100644 index 0000000..3aeed30 --- /dev/null +++ b/packages/rke2-runtimeclasses/package.yaml @@ -0,0 +1,2 @@ +url: local +packageVersion: 00 \ No newline at end of file