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

add podLabels and podAnnotations #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion helm/amd-gpu/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords:
- gpu

kubeVersion: ">= 1.18.0-0"
version: 0.8.0
version: 0.8.1
appVersion: "1.25.2.3"

dependencies:
Expand Down
39 changes: 25 additions & 14 deletions helm/amd-gpu/README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,51 @@
# AMD GPU Helm Chart
# amd-gpu

![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.25.2.3](https://img.shields.io/badge/AppVersion-1.25.2.3-informational?style=flat-square)
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.25.2.3](https://img.shields.io/badge/AppVersion-1.25.2.3-informational?style=flat-square)

A Helm chart for deploying Kubernetes AMD GPU device plugin

## Requirements
**Homepage:** <https://github.com/RadeonOpenCompute/k8s-device-plugin>

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| Kenny Ho <[email protected]> | | |

## Source Code

Kubernetes: `>= 1.18.0`
* <https://github.com/RadeonOpenCompute/k8s-device-plugin>

## Optional Dependencies
## Requirements

Kubernetes: `>= 1.18.0-0`

| Repository | Name | Version |
|------------|------|---------|
| https://kubernetes-sigs.github.io/node-feature-discovery/charts | node-feature-discovery | 0.8.1 |
| https://kubernetes-sigs.github.io/node-feature-discovery/charts | node-feature-discovery | >= 0.8.1-0 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| dp.image.repository | string | `"docker.io/rocm/k8s-device-plugin"` | |
| dp.image.tag | string | `""` | |
| dp.image.tag | string | `"1.25.2.3"` | |
| dp.podAnnotations | object | `{}` | |
| dp.podLabels | object | `{}` | |
| dp.resources | object | `{}` | |
| imagePullSecrets | list | `[]` | |
| labeller.enabled | bool | `false` | |
| lbl.image.repository | string | `"docker.io/rocm/k8s-device-plugin"` | |
| lbl.image.tag | string | `"labeller-latest"` | |
| lbl.image.tag | string | `"labeller-1.25.2.3"` | |
| lbl.podAnnotations | object | `{}` | |
| lbl.podLabels | object | `{}` | |
| lbl.resources | object | `{}` | |
| namespace | string | `"kube-system"` | |
| nfd.enabled | bool | `false` | |
| node_selector."feature.node.kubernetes.io/pci-0300_1002.present" | string | `"true"` | |
| node_selector."kubernetes.io/arch" | string | `"amd64"` | |
| securityContext.allowPrivilegeEscalation | bool | `false` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| tolerations[0].key | string | `"CriticalAddonsOnly"` | |
| tolerations[0].operator | string | `"Exists"` | |

## More information

https://github.com/RadeonOpenCompute/k8s-device-plugin

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
7 changes: 7 additions & 0 deletions helm/amd-gpu/templates/deviceplugin-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ spec:
metadata:
labels:
name: {{ .Chart.Name }}-dp-ds
{{- with .Values.dp.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.dp.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
7 changes: 7 additions & 0 deletions helm/amd-gpu/templates/labeller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ spec:
metadata:
labels:
name: amdgpu-lr-ds
{{- with .Values.lbl.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.lbl.podAnnotations }}
annotations:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
{{- if .Values.nfd.enabled }}
{{- with .Values.node_selector }}
Expand Down
4 changes: 4 additions & 0 deletions helm/amd-gpu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ dp:
# Overrides the image tag whose default is the chart appVersion.
tag: "1.25.2.3"
resources: {}
podLabels: {}
podAnnotations: {}

lbl:
image:
repository: docker.io/rocm/k8s-device-plugin
tag: "labeller-1.25.2.3"
resources: {}
podLabels: {}
podAnnotations: {}

imagePullSecrets: []

Expand Down