Skip to content

Commit e7fac73

Browse files
authored
feat: add hostNetwork in k8s-image-swapper charts supported values (#84)
* Add hostNetwork in k8s-image-swapper charts supported values * Fix README.md with correct helm docs version
1 parent aa2348b commit e7fac73

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

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.0.1
5+
version: 1.0.2
66
appVersion: 1.1.0
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-
- "add permissions to ClusterRole to allow reading of service accounts"
18+
- "allow to modify hostnetwork spec definition in deployment"
1919
artifacthub.io/images: |
2020
- name: k8s-image-webhook
2121
image: ghcr.io/estahn/k8s-image-swapper:1.1.0

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.0.1](https://img.shields.io/badge/Version-1.0.1-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.0.2](https://img.shields.io/badge/Version-1.0.2-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)
44

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

@@ -31,6 +31,7 @@ Mirror images into your own registry and swap image references automatically.
3131
| dev.enabled | bool | `false` | |
3232
| dev.webhookURL | string | `"https://xxx.ngrok.io"` | |
3333
| fullnameOverride | string | `""` | |
34+
| hostNetwork | bool | `false` | |
3435
| image.pullPolicy | string | `"IfNotPresent"` | |
3536
| image.repository | string | `"ghcr.io/estahn/k8s-image-swapper"` | |
3637
| image.tag | string | `""` | |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ spec:
2525
imagePullSecrets:
2626
{{- toYaml . | nindent 8 }}
2727
{{- end }}
28+
{{- if .Values.hostNetwork }}
29+
hostNetwork: {{ .Values.hostNetwork }}
30+
{{- end }}
2831
serviceAccountName: {{ include "k8s-image-swapper.serviceAccountName" . }}
2932
securityContext:
3033
{{- toYaml .Values.podSecurityContext | nindent 8 }}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
"fullnameOverride": {
8686
"type": "string"
8787
},
88+
"hostNetwork": {
89+
"type": "boolean"
90+
},
8891
"image": {
8992
"type": "object",
9093
"properties": {

charts/k8s-image-swapper/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ tolerations: []
7373

7474
affinity: {}
7575

76+
hostNetwork: false
77+
7678
# Will generate the TLS certificate and patch the webhook
7779
patch:
7880
enabled: true

0 commit comments

Comments
 (0)