Skip to content

Commit 4f39a0b

Browse files
Add ability to specify a priorityClassName for deployment (#150)
* Add ability to specify a priorityClassName for deployment * chore: update readme with new version --------- Co-authored-by: Enrico Stahn <enrico.stahn@gmail.com>
1 parent 682a52f commit 4f39a0b

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

charts/k8s-image-swapper/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: k8s-image-swapper
33
description: Mirror images into your own registry and swap image references automatically.
44
type: application
5-
version: 1.10.1
5+
version: 1.10.2
66
appVersion: 1.5.10
77
home: https://github.com/estahn/charts/tree/main/charts/k8s-image-swapper
88
keywords:
@@ -15,7 +15,7 @@ maintainers:
1515
name: estahn
1616
annotations:
1717
artifacthub.io/changes: |
18-
- "Fix bug in values schema"
18+
- "Add ability to specify a priorityClassName for deployment"
1919
artifacthub.io/images: |
2020
- name: k8s-image-webhook
2121
image: ghcr.io/estahn/k8s-image-swapper:1.5.10

charts/k8s-image-swapper/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8s-image-swapper
22

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

55
Mirror images into your own registry and swap image references automatically.
66

@@ -38,6 +38,7 @@ Mirror images into your own registry and swap image references automatically.
3838
| config.target.aws.region | string | `"ap-southeast-2"` | |
3939
| containerPort | int | `8443` | |
4040
| deployment.annotations | object | `{}` | |
41+
| deployment.priorityClassName | string | `""` | |
4142
| dev.enabled | bool | `false` | |
4243
| dev.webhookURL | string | `"https://xxx.ngrok.io"` | |
4344
| extraEnv | list | `[]` | Additional environment variables to be defined on the container Follows the same syntax as containers.env in a Pod v1 API |

charts/k8s-image-swapper/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,6 @@ spec:
125125
tolerations:
126126
{{- toYaml . | nindent 8 }}
127127
{{- end }}
128+
{{- if .Values.deployment.priorityClassName }}
129+
priorityClassName: {{ .Values.deployment.priorityClassName }}
130+
{{- end }}

charts/k8s-image-swapper/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@
114114
"properties": {
115115
"annotations": {
116116
"type": "object"
117+
},
118+
"priorityClassName": {
119+
"type": "string"
117120
}
118121
}
119122
},

charts/k8s-image-swapper/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ rbac:
3636
deployment:
3737
# Annotations to add to the deployment
3838
annotations: {}
39+
priorityClassName: ""
3940

4041
# If true, create & use Pod Security Policy resources
4142
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/

0 commit comments

Comments
 (0)