Skip to content

Commit f85c2d3

Browse files
committed
Add job to validate connection to no auth registry
Signed-off-by: Praveen Rewar <[email protected]>
1 parent 883da5b commit f85c2d3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/e2e/assets/registry/no-auth-registry.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ kind: Deployment
2121
metadata:
2222
name: simple-registry
2323
namespace: registry
24+
annotations:
25+
kapp.k14s.io/change-group: registry
2426
spec:
2527
replicas: 1
2628
selector:
@@ -60,3 +62,29 @@ spec:
6062
name: registry-contents
6163
- name: registry-sync
6264
emptyDir: { }
65+
66+
# TODO should we make vendir's http retry within App CR, to avoid
67+
# transient failure when Service=>Deployment networking is not ready?
68+
---
69+
apiVersion: batch/v1
70+
kind: Job
71+
metadata:
72+
name: check-nginx-conn
73+
annotations:
74+
kapp.k14s.io/update-strategy: always-replace
75+
kapp.k14s.io/change-rule: upsert after upserting registry
76+
spec:
77+
backoffLimit: 5
78+
template:
79+
metadata:
80+
name: check-nginx-conn
81+
spec:
82+
containers:
83+
- name: check
84+
image: busybox
85+
command:
86+
- /bin/sh
87+
- "-c"
88+
- |
89+
wget --tries=10 --no-check-certificate http://registry-svc.registry.svc.cluster.local:5050/v2/
90+
restartPolicy: Never

0 commit comments

Comments
 (0)