Skip to content

Commit bb1efbb

Browse files
abaysclaude
andcommitted
Set ImagePullPolicy to IfNotPresent on OpenStackClient pod
The OpenStackClient pod is created as a raw corev1.Pod directly, bypassing lib-common workload helpers where SetPullPolicyDefaults is applied. When ImagePullPolicy is not explicitly set and the image tag is "latest" or unset, Kubernetes defaults the policy to Always. Explicitly set PullIfNotPresent to avoid unnecessary image pulls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2b96cb1 commit bb1efbb

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

internal/openstackclient/funcs.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ func ClientPodSpec(
7777
Volumes: volumes,
7878
Containers: []corev1.Container{
7979
{
80-
Name: "openstackclient",
81-
Image: instance.Spec.ContainerImage,
82-
Command: []string{"/bin/sleep"},
83-
Args: []string{"infinity"},
80+
Name: "openstackclient",
81+
Image: instance.Spec.ContainerImage,
82+
ImagePullPolicy: corev1.PullIfNotPresent,
83+
Command: []string{"/bin/sleep"},
84+
Args: []string{"infinity"},
8485
SecurityContext: &corev1.SecurityContext{
8586
RunAsUser: ptr.To[int64](42401),
8687
RunAsGroup: ptr.To[int64](42401),

0 commit comments

Comments
 (0)