Skip to content

Commit

Permalink
Add POD_NAMESPACE env var to search-api deployment (#206)
Browse files Browse the repository at this point in the history
Signed-off-by: zlayne <zlayne@redhat.com>
  • Loading branch information
zlayne committed Jun 17, 2024
1 parent 81ba5ba commit f94df0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/create_apideployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (r *SearchReconciler) APIDeployment(instance *searchv1alpha1.Search) *appsv
newSecretEnvVar("DB_PASS", "database-password", "search-postgres"),
newSecretEnvVar("DB_NAME", "database-name", "search-postgres"),
newEnvVar("DB_HOST", "search-postgres."+instance.Namespace+".svc"),
newEnvVar("POD_NAMESPACE", instance.Namespace),
},
VolumeMounts: []corev1.VolumeMount{
{
Expand Down

0 comments on commit f94df0d

Please sign in to comment.