added volume as a config in images
All checks were successful
Build and Push Docker Image / Build image (push) Successful in 2m6s
All checks were successful
Build and Push Docker Image / Build image (push) Successful in 2m6s
This commit is contained in:
@@ -680,6 +680,11 @@ func (r *ServerManagerReconciler) ServerPod(s *servermanagerv1alpha1.ServerManag
|
||||
}
|
||||
}
|
||||
|
||||
volumePath := image.Spec.Volume
|
||||
if volumePath == "" {
|
||||
volumePath = image.Spec.WorkingDir
|
||||
}
|
||||
|
||||
pod := &corev1.Pod{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: s.Name,
|
||||
@@ -709,7 +714,7 @@ func (r *ServerManagerReconciler) ServerPod(s *servermanagerv1alpha1.ServerManag
|
||||
Ports: ports,
|
||||
VolumeMounts: []corev1.VolumeMount{{
|
||||
Name: "volume",
|
||||
MountPath: image.Spec.WorkingDir,
|
||||
MountPath: volumePath,
|
||||
}},
|
||||
Stdin: true,
|
||||
TTY: true,
|
||||
|
Reference in New Issue
Block a user