Skip to content

Commit a9b86f3

Browse files
committed
Add Helm chart for WireQuery
GitOrigin-RevId: dc9a33ab1227ee5e16da0f462932183aa95d504b
1 parent cad2285 commit a9b86f3

22 files changed

+735
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ application itself, so that sensitive data is stripped before ever reaching the
1616

1717
- **Explore**: Enter a query to let the targeted (production) system start capturing HTTP requests immediately.
1818
- **(Stored) Queries**: Store queries so that you can run them in the background.
19-
- **Extended Tracing**: Trace the results with their bodies, so you can see what happens in your entire stack. [Screenshot](screenshot_3.png)
19+
- **Extended Tracing**: Trace the results with their bodies, so you can see what happens in your [entire stack](screenshot_3.png).
2020
- **Sessions**: Allow non-technical users to start multiple queries at the same time.
21-
- **Full-Stack Recording**: Record the frontend like a video while capturing the related backend requests. [Screenshot](screenshot_2.png)
21+
- **Full-Stack Recording**: Record the frontend [like a video](screenshot_2.png) while capturing the related backend requests.
2222
- **Masking**: Easily mask confidential information, so you can query with peace of mind.
2323

2424
## Get Started
@@ -38,12 +38,11 @@ WireQuery's SDKs are offered in the following variants:
3838

3939
More SDKs will be added over time.
4040

41-
## Guides
41+
## Links
4242

