tuenti / secrets-manager

A daemon to sync Vault secrets to Kubernetes secrets
Apache License 2.0
171 stars 26 forks source link

fix nil pointer dereference bug in controller's regular kubernetes client #86

Closed fcgravalos closed 2 years ago

fcgravalos commented 2 years ago

fixes #85

Status

READY

Migrations

NO

Description

fixes #85: As per the last release, the secretdefinition controller would only have apiReader clients, therefore using regular kubeclient (which uses controller's cache) was nil:

https://github.com/tuenti/secrets-manager/commit/933629df370702c43739adfd6777e0220655466d#diff-2873f79a86c0d8b3335cd7731b0ecf7dd4301eb19a82ef7a1cba7589b5252261L146

List of fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Tested in a real k8s environment. Unit tests seem to pass.

Checklist: