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>
167 lines
4.5 KiB
YAML
167 lines
4.5 KiB
YAML
suite: addon codeserver
|
|
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: codeserver
|
|
|
|
- it: addon enabled should pass
|
|
set:
|
|
addons:
|
|
codeserver:
|
|
enabled: true
|
|
volumeMounts:
|
|
- name: "config"
|
|
mountPath: "/data/config"
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: &AddonServiceDocument 2
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: 1
|
|
isKind:
|
|
of: Service
|
|
- documentIndex: *DeploymentDocument
|
|
equal:
|
|
path: spec.template.spec.containers[1].name
|
|
value: codeserver
|
|
- documentIndex: *AddonServiceDocument
|
|
equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME
|
|
|
|
- it: addon enabled with deployKey should pass
|
|
set:
|
|
addons:
|
|
codeserver:
|
|
enabled: true
|
|
git:
|
|
deployKey: test
|
|
volumeMounts:
|
|
- name: "config"
|
|
mountPath: "/data/config"
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 4
|
|
- documentIndex: &AddonDeployKeySecretDocument 0
|
|
isKind:
|
|
of: Secret
|
|
- documentIndex: &DeploymentDocument 1
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /root/.ssh/id_rsa
|
|
name: deploykey
|
|
subPath: id_rsa
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
name: deploykey
|
|
secret:
|
|
defaultMode: 256
|
|
items:
|
|
- key: id_rsa
|
|
path: id_rsa
|
|
secretName: RELEASE-NAME-addon-codeserver-deploykey
|
|
- documentIndex: *AddonDeployKeySecretDocument
|
|
equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME-addon-codeserver-deploykey
|
|
|
|
- it: addon enabled with InlineBase64 deployKey should pass
|
|
set:
|
|
addons:
|
|
codeserver:
|
|
enabled: true
|
|
git:
|
|
deployKeyBase64: dGVzdEtleQ==
|
|
volumeMounts:
|
|
- name: "config"
|
|
mountPath: "/data/config"
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 4
|
|
- documentIndex: &AddonDeployKeySecretDocument 0
|
|
isKind:
|
|
of: Secret
|
|
- documentIndex: &DeploymentDocument 1
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /root/.ssh/id_rsa
|
|
name: deploykey
|
|
subPath: id_rsa
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
name: deploykey
|
|
secret:
|
|
defaultMode: 256
|
|
items:
|
|
- key: id_rsa
|
|
path: id_rsa
|
|
secretName: RELEASE-NAME-addon-codeserver-deploykey
|
|
- documentIndex: *AddonDeployKeySecretDocument
|
|
equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME-addon-codeserver-deploykey
|
|
|
|
- it: addon enabled with existingSecret deployKey should pass
|
|
set:
|
|
addons:
|
|
codeserver:
|
|
enabled: true
|
|
git:
|
|
deployKeySecret: test-secret
|
|
volumeMounts:
|
|
- name: "config"
|
|
mountPath: "/data/config"
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 3
|
|
- documentIndex: &DeploymentDocument 0
|
|
isKind:
|
|
of: Deployment
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.containers[1].volumeMounts
|
|
content:
|
|
mountPath: /root/.ssh/id_rsa
|
|
name: deploykey
|
|
subPath: id_rsa
|
|
- documentIndex: *DeploymentDocument
|
|
contains:
|
|
path: spec.template.spec.volumes
|
|
content:
|
|
name: deploykey
|
|
secret:
|
|
defaultMode: 256
|
|
items:
|
|
- key: id_rsa
|
|
path: id_rsa
|
|
secretName: test-secret
|