Skip to content

Commit

Permalink
feat: add hostNetwork in k8s-image-swapper charts supported values (#84)
Browse files Browse the repository at this point in the history
* Add hostNetwork in k8s-image-swapper charts supported values
* Fix README.md with correct helm docs version
  • Loading branch information
noony authored Jul 7, 2022
1 parent aa2348b commit e7fac73
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/k8s-image-swapper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: k8s-image-swapper
description: Mirror images into your own registry and swap image references automatically.
type: application
version: 1.0.1
version: 1.0.2
appVersion: 1.1.0
home: https://github.com/estahn/charts/tree/main/charts/k8s-image-swapper
keywords:
Expand All @@ -15,7 +15,7 @@ maintainers:
name: estahn
annotations:
artifacthub.io/changes: |
- "add permissions to ClusterRole to allow reading of service accounts"
- "allow to modify hostnetwork spec definition in deployment"
artifacthub.io/images: |
- name: k8s-image-webhook
image: ghcr.io/estahn/k8s-image-swapper:1.1.0
3 changes: 2 additions & 1 deletion charts/k8s-image-swapper/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# k8s-image-swapper

![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)
![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)

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

Expand Down Expand Up @@ -31,6 +31,7 @@ Mirror images into your own registry and swap image references automatically.
| dev.enabled | bool | `false` | |
| dev.webhookURL | string | `"https://xxx.ngrok.io"` | |
| fullnameOverride | string | `""` | |
| hostNetwork | bool | `false` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/estahn/k8s-image-swapper"` | |
| image.tag | string | `""` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-image-swapper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.hostNetwork }}
hostNetwork: {{ .Values.hostNetwork }}
{{- end }}
serviceAccountName: {{ include "k8s-image-swapper.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-image-swapper/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
"fullnameOverride": {
"type": "string"
},
"hostNetwork": {
"type": "boolean"
},
"image": {
"type": "object",
"properties": {
Expand Down
2 changes: 2 additions & 0 deletions charts/k8s-image-swapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ tolerations: []

affinity: {}

hostNetwork: false

# Will generate the TLS certificate and patch the webhook
patch:
enabled: true
Expand Down

0 comments on commit e7fac73

Please sign in to comment.