43+
- [Official Website](https://www.wirequery.io)
44+
- [Documentation](https://www.wirequery.io/docs)
4345
- [Writing Queries](/docs/writing-queries.md)
44-
45-
## Community
46-
4746
- [Join our Discord Channel](https://discord.gg/BfaMCtkZe2) for questions and support.
4847

4948
## Contributing

helm/wirequery/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

helm/wirequery/Chart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v2
2+
name: wirequery
3+
description: Capture, explore, and analyze data flowing in and out of your applications - without compromising privacy.
4+
type: application
5+
version: 0.1.0
6+
appVersion: main
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v2
2+
name: wirequery-backend
3+
description: WireQuery Backend
4+
type: application
5+
version: 0.1.0
6+
appVersion: main
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ $name := include "application.fullname" . }}
2+
{{ $port := .Values.service.port }}
3+
apiVersion: batch/v1
4+
kind: CronJob
5+
metadata:
6+
name: wirequery-cron
7+
spec:
8+
schedule: "* * * * *"
9+
jobTemplate:
10+
spec:
11+
activeDeadlineSeconds: 10
12+
backoffLimit: 0
13+
template:
14+
spec:
15+
restartPolicy: Never
16+
containers:
17+
{{- range $i, $v := .Values.global.hosts }}
18+
- name: {{ $name }}-cronjob-{{ $i }}
19+
image: curlimages/curl:7.72.0
20+
args:
21+
- /bin/sh
22+
- -ec
23+
- "curl --verbose --max-time 10 -X POST {{ $name }}:{{ $port }}/api/internal/jobs --header 'Host: {{ $v.host }}'"
24+
{{- end }}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ include "application.fullname" . }}
5+
labels:
6+
{{- include "application.labels" . | nindent 4 }}
7+
spec:
8+
{{- if not .Values.autoscaling.enabled }}
9+
replicas: {{ .Values.replicaCount }}
10+
{{- end }}
11+
selector:
12+
matchLabels:
13+
{{- include "application.selectorLabels" . | nindent 6 }}
14+
template:
15+
metadata:
16+
{{- with .Values.podAnnotations }}
17+
annotations:
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
20+
labels:
21+
{{- include "application.selectorLabels" . | nindent 8 }}
22+
spec:
23+
imagePullSecrets:
24+
- name: {{ include "application.fullname" . }}-image-pull-secret
25+
{{- with .Values.imagePullSecrets }}
26+
{{- toYaml . | nindent 8 }}
27+
{{- end }}
28+
serviceAccountName: {{ include "application.serviceAccountName" . }}
29+
securityContext:
30+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
31+
containers:
32+
- name: {{ .Chart.Name }}
33+
securityContext:
34+
{{- toYaml .Values.securityContext | nindent 12 }}
35+
image: "{{ .Values.image.repository }}/{{ .Values.image.tag | default .Chart.AppVersion }}"
36+
imagePullPolicy: {{ .Values.image.pullPolicy }}
37+
ports:
38+
- name: http
39+
containerPort: 8080
40+
protocol: TCP
41+
livenessProbe:
42+
httpGet:
43+
path: /actuator/health
44+
port: http
45+
readinessProbe:
46+
httpGet:
47+
path: /actuator/health
48+
port: http
49+
startupProbe:
50+
httpGet:
51+
path: /actuator/health
52+
port: http
53+
failureThreshold: 10
54+
periodSeconds: 10
55+
env:
56+
- name: SPRING_FLYWAY_USER
57+
value: {{ .Values.settings.dbMigrateUser }}
58+
- name: SPRING_FLYWAY_PASSWORD
59+
value: {{ .Values.settings.dbMigratePassword }}
60+
- name: SPRING_FLYWAY_URL
61+
value: {{ .Values.settings.dbMigrateJdbcUrl }}
62+
- name: WIREQUERY_REDIS_HOSTNAME
63+
value: {{ .Values.settings.redisHostName }}
64+
- name: WIREQUERY_REDIS_PORT
65+
value: {{ .Values.settings.redisPort | quote }}
66+
- name: WIREQUERY_DB_USER
67+
value: {{ .Values.settings.dbUser }}
68+
- name: WIREQUERY_DB_PASSWORD
69+
value: {{ .Values.settings.dbPassword }}
70+
- name: WIREQUERY_DB_URL
71+
value: {{ .Values.settings.dbUrl }}
72+
- name: WIREQUERY_ADMIN_ENABLED
73+
value: {{ .Values.settings.adminEnabled | quote }}
74+
resources:
75+
{{- toYaml .Values.resources | nindent 12 }}
76+
{{- with .Values.nodeSelector }}
77+
nodeSelector:
78+
{{- toYaml . | nindent 8 }}
79+
{{- end }}
80+
{{- with .Values.affinity }}
81+
affinity:
82+
{{- toYaml . | nindent 8 }}
83+
{{- end }}
84+
{{- with .Values.tolerations }}
85+
tolerations:
86+
{{- toYaml . | nindent 8 }}
87+
{{- end }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{- if .Values.autoscaling.enabled }}
2+
apiVersion: autoscaling/v2
3+
kind: HorizontalPodAutoscaler
4+
metadata:
5+
name: {{ include "application.fullname" . }}
6+
labels:
7+
{{- include "application.labels" . | nindent 4 }}
8+
spec:
9+
scaleTargetRef:
10+
apiVersion: apps/v1
11+
kind: Deployment
12+
name: {{ include "application.fullname" . }}
13+
minReplicas: {{ .Values.autoscaling.minReplicas }}
14+
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
15+
metrics:
16+
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
17+
- type: Resource
18+
resource:
19+
name: cpu
20+
target:
21+
type: Utilization
22+
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
23+
{{- end }}
24+
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
25+
- type: Resource
26+
resource:
27+
name: memory
28+
target:
29+
type: Utilization
30+
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
31+
{{- end }}
32+
{{- end }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "application.fullname" . }}-image-pull-secret
5+
type: kubernetes.io/dockerconfigjson
6+
stringData:
7+
.dockerconfigjson: '{"auths":{}}'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ include "application.fullname" . }}
5+
labels:
6+
{{- include "application.labels" . | nindent 4 }}
7+
spec:
8+
type: {{ .Values.service.type }}
9+
ports:
10+
- port: {{ .Values.service.port }}
11+
targetPort: http
12+
protocol: TCP
13+
name: http
14+
- port: 9090
15+
targetPort: 9090
16+
protocol: TCP
17+
name: grpc
18+
selector:
19+
{{- include "application.selectorLabels" . | nindent 4 }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.serviceAccount.create -}}
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
name: {{ include "application.serviceAccountName" . }}
6+
labels:
7+
{{- include "application.labels" . | nindent 4 }}
8+
{{- with .Values.serviceAccount.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
{{- end }}

0 commit comments

Comments
 (0)