mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 00:27:04 +02:00
- Removed: **BREAKING**: Removed support for HorizontalPodAutoscaler - Added: Support services have extraSelectorLabels (#58) - Added: support for `httpGet` probes - Added: support for setting labels / annotations on volumeClaimTemplates - Changed: **BREAKING**: Restructure of template components. All Helm templates have been renamed / namespaced. E.g. `common.values.setup` has now become `bjw-s.common.loader.init`. - Changed: **BREAKING**: Raised minimum supported k8s version to 1.22 - Changed: **BREAKING**: Renamed `configmap` key to `configMaps` - Changed: **BREAKING**: Moved `serviceMonitor` from `service` to its own key - Changed: **BREAKING**: Renamed `secret` key to `secrets`, which now works similar to `configMaps` - Changed: Updated code-server image to v4.8.2 - Changed: Updated gluetun image to v3.32.0 - Fixed: Fix NOTES always showing ingress protocol as http (#62) Signed-off-by: Gavin Mogan <git@gavinmogan.com> Co-authored-by: Gavin Mogan <github@gavinmogan.com> Co-authored-by: Gabe Cook <gabe565@gmail.com>
206 lines
5.5 KiB
YAML
206 lines
5.5 KiB
YAML
suite: addon vpn
|
|
templates:
|
|
- common.yaml
|
|
tests:
|
|
- it: default should pass
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
not: true
|
|
equal:
|
|
path: spec.template.spec.containers[0].name
|
|
value: vpn
|
|
|
|
- it: addon enabled should pass
|
|
set:
|
|
addons:
|
|
vpn:
|
|
enabled: true
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].name
|
|
value: gluetun
|
|
|
|
- it: addon enabled with configFile should pass
|
|
set:
|
|
addons:
|
|
vpn:
|
|
enabled: true
|
|
configFile: test
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &AddonVPNConfigSecretDocument 0
|
|
isKind:
|
|
of: Secret
|
|
- documentIndex: &DeploymentDocument 1
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /gluetun/config.conf
|
|
name: vpnconfig
|
|
subPath: vpnConfigfile
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
name: vpnconfig
|
|
secret:
|
|
items:
|
|
- key: vpnConfigfile
|
|
path: vpnConfigfile
|
|
secretName: RELEASE-NAME-addon-vpn-config
|
|
- documentIndex: *AddonVPNConfigSecretDocument
|
|
equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME-addon-vpn-config
|
|
|
|
- it: addon enabled with up/down scripts should pass
|
|
set:
|
|
addons:
|
|
vpn:
|
|
enabled: true
|
|
scripts:
|
|
up: |
|
|
test_up
|
|
down: |
|
|
test_down
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &AddonVPNConfigConfigMapDocument 0
|
|
isKind:
|
|
of: ConfigMap
|
|
- documentIndex: &DeploymentDocument 1
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /gluetun/scripts/up.sh
|
|
name: vpnscript
|
|
subPath: up.sh
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /gluetun/scripts/down.sh
|
|
name: vpnscript
|
|
subPath: down.sh
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
configMap:
|
|
items:
|
|
- key: up.sh
|
|
mode: 511
|
|
path: up.sh
|
|
- key: down.sh
|
|
mode: 511
|
|
path: down.sh
|
|
name: RELEASE-NAME-addon-vpn
|
|
name: vpnscript
|
|
- documentIndex: *AddonVPNConfigConfigMapDocument
|
|
equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME-addon-vpn
|
|
|
|
- it: addon enabled with existing configFile secret should pass
|
|
set:
|
|
addons:
|
|
vpn:
|
|
enabled: true
|
|
configFileSecret: test-secret
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /gluetun/config.conf
|
|
name: vpnconfig
|
|
subPath: vpnConfigfile
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
name: vpnconfig
|
|
secret:
|
|
items:
|
|
- key: vpnConfigfile
|
|
path: vpnConfigfile
|
|
secretName: test-secret
|
|
|
|
- it: addon enabled with custom env vars dict should pass
|
|
set:
|
|
addons:
|
|
vpn:
|
|
enabled: true
|
|
env:
|
|
int: 1
|
|
float: 1.5
|
|
string: value_of_env
|
|
template: "{{ .Release.Name }}-admin"
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 2
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: &ServiceDocument 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
not: true
|
|
equal:
|
|
path: spec.template.spec.containers[1].name
|
|
value: vpn
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].env[0]
|
|
value:
|
|
name: float
|
|
value: "1.5"
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].env[1]
|
|
value:
|
|
name: int
|
|
value: "1"
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].env[2]
|
|
value:
|
|
name: string
|
|
value: value_of_env
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].env[3]
|
|
value:
|
|
name: template
|
|
value: RELEASE-NAME-admin
|