mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 07:59:02 +00:00
Merge pull request #1108 from toboshii/fix/namespace-selector
[pod-gateway] Fix for allowing custom namespace selectors without dict merges
This commit is contained in:
commit
2df5b026b8
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: 1.2.6
|
appVersion: 1.2.6
|
||||||
description: Admision controller to change the default gateway and DNS server of PODs
|
description: Admision controller to change the default gateway and DNS server of PODs
|
||||||
name: pod-gateway
|
name: pod-gateway
|
||||||
version: 3.3.0
|
version: 4.0.0
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- pod-gateway
|
- pod-gateway
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# pod-gateway
|
# pod-gateway
|
||||||
|
|
||||||
![Version: 3.3.0](https://img.shields.io/badge/Version-3.3.0-informational?style=flat-square) ![AppVersion: 1.2.6](https://img.shields.io/badge/AppVersion-1.2.6-informational?style=flat-square)
|
![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 1.2.6](https://img.shields.io/badge/AppVersion-1.2.6-informational?style=flat-square)
|
||||||
|
|
||||||
Admision controller to change the default gateway and DNS server of PODs
|
Admision controller to change the default gateway and DNS server of PODs
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ certificates. It does not install it as dependency to avoid conflicts.
|
|||||||
| webhook.image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy of the webhook |
|
| webhook.image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy of the webhook |
|
||||||
| webhook.image.repository | string | `"ghcr.io/k8s-at-home/gateway-admision-controller"` | image repository of the webhook |
|
| webhook.image.repository | string | `"ghcr.io/k8s-at-home/gateway-admision-controller"` | image repository of the webhook |
|
||||||
| webhook.image.tag | string | `"v3.3.2"` | image tag of the webhook |
|
| webhook.image.tag | string | `"v3.3.2"` | image tag of the webhook |
|
||||||
| webhook.namespaceSelector | object | `{"matchLabels":{"routed-gateway":"true"}}` | Selector for namespace. All pods in this namespace will get evaluated by the webhook. **IMPORTANT**: Do not select the namespace where the webhook is deployed to or you will get locking issues. |
|
| webhook.namespaceSelector | object | `{"custom":{},"label":"routed-gateway","type":"label"}` | Selector for namespace. All pods in this namespace will get evaluated by the webhook. **IMPORTANT**: Do not select the namespace where the webhook is deployed to or you will get locking issues. |
|
||||||
| webhook.replicas | int | `1` | number of webhook instances to deploy |
|
| webhook.replicas | int | `1` | number of webhook instances to deploy |
|
||||||
| webhook.strategy | object | `{"type":"RollingUpdate"}` | strategy for updates |
|
| webhook.strategy | object | `{"type":"RollingUpdate"}` | strategy for updates |
|
||||||
|
|
||||||
@ -139,6 +139,10 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [4.0.0]
|
||||||
|
|
||||||
|
- Fixed `namespaceSelector` to allow replacing the default label value.
|
||||||
|
|
||||||
### [3.2.2]
|
### [3.2.2]
|
||||||
|
|
||||||
- Remove some default values (`addons.vpn.openvpn`, `addons.vpn.wireguard`, `addons.vpn.env`, `addons.vpn.configFileSecret`) which were interfering with user supplied configuration.
|
- Remove some default values (`addons.vpn.openvpn`, `addons.vpn.wireguard`, `addons.vpn.env`, `addons.vpn.configFileSecret`) which were interfering with user supplied configuration.
|
||||||
|
@ -9,6 +9,10 @@ All notable changes to this application Helm chart will be documented in this fi
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
### [4.0.0]
|
||||||
|
|
||||||
|
- Fixed `namespaceSelector` to allow replacing the default label value.
|
||||||
|
|
||||||
### [3.2.2]
|
### [3.2.2]
|
||||||
|
|
||||||
- Remove some default values (`addons.vpn.openvpn`, `addons.vpn.wireguard`, `addons.vpn.env`, `addons.vpn.configFileSecret`) which were interfering with user supplied configuration.
|
- Remove some default values (`addons.vpn.openvpn`, `addons.vpn.wireguard`, `addons.vpn.env`, `addons.vpn.configFileSecret`) which were interfering with user supplied configuration.
|
||||||
|
@ -10,7 +10,12 @@ webhooks:
|
|||||||
- name: "{{ include "common.names.fullname" . }}.svc.cluster.local"
|
- name: "{{ include "common.names.fullname" . }}.svc.cluster.local"
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
{{- with .Values.webhook.namespaceSelector }}
|
{{- with .Values.webhook.namespaceSelector }}
|
||||||
{{ toYaml . | nindent 4 }}
|
{{- if eq .type "label" }}
|
||||||
|
matchLabels:
|
||||||
|
{{ .label }}: "true"
|
||||||
|
{{- else if eq .type "custom" }}
|
||||||
|
{{- toYaml .custom | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
|
@ -119,12 +119,13 @@ webhook:
|
|||||||
# **IMPORTANT**: Do not select the namespace where the webhook
|
# **IMPORTANT**: Do not select the namespace where the webhook
|
||||||
# is deployed to or you will get locking issues.
|
# is deployed to or you will get locking issues.
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchLabels:
|
type: label
|
||||||
routed-gateway: "true"
|
label: "routed-gateway"
|
||||||
# matchExpressions:
|
custom: {}
|
||||||
# - key: notTouch
|
# matchExpressions:
|
||||||
# operator: NotIn
|
# - key: notTouch
|
||||||
# values: ["1"]
|
# operator: NotIn
|
||||||
|
# values: ["1"]
|
||||||
|
|
||||||
# -- default behviour for new PODs in the evaluated namespace
|
# -- default behviour for new PODs in the evaluated namespace
|
||||||
gatewayDefault: true
|
gatewayDefault: true
|
||||||
|
Loading…
Reference in New Issue
Block a user