Repository navigation
Releases
v0.2.17
Added — Helm chart values.schema.json (with the non-elastic contract baked in)
The chart now ships a JSON Schema (draft-07) at the chart root,
covering every field in values.yaml. Helm enforces the schema on
every install, upgrade, template, and lint run — invalid
values are rejected client-side with a structured error message
before the manifest is rendered.
Concretely the schema:
- Locks down the top-level vocabulary with
additionalProperties: false, sorelicaCount: 1(typo) is rejected at admission rather
than silently ignored. - Enforces the non-elastic contract as machine-readable
invariants —replicaCount,autoscaling.minReplicas, and
autoscaling.maxReplicasare all bounded to exactly 1. Operators
who try to scale the app out get a fast, specific error pointing
at the schema instead of a runtime 429 storm against Bright Data.
When issue #8
is resolved, the bounds relax in one place. - Mirrors the pydantic Settings constraints in
src/brightdata_exporter/config.py—config.scrapeInterval
rejects values below 30,config.periodDaysis clamped to 1-366,
rate/cache fields enforce theirgt=/ge=boundaries. - Pins closed-vocabulary enums:
image.pullPolicy,service.type,
strategy.type,config.logLevel,config.logFormat,
podDisruptionBudget.unhealthyPodEvictionPolicy,
podSecurityContext.seccompProfile.type. Catches values like
pullPolicy: SometimesorlogLevel: verboseat admission. - Validates probes against the standard Kubernetes Probe shape
(httpGet + tcpSocket + exec, with port/path/scheme constraints).
ArtifactHub picks up the schema from the packaged .tgz and renders
the Values Schema badge plus an interactive schema browser on
the chart page.
Free-form blocks (*.annotations, *.labels, nodeSelector,
tolerations, affinity, serviceMonitor.relabelings,
autoscaling.metrics, autoscaling.behavior,
networkPolicy.ingress.from, networkPolicy.egress.extra) intentionally
allow operator-supplied content so the schema doesn't constrain
upstream Kubernetes API shapes that we don't want to vendor.
v0.2.16
Changed — Helm chart PDB default shape (drain-friendly + compliance-friendly)
podDisruptionBudget.enabled flips from false to true. The shipped
shape changes from minAvailable: 1 to maxUnavailable: 1 plus
unhealthyPodEvictionPolicy: AlwaysAllow (k8s 1.27+, GA 1.31).
Why: minAvailable: 1 on a single-replica deployment is a
documented anti-pattern —
it BLOCKS node drains entirely, making the chart the cluster's
maintenance blocker for zero protection benefit (one replica down ==
service down, regardless of PDB). The new defaults:
- Are a no-op while
replicas: 1(drains succeed normally). - Become real protection automatically once
replicas >= 2(issue
#8)
without any spec change —maxUnavailable: 1is the recommended
forward-compatible shape per the upstream docs. - Survive the "stuck NotReady/Terminating pod blocks all drains"
failure mode viaunhealthyPodEvictionPolicy: AlwaysAllow. - Satisfy "every workload must have a PDB" compliance policies
(Kyverno, OPA Gatekeeper, ValidatingAdmissionPolicy) without the
drain-blocking downside.
Operators who genuinely run replicas >= 3 and prefer strict uptime
over drain-friendliness can still override minAvailable (mutually
exclusive with maxUnavailable).
Added — HorizontalPodAutoscaler template (compliance-only, opt-in)
New templates/hpa.yaml behind autoscaling.enabled (default false).
Defaults pin minReplicas: maxReplicas: 1 — Kubernetes accepts
min == max, the controller simply keeps the deployment at a fixed
count rather than scaling. The rendered HPA carries explicit
annotations:
brightdata-exporter.io/hpa-purpose: "policy-compliance-only"brightdata-exporter.io/non-elastic-tracking-issue: "https://github.com/danielgines/brightdata-exporter/issues/8"
so operators auditing the manifest see the intent. Raising
maxReplicas above 1 BREAKS the service (Bright Data 429s,
duplicate scrape cycles, overlapping Prometheus series) — see
issue #8 for the architectural background.
The chart now also OMITS spec.replicas on the Deployment when
autoscaling.enabled=true so the HPA controller owns the field —
prevents GitOps drift loops between Argo CD / Flux's chart-rendered
count and the HPA-driven count.
For clusters where the cleaner answer is a Kyverno PolicyException
exempting this workload from a require-hpa policy, the README now
documents that path alongside the opt-in HPA.
Added — configurable Deployment update strategy
New strategy block in values.yaml (default type: Recreate,
matching the previous hardcoded value). When the app moves to
replicas >= 2 (after issue #8), operators can switch to
type: RollingUpdate and supply rollingUpdate.maxSurge /
rollingUpdate.maxUnavailable without forking the chart.
Added — podDisruptionBudget.annotations
Operator-supplied annotations on the rendered PodDisruptionBudget
resource. Useful for owner/contact metadata, ArgoCD ignore
directives, etc.
Added — helm-template-full smoke now covers autoscaling.enabled=true
The CI smoke render that exercises every feature flag now also
includes the new HPA template, catching template-time bugs in PR
review the same way it catches them for ServiceMonitor /
NetworkPolicy / auth.
v0.2.15
Added — chart-specific README.md for ArtifactHub indexing
ArtifactHub looks for a README.md at the chart root (next to
Chart.yaml) inside the packaged .tgz, not in the repository root.
Without it the package page showed "This package version does not
provide a README file" — discoverability hit, since most users land
on ArtifactHub before the GitHub repo.
Added helm/brightdata-exporter/README.md covering:
- TL;DR install — single
helm install oci://…command - Required configuration —
auth.apiToken+auth.apiAuthToken - Common patterns — production with ExternalSecret + ServiceMonitor;
locked-down NetworkPolicy; strict Pod Security / Kyverno alignment - Single-replica contract — explains why scaling breaks and links
to issue #8 - Values reference index — pointers into
values.yamlby section - Image supply chain — multi-arch + cosign verify command + SBOM
- provenance + Trivy gate disclosure
The repo-root README.md stays focused on the project as a whole;
the chart README.md is purely operational ("I want to install
this chart, what do I do?"). Different audiences, no duplication.
helm package automatically picks up README.md next to Chart.yaml
— verified with tar -tzf showing brightdata-exporter/README.md
in the resulting .tgz.
v0.2.14
Added — Helm chart compliance hardening
Three opt-in / secure-by-default fields aligning the chart with strict
Pod Security + Kyverno policy environments:
automountServiceAccountToken: false(new default) — set on
both the ServiceAccount AND the pod spec. The exporter never calls
the Kubernetes API, so the projected SA token is dead weight that
attackers could exfil. Some platforms run Kyverno's
restrict-sa-token-mountspolicy that requires this; the rest get
a free zero-trust win.terminationGracePeriodSeconds: 30explicit and configurable.
Default value is the same as the k8s implicit default but making
it visible documents the SIGTERM → drain → SIGKILL contract and
lets operators bump it for slow-network clusters.priorityClassName: ""(opt-in). Empty by default = use cluster
default. Set in production to e.g.system-cluster-criticalfor
preemption protection.
Added — PodDisruptionBudget template (opt-in, default disabled)
templates/poddisruptionbudget.yaml ships behind podDisruptionBudget.enabled
(default false). For single-replica deployments, a PDB with
minAvailable: 1 BLOCKS node drains — making the chart the cluster's
maintenance blocker. Default-off lets cluster admins drain freely;
operators who genuinely need uptime-during-drain opt in.
Added — ArtifactHub annotations on Chart.yaml
Rather than ship a separate artifacthub-pkg.yml, the chart now
carries ArtifactHub-specific metadata in Chart.yaml.annotations
(the Helm-idiomatic path used by prometheus-community / bitnami).
Surfaces:
- Category
monitoring-loggingfor ArtifactHub search filters - License
MIT(SPDX identifier) - Containers Images tab linking the GHCR image (CVE scan integration)
- Quick links in the sidebar (source, container image, changelog)
- Per-version Changelog tab populated via
artifacthub.io/changes
list with structured kinds (added / fixed / changed)
scripts/sync-version.py now also syncs the image tag in the
artifacthub.io/images annotation alongside Chart.yaml's version +
appVersion — single bump bumps all four references.
Fixed — OCI label org.opencontainers.image.version
Was being stamped with 0.2 (the semver {{major}}.{{minor}}
pattern from the metadata-action's tag generator) instead of the full
release version. docker/metadata-action's default-derived label
overrides whatever the Dockerfile's LABEL directive carries. Fixed
by passing an explicit labels: input to metadata-action that pins
the full version.
Added — issue tracking for deferred work
Three GitHub issues opened to track work that doesn't fit a single
release:
- #8
HPA / multi-replica support — needs distributed rate limiter,
cache, leader-elected scrape, and per-replica metric labels.
Documented invalues.yamlnext toreplicaCount: 1so operators
see the constraint before trying to scale. - #9
__main__.pytest coverage gap — entrypoint wiring + signal
handling untested. Taggedgood first issue. - #10
Docker Hub mirror — eval and implement when there's a real
user-asked-for-it signal.
Changed
astral-sh/setup-uv@v3 → @v7(#3)
v0.2.13
Changed — Python runtime 3.12 → 3.14
Bumped the runtime base image from python:3.12-slim-trixie to
python:3.14-slim-trixie (#7). Verified all our Python deps have
appropriate wheels: pure-Python ones (httpx, prometheus-client,
pydantic, pydantic-settings, structlog, etc) ship as py3-none-any
which is forward-compatible; pydantic-core 2.46.3 already ships
cp314 wheels.
Side fixes that PR #7 left for us to clean up:
- Header comment updated to reflect Python 3.14.
- Builder image also bumped:
ghcr.io/astral-sh/uv:0.8-python3.12-trixie-slim
→ghcr.io/astral-sh/uv:0.11-python3.14-trixie-slim. PR #7 only
bumped the runtime stage; leaving the builder on 3.12 with a 3.14
runtime worked because our wheel is pure-Python, but is fragile —
any future native build step would surface ABI mismatch. Same Python
series across both stages eliminates that class of bug. (This
obsoletes the still-open dependabot PR #6 which proposed
0.8 → 0.11; we just took both bumps at once.) - pip cleanup path is now Python-version-agnostic. Previously
hardcoded/usr/local/lib/python3.12/site-packages/pip*which is a
no-op in a 3.14 image. Now derived at build time:
python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])'.
The defense-in-depth cleanup runs in any future Python series.
Smoke-tested locally: docker build succeeds, container starts,
/healthz returns 200, pip is fully removed from the runtime image
(no pip* directories under /usr/local/lib/python3.14/site-packages).
Added — concurrency block on release.yaml
Serializes release runs on the same branch with cancel-in-progress: false. Cancelling mid-release would leave GHCR in a half-pushed state
(image at version X exists but no helm chart, no git tag, no GitHub
Release) — far worse than a queued second run. The resolve job's
commit-subject filter keeps non-release queue entries cheap (~16s
skip) so this doesn't bottleneck normal CI.
Documentation
[![PyPI]]badge removed from README — we don't publish to PyPI
(operational decision, not a regression). Distribution is GHCR
(image + chart) + ArtifactHub (chart index).[![Artifact Hub]]badge added — links to the chart's ArtifactHub
search result and shows publication status (verified-publisher
badge will appear once ArtifactHub finishes the next scrape cycle).
v0.2.12
Changed — GitHub Actions toolchain refresh
Routine dependabot bumps on the workflow surface, no behavior changes
to the published artifact:
docker/setup-qemu-action@v3 → @v4(#1)docker/setup-buildx-action@v3 → @v4(#2)actions/checkout@v4 → @v6(#4)docker/build-push-action@v6 → @v7(#5) — the v7.0.0 breaking
changes (Node 24 default runtime, removed deprecated env vars
DOCKER_BUILD_NO_SUMMARY/DOCKER_BUILD_EXPORT_RETENTION_DAYS)
do not affect this project. SBOM / provenance / cosign integration
contract unchanged.
v0.2.11
Fixed — ArtifactHub verification metadata path
The verification metadata artifact was being pushed to a sub-path
(<chart>/artifacthub-repo:latest) which ArtifactHub never reads.
Per the ArtifactHub OCI docs,
the artifact must use the dedicated artifacthub.io tag on the
SAME OCI repo as the chart:
Wrong: ghcr.io/<owner>/charts/<chart>/artifacthub-repo:latest
Right: ghcr.io/<owner>/charts/<chart>:artifacthub.io
That's why the package showed verified_publisher: False even after
the metadata was pushed — ArtifactHub looked at the right tag and
found nothing. Same fix in three places: workflow yaml, justfile
recipe, README, in-file comment.
Fixed — drop unsupported icon: from Chart.yaml
ArtifactHub's image handler accepts PNG / JPG / SVG / WebP but not
ICO. With icon: https://brightdata.com/favicon.ico set, every scan
emitted "image: unknown format" errors next to otherwise-valid index
entries. Bright Data doesn't host their logo at a publicly-discoverable
PNG/SVG URL we can confidently link to (404s on the obvious paths +
trademark concerns about embedding a 3rd-party logo on a community
project), so the icon field is removed entirely. ArtifactHub falls
back to its default placeholder.
To add a custom logo later, host a PNG/SVG at any public URL (e.g.
a raw.githubusercontent.com path inside the repo, or a personal CDN)
and re-add the icon: field.
v0.2.10
Changed — GitHub Release page now mirrors the curated CHANGELOG section
Previously softprops/action-gh-release@v2 was invoked with
generate_release_notes: true, which builds the release page body from
the list of commits since the previous tag. For a project that
maintains a hand-curated CHANGELOG.md this duplicated the inferior
auto-list right next to the link to the actual changelog.
Replaced by an awk extraction step that pulls the ## [X.Y.Z] section
of CHANGELOG.md and passes it as the body to action-gh-release.
Behavior:
- Awk captures lines from the version heading until the next
## [
heading (or EOF). The version heading itself is skipped — GitHub's
release UI already shows the version in its title. - If the section is missing or empty, the job fails with a clear
message: an operator who forgot to write the CHANGELOG entry can't
ship an empty release page. Image + Helm chart are already published
by the time this step runs, so the failure mode is "release artifact
exists but no Release page" — recoverable by a subsequent push fixing
the CHANGELOG, or by editing the GitHub Release manually.
The Release page for this version (v0.2.10) demonstrates the new
behavior — what you see here is exactly what landed in CHANGELOG.md
under ## [0.2.10], not the auto-generated commit list.