Skip to content

fix(operator): avoid nil dereference in getCurrentNamespace - #574

Open
krangerich wants to merge 1 commit into
dragonflydb:mainfrom
krangerich:fix/current-namespace-nil-deref
Open

fix(operator): avoid nil dereference in getCurrentNamespace#574
krangerich wants to merge 1 commit into
dragonflydb:mainfrom
krangerich:fix/current-namespace-nil-deref

Conversation

@krangerich

Copy link
Copy Markdown

In-cluster there is no kubeconfig, so Load() returns an empty config, leading to a nil dereference. Only reachable with --watch-current-namespace

Fixes #538

In-cluster there is no kubeconfig, so Load() returns an empty config,
leading to a nil dereference. Only reachable with --watch-current-namespace

Fixes dragonflydb#538

Signed-off-by: Michael J. <7890659+krangerich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segfault when using getCurrentNamespace

1 participant