Skip to content

Commit 06ec842

Browse files
author
swbsf
authored
Misc/add pexp template (#78)
* adding PrioriExpander to template.
1 parent 48e1b1a commit 06ec842

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

helm/kubestitute/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
name: kubestitute
33
type: application
4-
version: 1.1.0
5-
appVersion: 1.1.0
4+
version: 1.1.1
5+
appVersion: 1.1.1
66
description: Kubestitute is an event based instances lifecycle manager for Kubernetes.
77
home: https://github.com/quortex/kubestitute
88
sources:

helm/kubestitute/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# kubestitute
22

3-
![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
3+
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)
44

55
Kubestitute is an event based instances lifecycle manager for Kubernetes.
66

@@ -79,12 +79,13 @@ helm install kubestitute kubestitute/kubestitute -n kubestitute-system
7979
| manager.priorityExpander.name | string | `"priority-expander-default"` | All the following values should not be modified. -- Name of the Priority Expander object. |
8080
| manager.priorityExpander.namespace | string | `"kubestitute-system"` | Namespace of the Priority Expander object. |
8181
| manager.priorityExpander.clusterAutoscalerConfigMap | string | `"cluster-autoscaler-priority-expander"` | This name should not be changed. This is the exact name cluster autoscaler is looking for. |
82+
| manager.priorityExpander.template | string | `"5:\n - .*"` | Default template, no priorities. |
8283
| manager.logs.verbosity | int | `3` | Logs verbosity: 0 => panic 1 => error 2 => warning 3 => info 4 => debug |
8384
| manager.logs.enableDevLogs | bool | `false` | |
8485
| manager.asgPollInterval | int | `30` | AutoScaling Groups polling interval (used to generate custom metrics about ASGs). |
8586
| manager.evictionTimeout | int | `300` | The timeout in seconds for pods eviction on Instance deletion. |
8687
| manager.image.repository | string | `"quortexio/kubestitute"` | Kubestitute manager image repository. |
87-
| manager.image.tag | string | `"1.0.0"` | Kubestitute manager image tag. |
88+
| manager.image.tag | string | `"1.1.0"` | Kubestitute manager image tag. |
8889
| manager.image.pullPolicy | string | `"IfNotPresent"` | Kubestitute manager image pull policy. |
8990
| manager.livenessProbe.httpGet.path | string | `"/healthz"` | Path of the manager liveness probe. |
9091
| manager.livenessProbe.httpGet.port | int | `8081` | Name or number of the manager liveness probe port. |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if .Values.manager.priorityExpander.enabled }}
2+
apiVersion: core.kubestitute.quortex.io/v1alpha1
3+
kind: PriorityExpander
4+
{{- with .Values.manager.priorityExpander }}
5+
metadata:
6+
name: {{ .name }}
7+
namespace: {{ .namespace }}
8+
spec:
9+
template: {{ toYaml .template | indent 4 }}
10+
{{- end }}
11+
{{- end }}

helm/kubestitute/values.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ manager:
1818
namespace: kubestitute-system
1919
# -- This name should not be changed. This is the exact name cluster autoscaler is looking for.
2020
clusterAutoscalerConfigMap: cluster-autoscaler-priority-expander
21+
# -- Default template, no priorities.
22+
template: |-
23+
5:
24+
- .*
2125
2226
logs:
2327
# -- Logs verbosity:
@@ -40,7 +44,7 @@ manager:
4044
# -- Kubestitute manager image repository.
4145
repository: quortexio/kubestitute
4246
# -- Kubestitute manager image tag.
43-
tag: 1.0.0
47+
tag: 1.1.0
4448
# -- Kubestitute manager image pull policy.
4549
pullPolicy: IfNotPresent
4650

0 commit comments

Comments
 (0)