Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit c7250cc

Browse files
Aenima4six2John-Paul Dienst
and
John-Paul Dienst
authored
fix: crash on watcher events introduced with multi-tenancy (#708)
Co-authored-by: John-Paul Dienst <[email protected]>
1 parent 14900e5 commit c7250cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ e2e/**/.kubeconfig
6262

6363
# IDE
6464
.idea/
65+
.vscode/

lib/daemon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Daemon {
6565
async start () {
6666
for await (const event of this._externalSecretEvents) {
6767
// Check if the externalSecret should be managed by this instance.
68-
if (event.object.spec) {
68+
if (event.object && event.object.spec) {
6969
const externalSecretMetadata = event.object.metadata
7070
const externalSecretController = event.object.spec.controllerId
7171
if ((this._instanceId || externalSecretController) && this._instanceId !== externalSecretController) {

0 commit comments

Comments
 (0)