-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
kind:bugSomething isn't workingSomething isn't working
Description
I'm experimenting with installing ArgoCD and KSOPS for my deployments but when attempting to use the ksops plugin for an application in ArgoCD I'm getting the following error stating the plugin cant be found after I have patched the argocd-repo-server
deployment with:
# argo-cd-repo-server-ksops-patch.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-repo-server
spec:
template:
spec:
# 1. Define an emptyDir volume which will hold the custom binaries
volumes:
- name: custom-tools
emptyDir: {}
# 2. Use an init container to download/copy custom binaries into the emptyDir
initContainers:
- name: install-ksops
image: viaductoss/ksops:v4.3.3
command: ["/bin/sh", "-c"]
args:
- echo "Installing KSOPS...";
mv ksops /custom-tools/;
mv kustomize /custom-tools/;
echo "Done.";
volumeMounts:
- mountPath: /custom-tools
name: custom-tools
# 3. Volume mount the custom binary to the bin directory (overriding the existing version)
containers:
- name: argocd-repo-server
volumeMounts:
- mountPath: /usr/local/bin/kustomize
name: custom-tools
subPath: kustomize
- mountPath: /usr/local/bin/ksops
name: custom-tools
subPath: ksops
I have also patched the config map as specified in the readme with:
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
kustomize.buildOptions: "--enable-alpha-plugins --enable-exec"
Error message:
level=error msg="finished unary call with code Unknown" error="Manifest generation error (cached): `kustomize build <path to cached source>/deploy/dev --enable-alpha-plugins --enable-exec` failed exit status 1: Error: loading generator plugins: failed to load generator: unable to find plugin root - tried: ('<no value>'; homed in $KUSTOMIZE_PLUGIN_HOME), ('<no value>'; homed in $XDG_CONFIG_HOME), ('/home/argocd/.config/kustomize/plugin'; homed in default value of $XDG_CONFIG_HOME), ('/home/argocd/kustomize/plugin'; homed in home directory)" grpc.code=Unknown grpc.method=GenerateManifest grpc.service=repository.RepoServerService grpc.start_time="2025-03-27T20:42:11Z" grpc.time_ms=234.055 span.kind=server system=grpc
I do see in my pod description the mounts:
/usr/local/bin/ksops from custom-tools (rw,path="ksops")
/usr/local/bin/kustomize from custom-tools (rw,path="kustomize")
and when running ls on /usr/local/bin they do exist in there:
-rwxr-xr-x 1 root root 56263753 Jan 28 16:57 ksops
-rwxr-xr-x 1 root root 22735751 Jan 28 16:57 kustomize
Seems like the documentation for the patch is possibly missing a piece of information to connect the 2 pieces here
Metadata
Metadata
Assignees
Labels
kind:bugSomething isn't workingSomething isn't working