Skip to content

Commit

Permalink
Fixes errors not being handled
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Jan 14, 2025
1 parent cac006b commit 17a5866
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions controllers/cloud.redhat.com/providers/kafka/appinterface.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,15 @@ func (a *appInterface) setKafkaCA(broker *config.BrokerConfig) error {
return err
}

a.HashCache.CreateOrUpdateObject(&kafkaCASecret, true)
a.HashCache.AddClowdObjectToObject(a.Env, &kafkaCASecret)
_, err := a.HashCache.CreateOrUpdateObject(&kafkaCASecret, true)
if err != nil {
return err
}

err = a.HashCache.AddClowdObjectToObject(a.Env, &kafkaCASecret)
if err != nil {
return err
}

broker.Cacert = utils.StringPtr(string(kafkaCASecret.Data["ca.crt"]))
broker.Port = utils.IntPtr(9093)
Expand Down

0 comments on commit 17a5866

Please sign in to comment.