Create An AthenaClient
Create a database-backed AthenaClient resource and the secret it depends on.
Use this flow when an AthenaClient was not already created for you.
One AthenaClient maps to one database connection.
1) Create A Secret With The Database URI
The sample secret lives at:
config/samples/athena_v1alpha1_client_db_uri_secret.yaml
Option A: Edit the sample YAML
Replace REPLACE_ME_BASE64 with the base64-encoded database URI, then apply it:
kubectl apply -f config/samples/athena_v1alpha1_client_db_uri_secret.yamlOption B: Create it with kubectl
kubectl create secret generic example-db-uri -n default --from-literal=uri='postgresql://user:pass@host:5432/db'2) Apply AthenaClient
kubectl apply -f config/samples/athena_v1alpha1_athenaclient.yaml3) Verify
kubectl get athenaclient -n default
kubectl get athenaclient example -n default -o yamlIf the operator can reach Athena Gateway and Athena can reach the backing database, the resource should become Ready.