From 85c8d801c6effef6da7ee0b615e6544054b897c9 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Wed, 12 Jan 2022 21:29:12 +0100 Subject: [PATCH] feat(amd-gpu-plugin): Add AMD gpu plugin as app (#1703) * feat(amd-gpu-plugin): Add AMD gpu plugin as app * remove old code * Add repo for amd gpu device plugin --- .github/ct-install.yaml | 1 + .github/ct-lint.yaml | 1 + .github/workflows/apps.test.yaml | 1 + .github/workflows/common.test.yaml | 2 ++ charts/core/amd-gpu-plugin/.helmignore | 23 +++++++++++++++++ charts/core/amd-gpu-plugin/Chart.yaml | 30 +++++++++++++++++++++++ charts/core/amd-gpu-plugin/questions.yaml | 30 +++++++++++++++++++++++ charts/core/amd-gpu-plugin/values.yaml | 5 ++++ 8 files changed, 93 insertions(+) create mode 100644 charts/core/amd-gpu-plugin/.helmignore create mode 100644 charts/core/amd-gpu-plugin/Chart.yaml create mode 100644 charts/core/amd-gpu-plugin/questions.yaml create mode 100644 charts/core/amd-gpu-plugin/values.yaml diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml index 2447b01afe0..8c309055cf4 100644 --- a/.github/ct-install.yaml +++ b/.github/ct-install.yaml @@ -12,4 +12,5 @@ excluded-charts: chart-repos: - truecharts=https://truecharts.org - bitnami=https://charts.bitnami.com/bitnami +- amd-gpu-helm=https://radeonopencompute.github.io/k8s-device-plugin/ SkipExisting: true diff --git a/.github/ct-lint.yaml b/.github/ct-lint.yaml index d47c7965ced..5fc1c54612d 100644 --- a/.github/ct-lint.yaml +++ b/.github/ct-lint.yaml @@ -5,4 +5,5 @@ chart-yaml-schema: .github/chart_schema.yaml chart-repos: - truecharts=https://truecharts.org - bitnami=https://charts.bitnami.com/bitnami +- amd-gpu-helm=https://radeonopencompute.github.io/k8s-device-plugin/ SkipExisting: true diff --git a/.github/workflows/apps.test.yaml b/.github/workflows/apps.test.yaml index 968e21a3936..ce4a0f205d5 100644 --- a/.github/workflows/apps.test.yaml +++ b/.github/workflows/apps.test.yaml @@ -117,6 +117,7 @@ jobs: helm repo add metallb https://metallb.github.io/metallb helm repo add grafana https://grafana.github.io/helm-charts helm repo add prometheus https://prometheus-community.github.io/helm-charts + helm repo add amd-gpu-helm https://radeonopencompute.github.io/k8s-device-plugin/ helm repo update - uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # renovate: tag=v2 diff --git a/.github/workflows/common.test.yaml b/.github/workflows/common.test.yaml index c28d184301f..236b668a874 100644 --- a/.github/workflows/common.test.yaml +++ b/.github/workflows/common.test.yaml @@ -41,6 +41,7 @@ jobs: helm repo add metallb https://metallb.github.io/metallb helm repo add grafana https://grafana.github.io/helm-charts helm repo add prometheus https://prometheus-community.github.io/helm-charts + helm repo add amd-gpu-helm https://radeonopencompute.github.io/k8s-device-plugin/ helm repo update - name: Run chart-testing (lint) @@ -81,6 +82,7 @@ jobs: helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add metallb https://metallb.github.io/metallb helm repo add prometheus https://prometheus-community.github.io/helm-charts + helm repo add amd-gpu-helm https://radeonopencompute.github.io/k8s-device-plugin/ helm repo update - uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # renovate: tag=v2 diff --git a/charts/core/amd-gpu-plugin/.helmignore b/charts/core/amd-gpu-plugin/.helmignore new file mode 100644 index 00000000000..0e8a0eb36f4 --- /dev/null +++ b/charts/core/amd-gpu-plugin/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/core/amd-gpu-plugin/Chart.yaml b/charts/core/amd-gpu-plugin/Chart.yaml new file mode 100644 index 00000000000..700103b3d24 --- /dev/null +++ b/charts/core/amd-gpu-plugin/Chart.yaml @@ -0,0 +1,30 @@ +apiVersion: v2 +appVersion: "upstream" +deprecated: false +description: A kubernetes plugin to add AMD GPU's to Pods +home: https://github.com/truecharts/apps/tree/master/charts/stable/amd-gpu-plugin +icon: https://truecharts.org/_static/img/appicons/amd-gpu-plugin.png +keywords: +- amd +- gpu +- plugin +dependencies: +- name: amd-gpu + repository: https://radeonopencompute.github.io/k8s-device-plugin/ + version: 0.2.0 +kubeVersion: '>=1.16.0-0' +maintainers: +- email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: amd-gpu-plugin +sources: + - https://github.com/metallb/metallb + - https://metallb.universe.tf +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - core + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/core/amd-gpu-plugin/questions.yaml b/charts/core/amd-gpu-plugin/questions.yaml new file mode 100644 index 00000000000..aaa39e20be7 --- /dev/null +++ b/charts/core/amd-gpu-plugin/questions.yaml @@ -0,0 +1,30 @@ +# Include{groups} +questions: +# Include{global} + + - variable: amd-gpu + group: "App Configuration" + label: "" + schema: + type: dict + attrs: + - variable: nfd + label: "nfd" + schema: + type: dict + attrs: + - variable: enabled + label: "enabled" + schema: + type: boolean + default: false + - variable: labeller + label: "labeller" + schema: + type: dict + attrs: + - variable: enabled + label: "enabled" + schema: + type: boolean + default: false diff --git a/charts/core/amd-gpu-plugin/values.yaml b/charts/core/amd-gpu-plugin/values.yaml new file mode 100644 index 00000000000..13ddb5d4688 --- /dev/null +++ b/charts/core/amd-gpu-plugin/values.yaml @@ -0,0 +1,5 @@ +image: + repository: placeholder + # defaults to appVersion + tag: upstream + pullPolicy: IfNotPresent