Skip to content

Commit

Permalink
Merge branch 'main' into kafka-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Dec 15, 2024
2 parents 4432ee2 + 80a3ff4 commit 05b9965
Show file tree
Hide file tree
Showing 15 changed files with 291 additions and 203 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
on:
pull_request:
paths-ignore:
- "docs/**"
- "helm/**"
- "assets/**"
- "**.md"
push:
branches:
- main

name: Lint, Test and Coverage Report
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ runner.os }}-cargo

- uses: taiki-e/install-action@v2
with:
tool: cargo-hack, cargo-llvm-cov, nextest

- name: Check with clippy
run: cargo hack clippy --verbose --each-feature --no-dev-deps -- -D warnings

- name: Check docs
run: cargo hack doc --verbose --no-deps --each-feature --no-dev-deps

- name: Doctests
run: cargo hack --each-feature test --doc

- name: Tests
run: cargo hack --each-feature llvm-cov --no-report nextest

- name: Genrate coverage report
run: cargo llvm-cov report --lcov --output-path coverage.lcov

- name: Upload Coverage Report
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./coverage.lcov
parallel: true
flag-name: run-${{ matrix.os }}-cargo

- name: Finish Coverage Report
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
61 changes: 0 additions & 61 deletions .github/workflows/lint.yaml

This file was deleted.

Binary file added helm-releases/parseable-1.6.4.tgz
Binary file not shown.
3 changes: 2 additions & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: parseable
description: Helm chart for Parseable Server
type: application
version: 1.6.3
version: 1.6.4
appVersion: "v1.6.3"
maintainers:
- name: Parseable Team
Expand All @@ -18,3 +18,4 @@ dependencies:
version: 0.48.0
repository: https://fluent.github.io/helm-charts
condition: fluent-bit.enabled

10 changes: 8 additions & 2 deletions helm/templates/ingestor-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ spec:
apiVersion: v1
fieldPath: metadata.name
{{- end }}
{{- range $secret := .Values.parseable.s3ModeSecret }}

{{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }}
{{- range $secret := .Values.parseable.s3ModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -65,7 +67,10 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- range $secret := .Values.parseable.blobModeSecret }}
{{- end }}

{{- if and .Values.parseable.blobModeSecret .Values.parseable.blobModeSecret.enabled }}
{{- range $secret := .Values.parseable.blobModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -76,6 +81,7 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- end }}
- name: P_MODE
value: "ingest"
ports:
Expand Down
16 changes: 9 additions & 7 deletions helm/templates/querier-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: P_MODE
value: "query"
{{- range $key, $value := .Values.parseable.env }}
- name: {{ $key }}
value: {{ tpl $value $ | quote }}
{{- end }}
{{- range $secret := .Values.parseable.s3ModeSecret }}

{{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }}
{{- range $secret := .Values.parseable.s3ModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -67,13 +71,10 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
- name: P_MODE
value: "query"
{{- if .Values.parseable.persistence.querier.enabled }}
- name: P_HOT_TIER_DIR
value: "/parseable/hot-tier"
{{- end }}
{{- range $secret := .Values.parseable.blobModeSecret }}

{{- if and .Values.parseable.blobModeSecret .Values.parseable.blobModeSecret.enabled }}
{{- range $secret := .Values.parseable.blobModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -84,6 +85,7 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- end }}
ports:
- containerPort: 8000
{{- with .Values.readinessProbe }}
Expand Down
15 changes: 10 additions & 5 deletions helm/templates/standalone-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
- name: {{ $key }}
value: {{ tpl $value $ | quote }}
{{- end }}
{{- if .Values.parseable.localModeSecret }}
{{- range $secret := .Values.parseable.localModeSecret }}
{{- if and .Values.parseable.localModeSecret .Values.parseable.localModeSecret.enabled }}
{{- range $secret := .Values.parseable.localModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -59,8 +59,10 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- else }}
{{- range $secret := .Values.parseable.s3ModeSecret }}
{{- end }}

{{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }}
{{- range $secret := .Values.parseable.s3ModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -72,7 +74,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- range $secret := .Values.parseable.blobModeSecret }}

{{- if and .Values.parseable.blobModeSecret .Values.parseable.blobModeSecret.enabled }}
{{- range $secret := .Values.parseable.blobModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -83,6 +87,7 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- end }}
ports:
- containerPort: 8000
{{- with .Values.readinessProbe }}
Expand Down
84 changes: 42 additions & 42 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,46 +77,45 @@ parseable:
## blobModeSecret if store is set to blob-store
## s3ModeSecret if store is set to s3-store
localModeSecret:
- type: env
name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
# blobModeSecret:
# - type: env
# name: parseable-env-secret
# prefix: p_
# keys:
# - addr
# - username
# - password
# - azr.access_key
# - azr.account
# - azr.container
# - azr.url
# s3ModeSecret:
# - type: env
# name: parseable-env-secret
# prefix: P_
# keys:
# ## Comment / uncomment the following lines as required
# # - tls.cert.path
# # - tls.key.path
# # - storage.upload.interval
# - addr
# - username
# - password
# - staging.dir
# - fs.dir
# - s3.url
# - s3.access.key
# - s3.secret.key
# - s3.bucket
# - s3.region
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
blobModeSecret:
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- azr.access_key
- azr.account
- azr.container
- azr.url
s3ModeSecret:
enabled: false
secrets:
- name: parseable-env-secret
prefix: P_
keys:
- addr
- username
- password
- staging.dir
- fs.dir
- s3.url
- s3.access.key
- s3.secret.key
- s3.bucket
- s3.region
serviceAccount:
create: true
name: "parseable"
Expand Down Expand Up @@ -298,6 +297,7 @@ vector:
fluent-bit:
enabled: true
kind: DaemonSet
serverHost: parseable.parseable.svc.cluster.local
replicaCount: 1
image:
repository: parseable/fluent-bit
Expand Down Expand Up @@ -383,7 +383,7 @@ fluent-bit:
[OUTPUT]
Name parseable
Match kube.*
Server_Host parseable.parseable.svc.cluster.local
Server_Host {{ .Values.serverHost }}
Username admin
Password admin
Server_Port 80
Expand All @@ -393,7 +393,7 @@ fluent-bit:
[OUTPUT]
Name parseable
Match k8s_events
Server_Host parseable.parseable.svc.cluster.local
Server_Host {{ .Values.serverHost }}
Server_Port 80
Username admin
Password admin
Expand Down
Loading

0 comments on commit 05b9965

Please sign in to comment.