Skip to content

Commit f23bc41

Browse files
authored
feat: ability to change the container port (#87)
1 parent e7fac73 commit f23bc41

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
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.0.2
5+
version: 1.0.3
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-
- "allow to modify hostnetwork spec definition in deployment"
18+
- "allow to modify container port"
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.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)
3+
![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-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

@@ -28,6 +28,7 @@ Mirror images into your own registry and swap image references automatically.
2828
| config.source.filters[0].jmespath | string | `"obj.metadata.namespace == 'kube-system'"` | |
2929
| config.target.aws.accountId | string | `"12345678"` | |
3030
| config.target.aws.region | string | `"ap-southeast-2"` | |
31+
| containerPort | int | `8443` | |
3132
| dev.enabled | bool | `false` | |
3233
| dev.webhookURL | string | `"https://xxx.ngrok.io"` | |
3334
| fullnameOverride | string | `""` | |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
- --tls-key-file=/usr/local/certificates/key
5757
ports:
5858
- name: https
59-
containerPort: 8443
59+
containerPort: {{ .Values.containerPort }}
6060
protocol: TCP
6161
livenessProbe:
6262
httpGet:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
}
7272
}
7373
},
74+
"containerPort": {
75+
"type": "integer"
76+
},
7477
"dev": {
7578
"type": "object",
7679
"properties": {

charts/k8s-image-swapper/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ image:
1010
# Overrides the image tag whose default is the chart appVersion.
1111
tag: ""
1212

13+
containerPort: 8443
14+
1315
imagePullSecrets: []
1416
nameOverride: ""
1517
fullnameOverride: ""

0 commit comments

Comments
 (0)