Install helm and forgejo helm chart for k8s tests #16
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference: forgejo/lxc-helpers#16
Loading…
Reference in a new issue
No description provided.
Delete branch "Xinayder/forgejo-lxc-helpers:k3s"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request improves the existing k8s tests by installing Helm and the Forgejo Helm chart, then checks if it's running by querying the API endpoint for the instance version.
I think there's room for improvement on the port-forward part, maybe it's possible to setup a fixed host IP or have it automatic so we don't need to send the port-forward to the background.
@ -190,0 +204,4 @@
curl -X 'GET' \
-H 'Accept: application/json' \
'http://localhost:3000/api/v1/version'
I suggest you
echo SUCCESS
here and it will never run if the above fails (because of -e)@ -190,3 +207,4 @@
EOF
lxc_container_run_script $name /usr/local/bin/script.sh | tee $TMP_DIR/script.output
grep --quiet 'Starting k3s' $TMP_DIR/script.output
and you
grep --quiet 'SUCCESS' $TMP_DIR/script.output
here which will be straightforward to relate to the above echo, IMHO.Ready to merge when you are.
WIP: Install helm and forgejo helm chart for k8s teststo Install helm and forgejo helm chart for k8s tests4ecedbdd09
toa279ed92b0