Add cert-manager cli and k9s plugin
Closed this issue · 1 comments
gberche-orange commented
Expected behavior
- As a paas-templates operator,
- In order to interact and inspect cert manager certificates
- I need the cert manager cli from https://github.com/cert-manager/cmctl
- It bash completion config
- and its k9s plugin from https://github.com/derailed/k9s/blob/master/plugins/cert-manager.yaml
Workaround
proxy -i
OS=$(uname -s | tr A-Z a-z); ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/'); curl -fsSL -o cmctl https://github.com/cert-manager/cmctl/releases/latest/download/cmctl_${OS}_${ARCH}
chmod +x cmctl
sudo mv cmctl /usr/local/bin
# or `sudo mv cmctl /usr/local/bin/kubectl-cert_manager` to use `kubectl cert-manager` instead.
curl -s https://raw.githubusercontent.com/derailed/k9s/master/plugins/cert-manager.yaml > new_plugin.yaml
# Shift S may be conflicting with something else and hangs k9s in: `displaying certicates` msg
sed -i 's/Shift-S/Shift-Q/g' new_plugin.yaml
sed -i 's/confirm: false/confirm: true/g' new_plugin.yaml
cp ~/.k9s/plugins.yaml ~/.k9s/plugins.yaml.backup2
#From https://mikefarah.gitbook.io/yq/operators/multiply-merge#merging-all-files
yq eval-all '. as $item ireduce ({}; . * $item )' new_plugin.yaml ~/.k9s/plugins.yaml.backup2 > ~/.k9s/plugins.yaml
diff ~/.k9s/plugins.yaml.backup2 ~/.k9s/plugins.yaml
k9s
ogrand commented
Done with latest version