Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.05 KB

development.md

File metadata and controls

73 lines (52 loc) · 1.05 KB

Development

minikube

To deploy and test the chart, you can use minikube.

Setup

kubectl create ns arma3
STEAM_USER=bob
STEAM_PASSWORD=abc
TEST_VALUES=rwo-rwo.yaml
RELEASE=arma3-${TEST_VALUES/".yaml"/}

helm upgrade --install "$RELEASE" . -n arma3 \
    -f test-values/"$TEST_VALUES" \
    --set credentials.steamUser="$STEAM_USER" \
    --set credentials.steamPassword="$STEAM_PASSWORD"
watch kubectl get pods -n arma3

Teardown

Uninstall helm release:

helm uninstall -n arma3 "$RELEASE"

Cleanup any unused volumes belonging to this release (copy and paste the output command when satisfied):

echo kubectl delete pv $(
    kubectl get pv -o json \
        | jq -r --arg release "$RELEASE" \
        '.items[] | select( .spec.claimRef.name | contains($release) ) | .metadata.name'
    )

Helm

Run linting:

make validate

Test against snapshots:

make test

Update snapshots:

make snapshot

Generate docs:

make release