Skip to content

Commit ea34ff1

Browse files
test: avoid dockerhub flake in agent ignore test (#3742)
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
1 parent 6b82bf8 commit ea34ff1

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: httpd-deployment
4+
name: alpine-deployment
55
spec:
66
selector:
77
matchLabels:
8-
app: httpd
8+
app: alpine
99
replicas: 2 # tells deployment to run 2 pods matching the template
1010
template:
1111
metadata:
1212
labels:
13-
app: httpd
13+
app: alpine
1414
spec:
1515
containers:
16-
- name: httpd
16+
- name: alpine
1717
# This is explicitly a different tag than examples/manifests to ensure it has to pull the image from outside the cluster
18-
image: "httpd:alpine"
18+
image: "ghcr.io/zarf-dev/images/alpine:agent-ignore-test"
19+
# keep container running
20+
command: ["/bin/sh", "-c"]
21+
args: ["tail -f /dev/null"]
1922
ports:
2023
- containerPort: 80
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
kind: Namespace
33
metadata:
4-
name: httpd-ignored
4+
name: alpine-ignored
55
labels:
66
zarf.dev/agent: ignore

src/test/packages/26-agent-ignore/zarf.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ metadata:
44
description: Simple test to check that Zarf respects ignored namespaces.
55

66
components:
7-
- name: httpd-deployment
7+
- name: alpine-deployment
88
required: true
99
manifests:
10-
- name: agent-ignore-httpd
11-
namespace: httpd-ignored
10+
- name: agent-ignore-alpine
11+
namespace: alpine-ignored
1212
files:
1313
- manifests/deployment.yaml
1414
- manifests/namespace.yaml
@@ -18,6 +18,6 @@ components:
1818
- wait:
1919
cluster:
2020
kind: deployment
21-
name: httpd-deployment
22-
namespace: httpd-ignored
21+
name: alpine-deployment
22+
namespace: alpine-ignored
2323
condition: "{.status.readyReplicas}=2"

0 commit comments

Comments
 (0)