Skip to content

Commit

Permalink
Don't add license volume to MC pod
Browse files Browse the repository at this point in the history
  • Loading branch information
kashok-splunk committed Oct 16, 2020
1 parent 8a96755 commit c43243e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/splunk/enterprise/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ func updateSplunkPodTemplateWithConfig(client splcommon.ControllerClient, podTem
}
}

// Add custom volumes to splunk containers
if spec.Volumes != nil {
// Add custom volumes to splunk containers other than MC(where CR spec volumes are not needed)
if spec.Volumes != nil && instanceType != SplunkMonitoringConsole {
podTemplateSpec.Spec.Volumes = append(podTemplateSpec.Spec.Volumes, spec.Volumes...)
for idx := range podTemplateSpec.Spec.Containers {
for v := range spec.Volumes {
Expand Down

0 comments on commit c43243e

Please sign in to comment.