Skip to content

KSOPS plugin compatibility

daurnimator edited this page Jun 21, 2020 · 1 revision

Due to issues with go's plugin system, its sometimes easier to workaround KSOPS with a kustomize exec plugin.

Save the following as ~/.config/kustomize/plugin/viaduct.ai/v1/ksops/ksops:

#!/bin/bash

yq -r '.files[]' "$1" | while read file; do
	echo "---"
	sops -d "$file"
done
Clone this wiki locally