Skip to content

Releases: clevyr/kubedb

v1.15.2

12 Nov 00:42
5f1ca4a
Compare
Choose a tag to compare

Changelog

Features

  • 6781b91 feat(dump,restore): Hide progress on non-TTYs, add --progress flag
  • 33364dc feat(healthchecks): Generate a run ID
  • bd7a127 feat(healthchecks): Respect Healthchecks ping body limit

Fixes

  • ba23950 fix(dump,restore): Fix size in log not being humanized
  • ff91f0f fix(healthchecks): Ensure HTTP response body is always closed
  • 026e402 fix(progressbar): Fix writer param not always being used
  • 4f4b671 perf(dump,restore): Optimize tracking of written bytes
  • acd61b5 perf(healthchecks): Send a HEAD request if ping body is empty
  • d11e4f0 perf: Disable GCS GRPC to reduce binary size

Others

  • f7fcc0f chore(config): Simplify flag getters using must package
  • 55935d4 chore(deps): klauspost/pgzip -> compress/gzip
  • e426920 chore(deps): update aws-sdk-go-v2 monorepo (#201)
  • 1148f22 chore(deps): update docker/dockerfile docker tag to v1.11 (#202)
  • c32e5df chore(deps): update go to v1.23.3 (#206)
  • d12bc83 chore(deps): update k8s.io/utils digest to 6fe5fd8 (#205)
  • 44da9d1 chore(deps): update kubernetes packages to v0.31.2 (#199)
  • 4e5b92c chore(deps): update module cloud.google.com/go/storage to v1.46.0 (#204)
  • 3a9a038 chore(deps): update module github.com/charmbracelet/lipgloss to v1 (#203)
  • 2d9430a chore(deps): update module github.com/schollz/progressbar/v3 to v3.17.1 (#200)
  • 5546035 chore(deps): update module golang.org/x/sync to v0.9.0 (#207)
  • 5f1ca4a chore(deps): update module google.golang.org/api to v0.205.0 (#198)
  • bdb89a6 chore(storage): Request minimal GCS auth scopes
  • f0986b8 chore(util): Change network policy failure log from error to warn level
  • fd708e8 chore(util): Use go-utils UserAgentTransport implementation
  • 75be34c chore: Log shell completion errors
  • 7a5e985 ci(goreleaser): Enable reproducible builds

v1.15.1

20 Oct 02:54
b93a119
Compare
Choose a tag to compare

Changelog

Fixes

  • eddcce1 fix(postgres): Fix env detection on CNPG v1.24.1+
  • 80d623f fix(progressbar): Fix possible race conditions
  • af081ef fix: Copy database security context

Others

  • 30dac9b chore(deps): Add enumer as versioned dependency [skip ci]
  • b0b81bc chore(deps): update aws-sdk-go-v2 monorepo (#188)
  • 00cc5a6 chore(deps): update go to v1.23.2 (#193)
  • fecb347 chore(deps): update k8s.io/utils digest to 49e7df5 (#190)
  • 3385634 chore(deps): update module al.essio.dev/pkg/shellescape to v1.5.1 (#196)
  • 9cbbaf5 chore(deps): update module cloud.google.com/go/storage to v1.45.0 (#195)
  • bf23942 chore(deps): update module github.com/gabe565/go-spinners to v1.3.0 (#192)
  • be0e1d8 chore(deps): update module github.com/schollz/progressbar/v3 to v3.16.1 (#191)
  • 9336bea chore(deps): update module google.golang.org/api to v0.201.0 (#189)
  • b93a119 chore: Simplify default container detection
  • 16436c6 chore: Simplify installation of completions and man pages
  • d733741 chore: Use custom User-Agent

v1.15.0

16 Sep 06:38
e79e054
Compare
Choose a tag to compare

Changelog

Features

  • 44f5737 feat(cmd): Add support for installing as a kubectl plugin
  • 6b25ec1 feat(notifier): Allow notifier requests to be canceled
  • 1793b6c feat(notifier): Retry Healthchecks pings on failure
  • bc7e613 feat(postgres): Add pod matcher for when app.kubernetes.io/name=postgres
  • 7a2bb17 feat(restore): Add support for restoring from S3 or GCS
  • 4342cfe feat(restore): Include summary in Healthchecks pings
  • 6ee49c0 feat: Add dump/restore cloud storage completions
  • 2309a70 feat: Use kubectl.kubernetes.io/default-container if set

Fixes

  • ec030dc fix(config): Add missing dialects to help text
  • d180bd4 fix(dump): Fix some pipes possibly being left open
  • a62bb31 fix(portforward): Fix possible hang if port forward never goes ready
  • 215d126 fix(restore): Return an error if no filename is given and term is not a TTY
  • 6e8ab05 fix(util): Remove concurrency during setup to fix race warnings

Others

  • 8ab32dc chore(cmd): Disable file completions for some subcommands
  • 286a1c8 chore(command): Check arg types when creating a new builder
  • 390e1e4 chore(deps): update aws-sdk-go-v2 monorepo (#176)
  • 4f39729 chore(deps): update docker/dockerfile docker tag to v1.10 (#184)
  • aec59d4 chore(deps): update github.com/muesli/termenv digest to 82936c5 (#185)
  • cb6ea85 chore(deps): update go to v1.23.1 (#179)
  • 89ce651 chore(deps): update golang.org/x/exp digest to 701f63a (#180)
  • 441f96e chore(deps): update k8s.io/utils digest to 702e33f (#182)
  • 4b6b6ff chore(deps): update kubernetes packages to v0.31.1 (#141)
  • 1ba47f9 chore(deps): update module github.com/charmbracelet/huh to v0.6.0 (#183)
  • ee0b228 chore(deps): update module github.com/charmbracelet/lipgloss to v0.13.0 (#181)
  • 50c7c0c chore(deps): update module github.com/schollz/progressbar/v3 to v3.14.6 (#177)
  • e79e054 chore(deps): update module github.com/schollz/progressbar/v3 to v3.15.0 (#187)
  • 7334dc9 chore(deps): update module google.golang.org/api to v0.197.0 (#186)
  • 0190ca6 chore(dump): Change Healthchecks logs to use non-rounded border variant
  • e5fdac9 chore(golangci-lint): exportloopref -> copyloopvar
  • cf34710 chore(goreleaser): Update deprecated field name_template to version_template
  • 0921545 chore(log): Add back global log password masking
  • af533d8 chore(notifier): Log when Healthchecks pings are initiated
  • d0e87fb chore(portforward): Remove unnecessary errgroup
  • 31c3714 chore(progressbar): Code cleanups and slight optimizations
  • 6b0ec90 chore(util): Change network policy log level to debug
  • 21d82cd chore(util): Only check if namespace exists when no pods are found
  • dfc9332 chore: Fix lint warnings
  • 04eafec chore: Small code cleanups
  • 3eec2b1 chore: Tweak generated job container fields
  • e654f32 refactor: Change log library from zerolog to slog

v1.14.0

01 Aug 21:23
659f3eb
Compare
Choose a tag to compare

Changelog

Features

  • 9967dc7 feat(restore): Add interactive file picker if no arg is given
  • b7e4835 feat(restore): Add warning if filename does not contain the current namespace
  • 39142f9 feat(tui): Close forms when esc is pressed
  • 92470a3 feat(tui): Highlight production namespace cell in red

Fixes

  • 398a3af fix(tui): Improve contrast
  • fc4ba1a perf(manpages): filepath.Walk() -> filepath.WalkDir()

Others

  • e891927 chore(cmd): Rename subcommand files to cmd.go
  • bac356a chore(deps): bump google.golang.org/grpc from 1.64.0 to 1.64.1 (#165)
  • 1f40f6f chore(deps): update alpine docker tag to v3.20
  • 66824ea chore(deps): update aws-sdk-go-v2 monorepo (#154)
  • 90e1042 chore(deps): update aws-sdk-go-v2 monorepo (#158)
  • 659f3eb chore(deps): update aws-sdk-go-v2 monorepo (#169)
  • c0493f7 chore(deps): update docker/dockerfile docker tag to v1.8 (#163)
  • a1c68a2 chore(deps): update docker/dockerfile docker tag to v1.9 (#171)
  • 1753e18 chore(deps): update go to v1.22.5 (#159)
  • f1730c3 chore(deps): update golang.org/x/exp digest to 8a7402a (#166)
  • d2c836e chore(deps): update goreleaser/goreleaser-action action to v6
  • e99732a chore(deps): update k8s.io/utils digest to 18e509b (#170)
  • 4a1730c chore(deps): update module cloud.google.com/go/storage to v1.43.0 (#162)
  • 47f35af chore(deps): update module github.com/alessio/shellescape to v1.5.0 (#173)
  • aef0ab5 chore(deps): update module github.com/charmbracelet/huh to v0.4.2 (#156)
  • eaa607f chore(deps): update module github.com/charmbracelet/huh to v0.5.1 (#167)
  • 5d45f74 chore(deps): update module github.com/charmbracelet/huh to v0.5.2 (#174)
  • 22cce9a chore(deps): update module github.com/charmbracelet/lipgloss to v0.11.0 (#155)
  • 1b52ba6 chore(deps): update module github.com/charmbracelet/lipgloss to v0.12.1 (#168)
  • 7e14489 chore(deps): update module github.com/gabe565/go-spinners to v1.1.0 (#172)
  • bc5445c chore(deps): update module github.com/rs/zerolog to v1.33.0 (#153)
  • aa94056 chore(deps): update module github.com/schollz/progressbar/v3 to v3.14.3 (#151)
  • 1b12915 chore(deps): update module github.com/schollz/progressbar/v3 to v3.14.4 (#161)
  • 210be63 chore(deps): update module github.com/schollz/progressbar/v3 to v3.14.5 (#175)
  • 4876551 chore(deps): update module github.com/spf13/cobra to v1.8.1 (#164)
  • 715d5e1 chore(deps): update module github.com/spf13/viper to v1.19.0 (#157)
  • 1472a8a chore(flags): Change default spinner to dots14
  • 51cf39f chore(progressbar): writer.Write() -> io.WriteString()
  • 7db0e70 chore(tui): Add tui.ErrStyle helper
  • 138b07f chore(tui): Add color consts
  • 921c46c chore: Rename database interfaces
  • 4b7d5b2 ci(build): Disable Windows armv7 build
  • ae54141 ci(build): Pin GoReleaser to v1
  • 3ec9f6a ci(goreleaser): Update GoReleaser to v2

v1.13.3

20 May 09:07
661fde4
Compare
Choose a tag to compare

Changelog

Fixes

  • b7dd3c2 fix(util): Change NetworkPolicy to use batch.kubernetes.io/job-name

Others

  • 661fde4 chore(gitignore): Ignore .DS_Store
  • 39639e8 ci: Pin runner versions
  • ba9c677 chore(deps): update go to v1.22.3 (#147)
  • 9ebe9db fix(deps): update aws-sdk-go-v2 monorepo (#148)
  • a3b031e fix(deps): update module cloud.google.com/go/storage to v1.41.0 (#150)
  • 5f9f302 fix(deps): update module github.com/fatih/color to v1.17.0 (#149)
  • 22a364c fix(deps): update module k8s.io/utils to v0.0.0-20240502163921-fe8a2dddb1d0 (#145)
  • ddc2f30 chore(deps): update golangci/golangci-lint-action action to v6 (#146)

v1.13.2

01 May 17:22
e2aa7af
Compare
Choose a tag to compare

Changelog

Fixes

  • b171d1a fix(port-forward): Fix password truncation

Others

  • 2a277e6 chore(tui): Simplify conditional rows
  • e2aa7af chore(tui): Skip context row if empty

v1.13.1

01 May 04:40
48abba8
Compare
Choose a tag to compare

Changelog

Fixes

  • e2291f4 fix(cmd): Fix output if wrong subcommand is passed
  • 48abba8 fix(config): Fix log level and format not respecting envs

Others

  • e39857d chore(docker): Remove git
  • 2e00288 chore(docker): Update goreleaser.Dockerfile to match Dockerfile
  • 9d9aa9d chore(dockerfile): Rename Dockerfile.goreleaser to goreleaser.Dockerfile

v1.13.0

01 May 03:36
7c87b08
Compare
Choose a tag to compare

Changelog

Features

  • aadfaaf feat(database): Add pretty names
  • e72d2a0 feat(dump): Add file size to final log
  • 8bac9ea feat(dump, restore): Add final summary table
  • f039fb1 feat(notifier): Add dump summary to Healthchecks logs
  • cfd6eda feat: Prompt when multiple database types are discovered
  • 90d0e91 feat: Redo terminal UI using charmbracelet libraries

Fixes

  • c09c274 fix(cmd): Fix completion hanging if multiple dbs are discovered
  • 1f8b049 fix(deps): update aws-sdk-go-v2 monorepo (#140)
  • 9881b7e fix(deps): update k8s.io/utils digest to 0849a56 (#142)
  • 9445ada fix(deps): update module golang.org/x/sync to v0.7.0 (#138)
  • a581b08 fix(exec): Only pass stderr if not in TTY mode
  • faf67c2 fix(restore): Fix final log duration formatting
  • 8a418fb fix: Correctly capture error exit codes during dump/restore
  • 8c9b0be fix: Ensure exit status is set by recover func

Others

  • 3123926 chore(config): Move config init to config package
  • 2759748 chore(config): Move log init to config package
  • 17ec4d3 chore(config): Optimize logger and add values to explicitly toggle color
  • 7c87b08 chore(deps): Update indirect dependencies
  • e4d580e chore(deps): update go to v1.22.2 (#137)
  • bb23539 chore(deps): update golangci/golangci-lint-action action to v5
  • 67cc4c5 chore(dump): Deprecate --directory (-C) flag in favor of positional arg
  • 6a26b32 chore(goreleaser): brews.folder -> brews.directory
  • 4212473 chore(tui): Make lipgloss cache the current background color early
  • c0097d2 chore: Add formatted log when recovering from a panic
  • d7630de style(database): Collapse smaller func definitions

v1.12.0

01 Apr 06:25
8dbbc8a
Compare
Choose a tag to compare

Changelog

Features

  • 96553eb feat(cmd): Add --opts flag to exec, dump, restore
  • be00a76 feat(command): Add Split type which quotes strings while splitting on space
  • 4e30302 feat(config): Allow a db type to disable job creation
  • 9e7f451 feat(config-lookup): Add nop config lookup
  • c41464b feat(config-lookup): Allow empty ConfigLookups
  • d682794 feat(dump): Append generated filename if the destination is a dir
  • d8f286e feat(kubernetes): Add support for searching envFrom
  • e2da30b feat(meilisearch): Add Meilisearch support
  • 7a603dc feat(redis): Add KeyDB support
  • b67dbaf feat(redis): Add Redis support
  • f75b9de feat(redis): Add support for Sentinel deployments
  • 0fd4637 feat(setup): Disable ingress in job pod network policy
  • 45b7c1b feat(storage): Add support for GCS output
  • c5396cf feat(util): Automatically create network policy
  • 654ec1e refactor(database): Split Database interface for better feature detection

Fixes

  • a814592 chore(command): Add separate Quoter interface to fix Stringers not being quoted
  • 6084691 fix(deps): update aws-sdk-go-v2 monorepo (#129)
  • c88dfef fix(deps): update aws-sdk-go-v2 monorepo (#132)
  • 86859b2 fix(deps): update k8s.io/utils digest to 4693a02 (#133)
  • 1a941af fix(deps): update kubernetes packages to v0.29.3 (#136)
  • c1deea7 fix(deps): update module cloud.google.com/go/storage to v1.40.0 (#134)
  • 93c2915 fix(deps): update module github.com/jedib0t/go-pretty/v6 to v6.5.6 (#135)
  • 07f0ba3 fix(kubernetes): Fix label query interface hardcoded type
  • ac38f89 fix(postgres): Change some hardcoded restore flags to be conditional
  • c5aeca5 fix(postgres): Only add --if-exists if --clean is enabled
  • 4d3aa4b fix(progressbar): Fix initial line not overwriting progress bar
  • dbe91d6 fix(restore): Fix custom dump restores
  • 898691e fix(restore): Fix filename shell completion
  • 109cffd fix(setup): Fix network policy not matching db pod
  • e6e5eb9 fix: Ensure job pod is cleaned up even after a panic
  • 7715547 fix: Pod filtering improvements
  • 4d9c227 perf(log): Migrate logging backend to zerolog

Others

  • 9193816 chore(cmd): Add missing completions
  • ff34829 chore(cmd): Change --no-job flag to --create-job
  • 52377dc chore(cmd): Create job later during setup
  • 5cd90d1 chore(cmd): Move long descriptions to a separate file
  • 982c00b chore(cmd): Remove default list of completion exts when discovery fails
  • 87fab18 chore(command): Check param types earlier during cmd builder creation
  • f10d18b chore(command): Implement fmt.Stringer for command.Raw
  • 35763aa chore(config): Add support for XDG_CONFIG_HOME
  • 3aedc42 chore(config-finder): Cleanup errors
  • ead6b80 chore(config-finder): Rename to ConfigLookup
  • 0b703a3 chore(database): Add interface guards
  • 9f3262e chore(database): Change database types to be defined in one place
  • 0a9405e chore(database): Remove FormatFromFilename and DumpExtension from DatabaseFile interface
  • 8dbbc8a chore(deps): Update transient dependencies
  • ebeb833 chore(deps): update docker/dockerfile docker tag to v1.7 (#131)
  • 66cb8ba chore(deps): update go to v1.22.1 (#130)
  • 2e4fbe6 chore(dump): Create help text example filename inline
  • d42c200 chore(flags): Change []string{} defaults to nil
  • 261b18f chore(kubernetes): Add LabelQueryOr interface
  • 12ec81f chore(kubernetes): Change more label query instances to interface
  • d520d29 chore(postforward): Exclude username/password rows if the value is empty
  • df01b07 chore(postgres): Change from --format=c to --format=custom
  • b830a36 chore(postgres): Remove global vars
  • 9e5a1bc chore(postgres): Tweak bitnami/postgresql-ha primary detection
  • 3d10fb4 chore(redact): Skip redaction if value is empty
  • f9f6df3 chore(restore): Ask for confirmation later during setup
  • 3551b10 chore(restore): Change final progress bar description from finishing to uploaded
  • 5d62422 chore(restore): Simplify restore gzip logic
  • a354050 chore(util): Ensure create-job is enabled before attempting teardown
  • 1825639 refactor: Refactor label queries into filter interface

v1.11.0

04 Mar 20:49
9739d06
Compare
Choose a tag to compare

Changelog

Features

  • 9739d06 feat(notify): Add support for Healthchecks notifications

Others

  • 7d96557 chore(util): Change job func params from cobra.Command to context.Context
  • e138eee chore(util): Move job deletion to cobra finalizer to simplify cmd workflows
  • 4ecd2ca ci(build): Add beta container image