Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#18 more configurable server config file #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2.1
version: 2.2.2

# 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.2.1](https://img.shields.io/badge/Version-2.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.1](https://img.shields.io/badge/AppVersion-v0.12.1-informational?style=flat-square)
![Version: 2.2.2](https://img.shields.io/badge/Version-2.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.1](https://img.shields.io/badge/AppVersion-v0.12.1-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
| ingress.tls | list | `[]` | |
| 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.configFullyOverride | object | `{}` | allows the ability to fully override the configuration file |
| server.corsAllowedOrigins | string | `"*"` | CORS setting |
| server.enabled | bool | `true` | Allows disabling parca server |
| server.extraArgs | list | `[]` | additional arguments to pass to the server |
Expand Down
4 changes: 4 additions & 0 deletions charts/parca/templates/server-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
{{- include "parca.labels.server" . | nindent 4 }}
data:
parca.yaml: |-
{{- if .Values.server.configFullyOverride }}
{{- toYaml .Values.server.configFullyOverride | nindent 4 }}
{{- else }}
{{ toYaml .Values.server.config | indent 4 }}
scrape_configs:
{{ toYaml .Values.server.scrapeConfigs | indent 4 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/parca/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ server:
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: kubernetes_pod_name
# -- allows the ability to fully override the configuration file
configFullyOverride: {}
# -- additional annotations for server pod
podAnnotations: {}
# -- additional security context for server pod
Expand Down