feat(common): Release 2.0.0 (#189)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2023-10-02 13:21:17 +02:00 committed by GitHub
parent 8a42d212af
commit 98677d85b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 1192 additions and 1804 deletions

View file

@ -64,16 +64,16 @@ persistence:
name: |-
{{- (include "bjw-s.common.lib.chart.names.fullname" $) -}}-config
advancedMounts:
main: # the controller with whe "main" identifier
main: # the container with whe "main" identifier
main: # the controller with the "main" identifier
main: # the container with the "main" identifier
- path: /data/config.yaml
readOnly: false
subPath: config.yaml
second-container: # the container with whe "second-container" identifier
second-container: # the container with the "second-container" identifier
- path: /appdata/config
readOnly: true
second-controller: # the controller with whe "second-controller" identifier
main: # the container with whe "main" identifier
second-controller: # the controller with the "second-controller" identifier
main: # the container with the "main" identifier
- path: /data/config.yaml
readOnly: false
subPath: config.yaml

View file

@ -22,3 +22,8 @@ ingress:
persistence:
config:
enabled: true
media:
enabled: true
type: persistentVolumeClaim
accessMode: ReadWriteOnce
size: 1Gi

View file

@ -43,3 +43,71 @@ tests:
name: pathService
port:
number: 1234
- it: multiple hosts with port name references should pass
set:
service:
main:
ports:
http:
port: &httpPort 8081
http2:
enabled: true
port: &http2Port 1880
ingress:
main:
enabled: true
className: "nginx"
hosts:
- host: http.chart-test.local
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
- host: http2.chart-test.local
paths:
- path: /
pathType: Prefix
service:
name: main
port: http2
asserts:
- documentIndex: &IngressDocument 2
isKind:
of: Ingress
# First Ingress host
- documentIndex: *IngressDocument
equal:
path: spec.rules[0].host
value: http.chart-test.local
- documentIndex: *IngressDocument
equal:
path: spec.rules[0].http.paths[0].path
value: "/"
- documentIndex: *IngressDocument
equal:
path: spec.rules[0].http.paths[0].backend.service.name
value: "RELEASE-NAME"
- documentIndex: *IngressDocument
equal:
path: spec.rules[0].http.paths[0].backend.service.port.number
value: *httpPort
# Second Ingress host
- documentIndex: *IngressDocument
equal:
path: spec.rules[1].host
value: http2.chart-test.local
- documentIndex: *IngressDocument
equal:
path: spec.rules[1].http.paths[0].path
value: "/"
- documentIndex: *IngressDocument
equal:
path: spec.rules[1].http.paths[0].backend.service.name
value: "RELEASE-NAME"
- documentIndex: *IngressDocument
equal:
path: spec.rules[1].http.paths[0].backend.service.port.number
value: *http2Port