Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
injector: fix bug where existing volumes in pod spec are not preserved (
Browse files Browse the repository at this point in the history
#2238)

Signed-off-by: addozhang <duwasai@gmail.com>
  • Loading branch information
addozhang authored Jan 15, 2021
1 parent 24c30d8 commit de5bd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/injector/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (wh *mutatingWebhook) createPatch(pod *corev1.Pod, req *v1beta1.AdmissionRe
}

// Create volume for envoy TLS secret
pod.Spec.Volumes = getVolumeSpec(envoyBootstrapConfigName)
pod.Spec.Volumes = append(pod.Spec.Volumes, getVolumeSpec(envoyBootstrapConfigName)...)

// Add the Init Container
initContainer := getInitContainerSpec(constants.InitContainerName, wh.config.InitContainerImage)
Expand Down

0 comments on commit de5bd8d

Please sign in to comment.