Skip to content

Commit

Permalink
fix: add pulsar config volume mount in scheduler (#327)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiangtian Li <jiangtianli@hotmail.com>
  • Loading branch information
JiangtianLi committed Sep 25, 2024
1 parent c05bd2f commit 2f4236e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/controller/install/scheduler_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,14 @@ func createSchedulerDeployment(scheduler *installv1alpha1.Scheduler, serviceAcco
var runAsGroup int64 = 2000
allowPrivilegeEscalation := false
env := createEnv(scheduler.Spec.Environment)
pulsarConfig, err := ExtractPulsarConfig(scheduler.Spec.ApplicationConfig)
if err != nil {
return nil, err
}
volumes := createVolumes(scheduler.Name, scheduler.Spec.AdditionalVolumes)
volumes = append(volumes, createPulsarVolumes(pulsarConfig)...)
volumeMounts := createVolumeMounts(GetConfigFilename(scheduler.Name), scheduler.Spec.AdditionalVolumeMounts)
volumeMounts = append(volumeMounts, createPulsarVolumeMounts(pulsarConfig)...)

deployment := appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{Name: scheduler.Name, Namespace: scheduler.Namespace, Labels: AllLabels(scheduler.Name, scheduler.Labels)},
Expand Down

0 comments on commit 2f4236e

Please sign in to comment.