Skip to content

Commit 3663c79

Browse files
sallyomclaude
andcommitted
Add imagePullPolicy: Always to all deployments and jobs
This commit ensures all container images are pulled fresh on every deployment, which is essential for testing latest builds and CI/CD workflows. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e9dccf0 commit 3663c79

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

components/manifests/backend-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ spec:
1818
containers:
1919
- name: backend-api
2020
image: quay.io/ambient_code/vteam_backend:latest
21+
imagePullPolicy: Always
2122
ports:
2223
- containerPort: 8080
2324
name: http

components/manifests/frontend-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
containers:
1818
- name: frontend
1919
image: quay.io/ambient_code/vteam_frontend:latest
20+
imagePullPolicy: Always
2021
ports:
2122
- containerPort: 3000
2223
name: http

components/manifests/operator-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ spec:
1818
containers:
1919
- name: agentic-operator
2020
image: quay.io/ambient_code/vteam_operator:latest
21+
imagePullPolicy: Always
2122
env:
2223
- name: NAMESPACE
2324
valueFrom:
@@ -27,6 +28,8 @@ spec:
2728
value: "http://backend-service:8080/api"
2829
- name: AMBIENT_CODE_RUNNER_IMAGE
2930
value: "quay.io/ambient_code/vteam_claude_runner:latest"
31+
- name: IMAGE_PULL_POLICY
32+
value: "Always"
3033
resources:
3134
requests:
3235
cpu: 50m

components/operator/main.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var (
2727
dynamicClient dynamic.Interface
2828
namespace string
2929
ambientCodeRunnerImage string
30+
imagePullPolicy corev1.PullPolicy
3031
)
3132

3233
func main() {
@@ -47,6 +48,13 @@ func main() {
4748
ambientCodeRunnerImage = "quay.io/ambient_code/vteam_claude_runner:latest"
4849
}
4950

51+
// Get image pull policy from environment or use default
52+
imagePullPolicyStr := os.Getenv("IMAGE_PULL_POLICY")
53+
if imagePullPolicyStr == "" {
54+
imagePullPolicyStr = "Always"
55+
}
56+
imagePullPolicy = corev1.PullPolicy(imagePullPolicyStr)
57+
5058
log.Printf("Agentic Session Operator starting in namespace: %s", namespace)
5159
log.Printf("Using ambient-code runner image: %s", ambientCodeRunnerImage)
5260

@@ -260,8 +268,9 @@ func handleAgenticSessionEvent(obj *unstructured.Unstructured) error {
260268

261269
Containers: []corev1.Container{
262270
{
263-
Name: "ambient-code-runner",
264-
Image: ambientCodeRunnerImage,
271+
Name: "ambient-code-runner",
272+
Image: ambientCodeRunnerImage,
273+
ImagePullPolicy: imagePullPolicy,
265274
// 🔒 Container-level security (SCC-compatible, no privileged capabilities)
266275
SecurityContext: &corev1.SecurityContext{
267276
AllowPrivilegeEscalation: boolPtr(false),

0 commit comments

Comments
 (0)