Skip to content

Commit

Permalink
Merge pull request #9 from parca-dev/allow_server_disable
Browse files Browse the repository at this point in the history
allow to disable parca server (#7)
  • Loading branch information
rlex authored Jul 27, 2022
2 parents f3a802d + f046804 commit 5b208e9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/parca/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.1
version: 2.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 2 additions & 1 deletion charts/parca/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# parca

![Version: 2.0.1](https://img.shields.io/badge/Version-2.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.0](https://img.shields.io/badge/AppVersion-v0.12.0-informational?style=flat-square)
![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.0](https://img.shields.io/badge/AppVersion-v0.12.0-informational?style=flat-square)

Open Source Infrastructure-wide continuous profiling

Expand Down Expand Up @@ -74,6 +74,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts
| nameOverride | string | `""` | overrides chart name |
| server.config | object | `{"debug_info":{"bucket":{"config":{"directory":"./tmp"},"type":"FILESYSTEM"},"cache":{"config":{"directory":"./tmp"},"type":"FILESYSTEM"}}}` | parca server config block |
| server.corsAllowedOrigins | string | `"*"` | CORS setting |
| server.enabled | bool | `true` | Allows disabling parca server |
| server.extraEnv | list | `[]` | additional container environment variables for server |
| server.image.pullPolicy | string | `"IfNotPresent"` | Overrides pull policy for server |
| server.image.repository | string | `"ghcr.io/parca-dev/parca"` | Overrides the image repository for server |
Expand Down
4 changes: 3 additions & 1 deletion charts/parca/templates/server-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.server.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -8,4 +9,5 @@ data:
parca.yaml: |-
{{ toYaml .Values.server.config | indent 4 }}
scrape_configs:
{{ toYaml .Values.server.scrapeConfigs | indent 4 }}
{{ toYaml .Values.server.scrapeConfigs | indent 4 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/parca/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.server.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -87,3 +88,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/parca/templates/server-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.server.enabled -}}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "parca.fullname" . -}}
{{- $svcPort := .Values.server.service.port -}}
Expand Down Expand Up @@ -59,3 +60,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion charts/parca/templates/server-service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.server.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -12,4 +13,5 @@ spec:
protocol: TCP
name: http
selector:
{{- include "parca.selectorLabels.server" . | nindent 4 }}
{{- include "parca.selectorLabels.server" . | nindent 4 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/parca/templates/server-servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.server.enabled -}}
{{- if .Values.server.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down Expand Up @@ -26,4 +27,5 @@ spec:
relabelings:
{{ toYaml .Values.server.serviceMonitor.relabelings | indent 4 }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/parca/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ agent:
resources: {}

server:
# -- Allows disabling parca server
enabled: true
image:
# -- Overrides the image repository for server
repository: ghcr.io/parca-dev/parca
Expand Down

0 comments on commit 5b208e9

Please sign in to comment.