Skip to content

Commit

Permalink
Add CI test cases
Browse files Browse the repository at this point in the history
Signed-off-by: zeritti <[email protected]>
  • Loading branch information
zeritti committed Dec 31, 2024
1 parent b2dd856 commit 3e48a59
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
automountServiceAccountToken: false
2 changes: 2 additions & 0 deletions charts/prometheus-pushgateway/ci/default-sts-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# default sts values
runAsStatefulSet: true
1 change: 1 addition & 0 deletions charts/prometheus-pushgateway/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# default values
3 changes: 3 additions & 0 deletions charts/prometheus-pushgateway/ci/extraargs-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
extraArgs:
- "--log.level=debug"
19 changes: 19 additions & 0 deletions charts/prometheus-pushgateway/ci/extramanifests-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
extraManifests:
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
foo: bar
name: pushgateway-extra-cm-first
data:
FOO: "bar"
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
baz: qux
name: pushgateway-extra-cm-second
data:
pushgateway.txt: '{{ include "prometheus-pushgateway.fullname" . }}'
immutable: true
4 changes: 4 additions & 0 deletions charts/prometheus-pushgateway/ci/extravars-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
extraVars:
- name: FOO
value: bar
5 changes: 5 additions & 0 deletions charts/prometheus-pushgateway/ci/lifecycle-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 10"]
9 changes: 9 additions & 0 deletions charts/prometheus-pushgateway/ci/persistence-sts-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
runAsStatefulSet: true
persistentVolume:
enabled: true
size: 1Gi

persistentVolumeLabels:
foo: bar
baz: qux
8 changes: 8 additions & 0 deletions charts/prometheus-pushgateway/ci/persistence-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
persistentVolume:
enabled: true
size: 1Gi

persistentVolumeLabels:
foo: bar
baz: qux
5 changes: 5 additions & 0 deletions charts/prometheus-pushgateway/ci/podlabels-sts-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
runAsStatefulSet: true
podLabels:
foo: bar
baz: qux
4 changes: 4 additions & 0 deletions charts/prometheus-pushgateway/ci/podlabels-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
podLabels:
foo: bar
baz: qux
8 changes: 8 additions & 0 deletions charts/prometheus-pushgateway/ci/resources-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
resources:
requests:
cpu: 50m
memory: 32Mi
limits:
cpu: 100m
memory: 32Mi
9 changes: 9 additions & 0 deletions charts/prometheus-pushgateway/ci/securitycontext-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
containerSecurityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
4 changes: 4 additions & 0 deletions charts/prometheus-pushgateway/ci/servicelabels-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
serviceLabels:
foo: bar
baz: qux
7 changes: 7 additions & 0 deletions charts/prometheus-pushgateway/ci/servicemonitor-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
serviceMonitor:
enabled: true
namespace: null
interval: 15s
additionalLabels:
release: prometheus

0 comments on commit 3e48a59

Please sign in to comment.