Skip to content

Commit

Permalink
Add ServiceAccountName for Opensearch dashboard Deployment
Browse files Browse the repository at this point in the history
Signed-off-by: f.bouzghaia <[email protected]>
  • Loading branch information
f.bouzghaia committed Aug 4, 2023
1 parent 7eff6ea commit 09fb4e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions opensearch-operator/pkg/builders/dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,12 @@ func NewDashboardsDeploymentForCR(cr *opsterv1.OpenSearchCluster, volumes []core
SecurityContext: securityContext,
},
},
ImagePullSecrets: image.ImagePullSecrets,
NodeSelector: cr.Spec.Dashboards.NodeSelector,
Tolerations: cr.Spec.Dashboards.Tolerations,
Affinity: cr.Spec.Dashboards.Affinity,
SecurityContext: podSecurityContext,
ImagePullSecrets: image.ImagePullSecrets,
NodeSelector: cr.Spec.Dashboards.NodeSelector,
Tolerations: cr.Spec.Dashboards.Tolerations,
Affinity: cr.Spec.Dashboards.Affinity,
SecurityContext: podSecurityContext,
ServiceAccountName: cr.Spec.General.ServiceAccount,
},
},
},
Expand Down

0 comments on commit 09fb4e6

Please sign in to comment.