Update 4 files

- /home/.chezmoitemplates/secrets/DIGITALOCEAN_ACCESS_TOKEN
- /home/.chezmoitemplates/files/Cloudflare_CA.crt
- /home/.chezmoitemplates/files/Cloudflare_CA.pem
- /home/.chezmoiscripts/universal/run_onchange_after_81-k8s-digitalocean.sh.tmpl
This commit is contained in:
Brian Zalewski 2023-04-16 23:31:18 +00:00
parent fb5ed79c69
commit 4b5750acb2
4 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{{- if (and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "DIGITALOCEAN_ACCESS_TOKEN")) (env "DIGITALOCEAN_ACCESS_TOKEN")) -}}
#!/usr/bin/env bash
# @file DigitalOcean Kubernetes
# @brief Connects to DigitalOcean Kubernetes cluster
# @description
# This script runs when `DIGITALOCEAN_ACCESS_TOKEN` is defined as an environment variable or as an encrypted key (see
# [Secrets documentation](https://install.doctor/docs/customization/secrets#encrypted-secrets)). If the check passes,
# then the script ensures the DigitalOcean CLI is installed (i.e. `doctl`). Then, it uses `doctl` to connect to the Kubernetes
# cluster defined by the `DIGITALOCEAN_K8S_ID` secret.
# This script detects the presence of various executables with Bash completions available and then
# conditionally adds the completions to the Bash completions folder.
### Ensure DigitalOcean CLI is instaled
if ! command -v doctl > /dev/null; then
logg info '`doctl` is missing - installing via Homebrew'
brew install doctl
fi
doctl kubernetes cluster kubeconfig save b7fc4e37-ffe7-4ea1-887a-0e19ee077f32
{{ end -}}

View file

@ -0,0 +1,22 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBZSW5pM0hBakJvZnMrSlpx
QXNoY1JpTWpwN3crVWhLc2JPbWhYNG8wZ1NZCm9vcW1JTzBwN0JQQUprMFNnS3Y3
eUlOUjdHNk5EMi94cGVJREVsaDlhdFEKLS0tIGVld1lHZGNZcUlHRGFMeUJCbngz
Y3dRNWpy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