mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
feat(common): Release common-3.1.0 (#303)
This commit is contained in:
parent
55b1b3a383
commit
11f1a43664
15 changed files with 185 additions and 19 deletions
|
@ -0,0 +1,130 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
|
||||
suite: controller revisionHistoryLimit
|
||||
templates:
|
||||
- common.yaml
|
||||
values:
|
||||
- ../_values/controllers_main_default_container.yaml
|
||||
tests:
|
||||
# Deployment
|
||||
- it: default should pass for Deployment
|
||||
set:
|
||||
controllers.main.type: deployment
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: Deployment
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 3
|
||||
|
||||
- it: custom revisionHistoryLimit should pass for Deployment
|
||||
set:
|
||||
controllers.main:
|
||||
type: deployment
|
||||
revisionHistoryLimit: 8
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: Deployment
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 8
|
||||
|
||||
- it: explicit revisionHistoryLimit 0 should pass for Deployment
|
||||
set:
|
||||
controllers.main:
|
||||
type: deployment
|
||||
revisionHistoryLimit: 0
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: Deployment
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 0
|
||||
|
||||
# StatefulSet
|
||||
- it: default should pass for StatefulSet
|
||||
set:
|
||||
controllers.main.type: statefulset
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: StatefulSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 3
|
||||
|
||||
- it: custom revisionHistoryLimit should pass for StatefulSet
|
||||
set:
|
||||
controllers.main:
|
||||
type: statefulset
|
||||
revisionHistoryLimit: 8
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: StatefulSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 8
|
||||
|
||||
- it: explicit revisionHistoryLimit 0 should pass for StatefulSet
|
||||
set:
|
||||
controllers.main:
|
||||
type: statefulset
|
||||
revisionHistoryLimit: 0
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: StatefulSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 0
|
||||
|
||||
# DaemonSet
|
||||
- it: default should pass for DaemonSet
|
||||
set:
|
||||
controllers.main.type: daemonset
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: DaemonSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 3
|
||||
|
||||
- it: custom revisionHistoryLimit should pass for DaemonSet
|
||||
set:
|
||||
controllers.main:
|
||||
type: daemonset
|
||||
revisionHistoryLimit: 8
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: DaemonSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 8
|
||||
|
||||
- it: explicit revisionHistoryLimit 0 should pass for DaemonSet
|
||||
set:
|
||||
controllers.main:
|
||||
type: daemonset
|
||||
revisionHistoryLimit: 0
|
||||
asserts:
|
||||
- documentIndex: 0
|
||||
isKind:
|
||||
of: DaemonSet
|
||||
- documentIndex: 0
|
||||
equal:
|
||||
path: spec.revisionHistoryLimit
|
||||
value: 0
|
Loading…
Add table
Add a link
Reference in a new issue