Skip to content

Commit

Permalink
Default sidecar image pull policy to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Feb 7, 2023
1 parent 0ebf247 commit 5274d74
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sidecar/pkg/webhook/injector.go
Expand Up @@ -92,10 +92,7 @@ func (i *SidecarInjector) Handle(ctx context.Context, request admission.Request)
}

// Get the pull policy for the sidecar image
imagePullPolicy, ok := pod.Annotations[sidecarImagePullPolicyAnnotation]
if !ok {
imagePullPolicy = string(corev1.PullAlways)
}
imagePullPolicy := pod.Annotations[sidecarImagePullPolicyAnnotation]

var args []string
logLevel, ok := pod.Annotations[sidecarLogLevelAnnotation]
Expand Down

0 comments on commit 5274d74

Please sign in to comment.