Files
cd/test/e2e/testdata/jsonnet-tla/guestbook-template.jsonnet
zeekay 3d7969cd3d test, examples, docs: repoint e2e container image to our own ghcr.io image
quay.io/argoprojlabs/cd-e2e-container is a third-party image we don't
own. ghcr.io/hanzoai/cd-e2e-container already exists with matching tags
(0.1/0.2/0.3 — reposerver/repository/repository_test.go already uses it),
so repoint the ~100 remaining references across test/e2e, applicationset
examples, controller/util testdata, and docs to it, and fix the actual
publish script (test/e2e/multiarch-container/build.sh) so a future
rebuild lands in the right place instead of drifting back to quay.io.
2026-09-05 14:58:46 -07:00

66 lines
1.5 KiB
Jsonnet

function (
containerPort=80,
image="ghcr.io/hanzoai/cd-e2e-container:0.2",
name="jsonnet-guestbook-ui",
replicas=1,
servicePort=80,
type="LoadBalancer"
)
[
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": name
},
"spec": {
"ports": [
{
"port": servicePort,
"targetPort": containerPort
}
],
"selector": {
"app": name
},
"type": type
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": name
},
"spec": {
"replicas": replicas,
"revisionHistoryLimit": 3,
"selector": {
"matchLabels": {
"app": name
},
},
"template": {
"metadata": {
"labels": {
"app": name
}
},
"spec": {
"containers": [
{
"image": image,
"name": name,
"ports": [
{
"containerPort": containerPort
}
]
}
]
}
}
}
}
]