Latest
This commit is contained in:
parent
fc3ae3b5fc
commit
33c50c335e
4 changed files with 49 additions and 27 deletions
|
@ -602,12 +602,13 @@ softwareGroups:
|
||||||
- cmctl
|
- cmctl
|
||||||
- kdash
|
- kdash
|
||||||
- kn
|
- kn
|
||||||
|
# TODO: Check if some of these are installed by Krew and remove if they are
|
||||||
- kubectx
|
- kubectx
|
||||||
- kubekey
|
- kubekey
|
||||||
- kubenav
|
- kubenav
|
||||||
- kube-shell
|
- kube-shell
|
||||||
- kubernetes-cli
|
- kubernetes-cli
|
||||||
- kubernetes-helm
|
- helm
|
||||||
- kubernetes-kompose
|
- kubernetes-kompose
|
||||||
- kubeval
|
- kubeval
|
||||||
- k9s
|
- k9s
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{{ includeTemplate "universal/profile-before" }}
|
{{ includeTemplate "universal/profile-before" }}
|
||||||
{{ includeTemplate "universal/logg-before" }}
|
{{ includeTemplate "universal/logg-before" }}
|
||||||
|
|
||||||
KEYID="{{ .user.gpg.id }}"
|
export KEYID="{{ .user.gpg.id }}"
|
||||||
|
|
||||||
if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
|
if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
|
||||||
if [ ! -d "$HOME/.gnupg" ]; then
|
if [ ! -d "$HOME/.gnupg" ]; then
|
||||||
|
@ -27,25 +27,27 @@ if [ -n "$KEYID" ] && command -v gpg > /dev/null; then
|
||||||
fi
|
fi
|
||||||
KEYID_TRIMMED="$(echo "$KEYID" | sed 's/^0x//')"
|
KEYID_TRIMMED="$(echo "$KEYID" | sed 's/^0x//')"
|
||||||
if ! gpg --list-secret-keys --keyid-format=long | grep "$KEYID_TRIMMED" > /dev/null; then
|
if ! gpg --list-secret-keys --keyid-format=long | grep "$KEYID_TRIMMED" > /dev/null; then
|
||||||
|
LOCAL_KEYID="${KEYID^^}"
|
||||||
|
LOCAL_KEYID="$(echo "$LOCAL_KEYID" | sed 's/^0X/0x/')"
|
||||||
|
logg info 'Killing dirmngr instance and reloading daemon with standard-resolver'
|
||||||
|
sudo pkill dirmngr && dirmngr --daemon --standard-resolver || logg error 'Failed to launch dirmngr with standard-resolver'
|
||||||
|
if [ -f "$HOME/.gnupg/public/$KEYID.sig" ]; then
|
||||||
|
gpg --import "$HOME/.gnupg/public/$KEYID.sig"
|
||||||
|
else
|
||||||
logg info 'Attempting to download the specified public GPG key (`{{ .user.gpg.id }}`) from public keyservers'
|
logg info 'Attempting to download the specified public GPG key (`{{ .user.gpg.id }}`) from public keyservers'
|
||||||
sudo pkill dirmngr
|
|
||||||
dirmngr --daemon --standard-resolver
|
|
||||||
gpg --keyserver https://pgp.mit.edu --recv "$KEYID" || EXIT_CODE=$?
|
gpg --keyserver https://pgp.mit.edu --recv "$KEYID" || EXIT_CODE=$?
|
||||||
if [ -n "$EXIT_CODE" ]; then
|
if [ -n "$EXIT_CODE" ]; then
|
||||||
logg info 'Non-zero exit code received when downloading public GPG key'
|
logg info 'Non-zero exit code received when downloading public GPG key'
|
||||||
gpg --keyserver hkps://pgp.mit.edu --recv "$KEYID" || EXIT_CODE=$?
|
gpg --keyserver hkps://pgp.mit.edu --recv "$KEYID" || EXIT_CODE=$?
|
||||||
if [ -n "$EXIT_CODE" ]; then
|
if [ -n "$EXIT_CODE" ]; then
|
||||||
logg info 'Non-zero exit code received when trying to retrieve public user GPG key on hkps://pgp.mit.edu'
|
logg info 'Non-zero exit code received when trying to retrieve public user GPG key on hkps://pgp.mit.edu'
|
||||||
gpgconf --kill dirmngr
|
|
||||||
KEYID="${KEYID^^}"
|
|
||||||
KEYID="$(echo "$KEYID" | sed 's/^0X/0x/')"
|
|
||||||
if [ -f "$HOME/.gnupg/public/$KEYID.sig" ]; then
|
|
||||||
gpg --import "$HOME/.gnupg/public/$KEYID.sig"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
logg success 'Successfully imported configured public user GPG key'
|
logg success 'Successfully imported configured public user GPG key'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
logg info 'Stopping dirmngr'
|
||||||
|
gpgconf --kill dirmngr && logg info 'Stopped dirmngr' || info warn 'Failed to stop dirmngr'
|
||||||
else
|
else
|
||||||
logg info 'Key is already in keyring'
|
logg info 'Key is already in keyring'
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -235,6 +235,7 @@ export KODI_DATA="$XDG_DATA_HOME/kodi"
|
||||||
|
|
||||||
### Krew
|
### Krew
|
||||||
export KREW_ROOT="$XDG_DATA_HOME/krew"
|
export KREW_ROOT="$XDG_DATA_HOME/krew"
|
||||||
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
||||||
|
|
||||||
### Kube
|
### Kube
|
||||||
export KUBECONFIG="$XDG_CONFIG_HOME/kube/config"
|
export KUBECONFIG="$XDG_CONFIG_HOME/kube/config"
|
||||||
|
|
38
software.yml
38
software.yml
|
@ -4630,6 +4630,11 @@ softwarePackages:
|
||||||
dnf: kodi
|
dnf: kodi
|
||||||
flatpak: tv.kodi.Kodi
|
flatpak: tv.kodi.Kodi
|
||||||
pacman: kodi
|
pacman: kodi
|
||||||
|
krew:
|
||||||
|
_bin: kubectl-krew
|
||||||
|
_github: https://github.com/kubernetes-sigs/krew
|
||||||
|
_name: KubeCTL
|
||||||
|
brew: krew
|
||||||
kubectx:
|
kubectx:
|
||||||
_bin: kubectx
|
_bin: kubectx
|
||||||
_desc: Faster way to switch between clusters and namespaces in kubectl
|
_desc: Faster way to switch between clusters and namespaces in kubectl
|
||||||
|
@ -4642,9 +4647,6 @@ softwarePackages:
|
||||||
choco:
|
choco:
|
||||||
- kubens
|
- kubens
|
||||||
- kubectx
|
- kubectx
|
||||||
krew:
|
|
||||||
- ctx
|
|
||||||
- ns
|
|
||||||
pacman: kubectx
|
pacman: kubectx
|
||||||
port: kubectx
|
port: kubectx
|
||||||
snap: kubectx
|
snap: kubectx
|
||||||
|
@ -4670,7 +4672,7 @@ softwarePackages:
|
||||||
brew: kubectl
|
brew: kubectl
|
||||||
choco: kubernetes-cli
|
choco: kubernetes-cli
|
||||||
snap: kubectl
|
snap: kubectl
|
||||||
kubernetes-helm:
|
helm:
|
||||||
_bin: helm
|
_bin: helm
|
||||||
_desc: The Kubernetes Package Manager. Helm is the best way to find, share, and use software built for Kubernetes.
|
_desc: The Kubernetes Package Manager. Helm is the best way to find, share, and use software built for Kubernetes.
|
||||||
_docs: https://helm.sh/docs
|
_docs: https://helm.sh/docs
|
||||||
|
@ -9972,7 +9974,7 @@ softwarePlugins:
|
||||||
plugins:
|
plugins:
|
||||||
- https://github.com/BalliAsghar/mailsy-alfred/releases/download/2.0.0/Mailsy.alfredworkflow
|
- https://github.com/BalliAsghar/mailsy-alfred/releases/download/2.0.0/Mailsy.alfredworkflow
|
||||||
android-studio:
|
android-studio:
|
||||||
cmd: bash -c 'if ! sdkmanager --list_installed | grep \' {PLUGIN}\' > /dev/null; then sdkmanager --install \'{PLUGIN}\' > /dev/null; fi'
|
cmd: bash -c 'if ! sdkmanager --list_installed | grep " {PLUGIN}" > /dev/null; then sdkmanager --install "{PLUGIN}" > /dev/null; fi'
|
||||||
plugins:
|
plugins:
|
||||||
- add-ons;addon-google_apis-google-24
|
- add-ons;addon-google_apis-google-24
|
||||||
- build-tools;33.0.0
|
- build-tools;33.0.0
|
||||||
|
@ -10032,7 +10034,7 @@ softwarePlugins:
|
||||||
- microsoft.cst.attacksurfaceanalyzer.cli
|
- microsoft.cst.attacksurfaceanalyzer.cli
|
||||||
- dotnet-format
|
- dotnet-format
|
||||||
gcloud:
|
gcloud:
|
||||||
cmd: bash -c 'if ! gcloud components list | grep 'Installed.*{PLUGIN}' &> /dev/null; then gcloud components install "{PLUGIN}"; fi'
|
cmd: bash -c 'if ! gcloud components list | grep "Installed.*{PLUGIN}" &> /dev/null; then gcloud components install "{PLUGIN}"; fi'
|
||||||
plugins:
|
plugins:
|
||||||
- app-engine-go
|
- app-engine-go
|
||||||
- cloud-datastore-emulator
|
- cloud-datastore-emulator
|
||||||
|
@ -10055,27 +10057,43 @@ softwarePlugins:
|
||||||
- github/gh-net
|
- github/gh-net
|
||||||
- mislav/gh-cp
|
- mislav/gh-cp
|
||||||
helm:
|
helm:
|
||||||
|
cmd: bash -c '{PLUGIN}'
|
||||||
plugins:
|
plugins:
|
||||||
- https://github.com/databus23/helm-diff
|
- if ! helm plugin list | grep "Preview helm upgrade changes as a diff" > /dev/null; then helm plugin install https://github.com/databus23/helm-diff; fi
|
||||||
- https://github.com/jkroepke/helm-secrets
|
- if ! helm plugin list | grep "This plugin provides secrets values encryption for Helm charts secure storing" > /dev/null; then helm plugin install https://github.com/jkroepke/helm-secrets; fi
|
||||||
- repo: helm repo add cloudflare-exporter https://lablabs.github.io/cloudflare-exporter/
|
# - helm repo add cloudflare-exporter https://lablabs.github.io/cloudflare-exporter/ && helm install cloudflare-exporter/cloudflare-exporter
|
||||||
install: helm install cloudflare-exporter/cloudflare-exporter
|
|
||||||
krew:
|
krew:
|
||||||
|
cmd: bash -c 'if ! kubectl krew list | grep "{PLUGIN}" > /dev/null; then kubectl krew install "{PLUGIN}"; fi'
|
||||||
plugins:
|
plugins:
|
||||||
- access-matrix
|
- access-matrix
|
||||||
|
- cert-manager
|
||||||
|
- cost
|
||||||
|
- ctx
|
||||||
- datree
|
- datree
|
||||||
- deprecations
|
- deprecations
|
||||||
|
- flyte
|
||||||
- get-all
|
- get-all
|
||||||
|
- graph
|
||||||
|
- ingress-nginx
|
||||||
|
- karmada
|
||||||
- konfig
|
- konfig
|
||||||
|
- kyverno
|
||||||
|
- liqo
|
||||||
|
- minio
|
||||||
- modify-secret
|
- modify-secret
|
||||||
- neat
|
- neat
|
||||||
- node-shell
|
- node-shell
|
||||||
|
- nx
|
||||||
|
- oidc-login
|
||||||
- resource-capacity
|
- resource-capacity
|
||||||
- score
|
- score
|
||||||
- sniff
|
- sniff
|
||||||
|
- tail
|
||||||
- tree
|
- tree
|
||||||
- tunnel
|
- tunnel
|
||||||
- view-allocations
|
- view-allocations
|
||||||
|
- virt
|
||||||
|
- warp
|
||||||
- who-can
|
- who-can
|
||||||
raycast:
|
raycast:
|
||||||
cmd: null
|
cmd: null
|
||||||
|
|
Loading…
Reference in a new issue