Skip to content

Commit

Permalink
Use the CR's UID rather than generating a new one for the orchestrator
Browse files Browse the repository at this point in the history
Since we only have one server, it should be static.  Also, prevent the
reconcile from generating a new GUID on every run.
  • Loading branch information
bdunne committed Jul 2, 2020
1 parent 25504b5 commit f68458c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions manageiq-operator/pkg/helpers/miq-components/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
"strconv"
"strings"

"github.com/google/uuid"
)

func OrchestratorServiceAccount(cr *miqv1alpha1.ManageIQ) *corev1.ServiceAccount {
Expand Down Expand Up @@ -192,7 +190,7 @@ func OrchestratorDeployment(cr *miqv1alpha1.ManageIQ, scheme *runtime.Scheme) (*
},
corev1.EnvVar{
Name: "GUID",
Value: uuid.New().String(),
Value: string(cr.GetUID()),
},
corev1.EnvVar{
Name: "DATABASE_REGION",
Expand Down

0 comments on commit f68458c

Please sign in to comment.