From e8b8dddde0b26ed326a78d2c960dd56bd8fa7ca9 Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Sat, 15 Jan 2022 12:26:48 -0800 Subject: [PATCH] feat: adding support for priority class name --- README.md | 3 ++- chart/Chart.yaml | 2 +- chart/templates/deployment.yaml | 3 +++ chart/values.yaml | 2 ++ version | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27a39c0..d665e84 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ helm install valheim-server valheim-k8s/valheim-k8s \ ## Configuration | Parameter | Description | Default | -| :----------------------------------- | :--------------------------------------------------------------------- | :------------------------ | +|:-------------------------------------|:-----------------------------------------------------------------------|:--------------------------| | `worldName` | Prefix of the world files to use (will make new if missing) | `example-world-name` | | `serverName` | Server name displayed in the server browser(s) | `example-server-name` | | `password` | Server password | `password` | @@ -40,6 +40,7 @@ helm install valheim-server valheim-k8s/valheim-k8s \ | `tolerations` | | `[]` | | `image.repository` | Specifies container image repository | `lloesche/valheim-server` | | `image.tag` | Specifies container image tag | `latest` | +| `priorityClassName` | Specifies the priority class name for the deployment | None | ## Persistence diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 9c7f9df..bb8b09a 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -3,5 +3,5 @@ name: valheim-k8s description: Basic chart for deploying valheim to a k8s homelab icon: https://www.google.com/url?sa=i&url=https%3A%2F%2Fstore.steampowered.com%2Fapp%2F892970%2FValheim%2F&psig=AOvVaw1MMOQJzse-eyruGtGG0DEs&ust=1641045420126000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCIDmhd2YjvUCFQAAAAAdAAAAABAJ type: application -version: 0.2.0 +version: 1.1.5 appVersion: 1.16.0 diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 21713bd..393e23d 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -94,3 +94,6 @@ spec: {{ end }} {{ end }} {{ end }} + {{ if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{ end }} diff --git a/chart/values.yaml b/chart/values.yaml index a2c73c2..c7ff40c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -33,6 +33,8 @@ nodeSelector: {} tolerations: {} +# If you utilize priority classes, you can define the priority class for this deployment here +# priorityClassName: my-priority-class-name # resources: # requests: diff --git a/version b/version index 90a27f9..e25d8d9 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.5 +1.1.5