The following scripts are available
lintlints the source code using eslintlint:fixautomatically fixes any lint errors that can be fixed automaticallytestuses jest to run test suitestest:e2eruns e2e test suite, this requires an active helm:deploybuildcompiles the typescript into js and places it in thedistfolderbuild:imagebuilds the container imagebuild:docsbuilds the api docsminikube:startcreate a minikube k8s clusterminikube:stopstop minikube but do not deleteminikube:deletedelete the minikube clusterhelm:addReposadds helm reposhelm:deployCertManagerdeploy cert-manager for TLShelm:deploydeploy the app to k8s using helmhelm:templateprint the k8s yaml that would be applied to k8s when usinghelm:deployhelm:uninstallremove the app from k8shelm:uninstallCertManagerremove cert-manager from the k8s cluster
If you don't already have cert manager installed you will need to run:
helm repo add jetstack https://charts.jetstack.io && helm repo update && \
helm upgrade --install --namespace cert-manager --create-namespace \
cert-manager jetstack/cert-manager --set installCRDs=true --debug --waitAdd the helm repos helm repo add psa https://bryopsida.github.io/psa-restricted-patcher fetch updates helm repo update.
Verify it worked helm search repo psa and you should see something like.
NAME CHART VERSION APP VERSION DESCRIPTION
psa/psa-restricted-patcher... 0.1.0 0.1.0 ...
Deploy the app helm upgrade --install starter psa/psa-restricted-patcher
Verify it worked kubectl run testpod --image=busybox, this will be changed, fetch it's yaml kubectl get testpod -o yaml you will see its securityContext's have been enhanced.