From 232b5fcd30e8216748073602b929d33bb6744935 Mon Sep 17 00:00:00 2001 From: Fernando Crespo Gravalos Date: Mon, 4 Apr 2022 12:31:52 +0200 Subject: [PATCH] fix nil pointer dereference bug in controller's regular kubernetes client --- config/default/manager_image_patch.yaml | 2 +- deploy/version/version.properties | 2 +- main.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index c3b8650..21e6653 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,5 @@ spec: spec: containers: # Change the value of image field below to your controller image URL - - image: registry.hub.docker.com/tuentitech/secrets-manager:v2.0.0 + - image: registry.hub.docker.com/tuentitech/secrets-manager:v2.0.1 name: manager diff --git a/deploy/version/version.properties b/deploy/version/version.properties index f89a8b5..24bc48f 100644 --- a/deploy/version/version.properties +++ b/deploy/version/version.properties @@ -1 +1 @@ -version=v2.0.0 +version=v2.0.1 diff --git a/main.go b/main.go index f0710e6..8045142 100644 --- a/main.go +++ b/main.go @@ -177,6 +177,7 @@ func main() { } if err = (&controllers.SecretDefinitionReconciler{ + Client: mgr.GetClient(), Backend: *backendClient, APIReader: mgr.GetAPIReader(), Log: ctrl.Log.WithName("controllers").WithName("SecretDefinition"),