This document provides guidelines for testing the dwpk Helm chart. Follow these instructions to ensure the chart works as expected before deployment to production.
# Run helm lint to check for any syntax issues
helm lint charts/dwpk# Generate and verify the template output
helm template dwpk charts/dwpk --debug# Install the chart in a test namespace
kubectl create namespace dwpk-test
helm install dwpk-test charts/dwpk --namespace dwpk-test- Check all pods are running:
kubectl get pods -n dwpk-test- Verify services are exposed:
kubectl get svc -n dwpk-test- Check UI accessibility:
kubectl port-forward svc/dwpk-test-ui 8080:8080 -n dwpk-test- Validate component health:
- manager (controller and webhooks) is ready
- gateway accepts SSH connections
- ui is reachable and can list images
-
UI Login
- Verify local auth or configured OAuth2 provider works
-
Workspace Operations
- Create a
WorkspaceImage - Create a
UserSpaceand aWorkspace - Connect via
ssh <workspace>@<host>
- Create a
-
Integration Testing
- Verify webhook admission (defaulting/validation/conversion)
- Check cert-manager issued webhook certificate
# Test upgrade from previous version
helm upgrade dwpk-test charts/dwpk --namespace dwpk-test# Remove test deployment
helm uninstall dwpk-test --namespace dwpk-test
kubectl delete namespace dwpk-testFor CI/CD pipelines, you can use the following tools:
Example CI test command:
ct lint-and-install --config ct.yaml