Skip to content

Version v0.16.0

This is the changelog for version 0.16.0.

New

  • Metrics: the operator exports metrics for each ManagedResource, prefixed with kubensync_:
  • its status (synced, failed or unprocessed)
  • the namespaces it selects and the resources it created
  • how long reconciles take
  • errors, by stage
  • deletes that failed

It also exports kubensync_data_watches and kubensync_build_info. The controller-runtime metrics keep their names. See Monitoring. - Grafana dashboard: dist/grafana/kubensync-dashboard.json shows the status of every ManagedResource, errors by stage, reconciles, the work queue, API requests, resource usage and leader election. The Monitoring page also has example PrometheusRule alerts. - Multi-arch images: images are now published for linux/amd64, linux/arm64 and linux/arm/v7. - Chart: the new prometheus.labels value sets labels on the ServiceMonitor, for example release: kube-prometheus-stack.

Fixes

  • The chart's ServiceMonitor now selects the metrics Service. Before, it selected nothing, so prometheus.enable: true scraped nothing.
  • With certmanager.enable, the metrics endpoint now serves the certificate cert-manager issues, and that certificate lists the metrics Service, so the ServiceMonitor can verify it. Before, the operator served its own self-signed certificate and the scrape failed TLS verification.
  • A template no longer fails to render when it calls repeat, indent or nindent with a negative count, or ellipsis with an offset past the end of the string (sprout 1.1.2).

Behavior changes

  • A ManagedResource with an invalid labelSelector now fails even when its regex matches no namespace. Before, the label selector was only parsed for namespaces the regex matched, so it stayed Ready.
  • The go_godebug_* metrics are only exposed when a GODEBUG setting differs from its default. Otherwise they are always zero, so they are no longer exported.

Upgrade notes

  • The CRDs are unchanged.
  • With kube-prometheus-stack, set prometheus.labels.release to its release name so that Prometheus picks up the ServiceMonitor.
  • Images of earlier versions remain linux/amd64 only.
  • If you build the image yourself, you need BuildKit: the legacy builder (DOCKER_BUILDKIT=0) can no longer build the Dockerfile.

What's Changed

  • build(deps): bump helm/kind-action from 1.15.0 to 1.15.2 by @dependabot[bot] in !231
  • feat: publish multi-arch operator images (amd64, arm64, arm/v7) by @eryalito in !232
  • feat: add ManagedResource metrics, a Grafana dashboard and monitoring docs by @eryalito in !233
  • build(deps): bump github.com/go-sprout/sprout from 1.1.1 to 1.1.2 by @dependabot[bot] in !213
  • build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.40.0 to 1.45.0 in the go_modules group across 1 directory by @dependabot[bot] in !211
  • build(deps): bump the go_modules group across 1 directory with 2 updates by @dependabot[bot] in !234
  • build(deps): bump github.com/onsi/ginkgo/v2 from 2.32.1 to 2.35.0 by @dependabot[bot] in !214
  • build(deps): bump github.com/onsi/gomega from 1.42.1 to 1.44.0 by @dependabot[bot] in !212
  • build(deps): bump sigs.k8s.io/controller-runtime from 0.24.1 to 0.25.3 by @dependabot[bot] in !210

Full Changelog: https://github.com/eryalito/kubensync-operator/compare/v0.15.0...v0.16.0

Release

Check out the release on GitHub