Skip to content

Commit

Permalink
Merge pull request #714 from RedHatInsights/set_mep_secret_data
Browse files Browse the repository at this point in the history
Set mep.secretData on envProvide instead of app Provide
  • Loading branch information
maknop authored Oct 21, 2022
2 parents 4936af2 + 171f81b commit 163f302
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ func NewManagedEphemKafka(p *providers.Provider) (providers.ClowderProvider, err
}

func (mep *managedEphemProvider) EnvProvide() error {
sec, err := getSecret(&mep.Provider)
if err != nil {
return err
}
mep.secretData = sec.Data

return mep.configureBrokers()
}

Expand All @@ -61,7 +67,6 @@ func (mep *managedEphemProvider) Provide(app *crd.ClowdApp) error {
if err != nil {
return err
}
mep.secretData = sec.Data

username, password, hostname, tokenURL, adminHostname, cacert := destructureSecret(sec)

Expand Down

0 comments on commit 163f302

Please sign in to comment.