Skip to content

Commit 579f37a

Browse files
committed
fix: order matters and install-custom-tools needs to be before kustomize
1 parent e80efcd commit 579f37a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

gitops/base-install/argocd/overlays/argo-cd-repo-server-ksops-patch.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,6 @@ spec:
1717
optional: true
1818
# 2. Use an init container to download/copy custom binaries into the emptyDir
1919
initContainers:
20-
- name: install-ksops
21-
image: viaductoss/ksops:v4.3.3
22-
command: ["/bin/sh", "-c"]
23-
args:
24-
- echo "Installing KSOPS...";
25-
mv ksops /custom-tools/;
26-
mv $GOPATH/bin/kustomize /custom-tools/;
27-
echo "Done.";
28-
volumeMounts:
29-
- mountPath: /custom-tools
30-
name: custom-tools
3120
- name: install-custom-tools
3221
image: alpine:latest
3322
imagePullPolicy: IfNotPresent
@@ -59,6 +48,17 @@ spec:
5948
volumeMounts:
6049
- mountPath: /custom-tools
6150
name: custom-tools
51+
- name: install-ksops
52+
image: viaductoss/ksops:v4.3.3
53+
command: [ "/bin/sh", "-c" ]
54+
args:
55+
- echo "Installing KSOPS...";
56+
mv ksops /custom-tools/;
57+
mv $GOPATH/bin/kustomize /custom-tools/;
58+
echo "Done.";
59+
volumeMounts:
60+
- mountPath: /custom-tools
61+
name: custom-tools
6262
# Import the private gpg key from the secret into argocd
6363
- name: import-gpg-key
6464
image: argoproj/argocd:v2.5.0

0 commit comments

Comments
 (0)