Skip to content

Commit

Permalink
mariadb service - use EnsureService to handle Service Resource update
Browse files Browse the repository at this point in the history
This change is a follow-up on
https://softwarefactory-project.io/r/c/software-factory/sf-operator/+/30062
to ensure the mariadb Service is updated.

The previous change missed to handle the Service update.

Change-Id: Iec65e126d9652a2130f6edb62b7824cc1a851dec
  • Loading branch information
morucci committed Nov 22, 2023
1 parent fe88eb6 commit 582f5f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/mariadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func (r *SFController) DeployMariadb() bool {
r.GetOrCreate(&sts)

servicePorts := []int32{mariadbPort}
srv := base.MkServicePod("mariadb", r.ns, "mariadb-0", servicePorts, mariaDBPortName)
r.GetOrCreate(&srv)
srv := base.MkServicePod(mariadbIdent, r.ns, "mariadb-0", servicePorts, mariaDBPortName)
r.EnsureService(&srv)

var zuulDBSecret apiv1.Secret

Expand Down

0 comments on commit 582f5f1

Please sign in to comment.