From 2881c6125fb7316b0c430f8365cd2f02f0f89f23 Mon Sep 17 00:00:00 2001 From: anishakj <43978302+anishakj@users.noreply.github.com> Date: Thu, 17 Aug 2023 09:46:06 +0530 Subject: [PATCH] Issue 668: Fix for system tests failure (#669) Signed-off-by: anisha.kj --- api/v1beta1/pravegacluster_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1beta1/pravegacluster_webhook.go b/api/v1beta1/pravegacluster_webhook.go index e9a621a5e..e60f2fef6 100644 --- a/api/v1beta1/pravegacluster_webhook.go +++ b/api/v1beta1/pravegacluster_webhook.go @@ -385,7 +385,7 @@ func (p *PravegaCluster) validateConfigMap() error { // ValidateAuthenticationSettings checks for correct options passed to pravega // when authentication is enabled/disabled. func (p *PravegaCluster) ValidateAuthenticationSettings() error { - if p.Spec.Authentication.Enabled == true { + if p.Spec.Authentication != nil && p.Spec.Authentication.Enabled == true { newkey, _ := p.Spec.Pravega.Options["autoScale.controller.connect.security.auth.enable"] oldkey, _ := p.Spec.Pravega.Options["autoScale.authEnabled"]