This service provider installs PostgreSQL instances of various architecture types using the AppCat and Crossplane frameworks.
dockergohelmkubectlyqsed(orgsedfor Mac)
Some other requirements (e.g. kind) will be compiled on-the-fly and put in the local cache dir .kind as needed.
make buildto build the binary and docker imagemake generateto (re)generate additional code artifactsmake testrun test suitemake local-installto install the operator in local clustermake install-samplesto run the provider in local cluster and apply a sample instancemake run-operatorto run the code in operator mode against local cluster
See all targets with make help
TL;DR: make local-install install-samples s3-credentials
make local-install -e "local_install_args=--set webhook.enabled=false"
The provider comes with mutating and validation admission webhook server.
However, in this setup this currently only works in the kind cluster when installed as package using make package-install.
To test and troubleshoot the webhooks, do a port-forward and send an admission request sample of the spec:
# port-forward webhook server
kubectl -n crossplane-system port-forward $(kubectl -n crossplane-system get pods -o name -l pkg.crossplane.io/provider=appcat-service-postgresql) 9443:9443
# send an admission request
curl -k -v -H "Content-Type: application/json" --data @package/samples/admission.k8s.io_admissionreview.json https://localhost:9443/validate-postgresql-appcat-vshn-io-v1alpha1-postgresqlstandalone