5252 kpt fn eval \
5353 --image ghcr.io/kptdev/krm-functions-catalog/set-annotations:v0.1.4 \
5454 --match-kind Service \
55- --match-name gitea \
55+ --match-name gitea-lb \
5656 --match-namespace gitea \
5757 -- " metallb.universe.tf/loadBalancerIPs=${gitea_ip} "
58-
59- cp -f " ${git_root} /deployments/local/kind_porch_test_cluster.yaml" cluster-config.yaml
60-
61- # Append KRM metadata to the cluster-config
62- cat >> cluster-config.yaml << EOF
63- metadata:
64- name: not-used
65- annotations:
66- config.kubernetes.io/local-config: "true"
67- EOF
68-
69- kpt fn eval \
70- --image ghcr.io/kptdev/krm-functions-catalog/apply-replacements:v0.1.1 \
71- --fn-config " ${git_root} /deployments/local/replace-gitea-service-ports.yaml"
7258fi
7359
7460kpt fn render
@@ -80,10 +66,10 @@ kubectl wait pod --all --for=condition=Ready --namespace=gitea --timeout=90s
8066# ##############################################################
8167
8268h1 Create git repos in gitea
83- curl -v -k -H " content-type: application/json" " http://nephio:secret@localhost :3000/api/v1/user/repos" --data " {\" name\" :\" $git_repo_name \" }"
69+ curl -v -k -H " content-type: application/json" " http://nephio:secret@${gitea_ip} :3000/api/v1/user/repos" --data " {\" name\" :\" $git_repo_name \" }"
8470TMP_DIR=$( mktemp -d)
8571cd " $TMP_DIR "
86- git clone " http://nephio:secret@localhost :3000/nephio/$git_repo_name .git"
72+ git clone " http://nephio:secret@${gitea_ip} :3000/nephio/$git_repo_name .git"
8773cd " $git_repo_name "
8874if ! git rev-parse -q --verify refs/remotes/origin/main > /dev/null; then
8975 echo " Add main branch to git repo:"
@@ -100,15 +86,15 @@ cd "${git_root}"
10086rm -fr " $TMP_DIR "
10187
10288test_git_repo_name=" test-blueprints"
103- curl -v -k -H " content-type: application/json" " http://nephio:secret@localhost :3000/api/v1/user/repos" --data " {\" name\" :\" $test_git_repo_name \" }"
89+ curl -v -k -H " content-type: application/json" " http://nephio:secret@${gitea_ip} :3000/api/v1/user/repos" --data " {\" name\" :\" $test_git_repo_name \" }"
10490TMP_DIR=$( mktemp -d)
10591cd " $TMP_DIR "
10692git clone " ${git_root} /test/pkgs/test-pkgs/test-blueprints.bundle" -b main
10793cd " $test_git_repo_name "
10894
10995git gc
11096git remote rename origin upstream
111- git remote add origin " http://nephio:secret@localhost :3000/nephio/$test_git_repo_name "
97+ git remote add origin " http://nephio:secret@${gitea_ip} :3000/nephio/$test_git_repo_name "
11298git push -u origin --all
11399git push -u origin --tags
114100
0 commit comments