Plugin prevents Kustomize to work #5613
-
Hello, I'm using a custom plugin to get secret from Vault and produce a K8s secret. This is my application: apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prometheus-self
namespace: argocd
labels:
app: prometheus
component: self
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: default
source:
path: overlays/qa/clusters/my-cluster
repoURL: https://myrepo.com
targetRevision: HEAD
plugin:
name: argocd-vault-plugin In my repository at path ├── kustomization.yaml
├── patches
│ ├── alertmanager_patch.yaml
│ ├── grafana_patch.yaml
│ ├── ingress_controller_patch.yaml
│ ├── prometheus_operator_patch.yaml
│ └── pushgateway_patch.yaml
├── remote_secrets
│ └── my_secret.yaml
├── self.yaml and this is my kustomation.yaml apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../base/prometheus
- ./remote_secrets/my_secret.yaml
- ./self.yaml If I use the plugin in my application, it isn't able to create other resource then Is this a bug or is it suppose to work like that ? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Antonio, I believe this would be a question for the maintainers of the argocd-vault-plugin. When specifying a custom management plugin, the generation of YAML is delegated by Argo CD to the configured plugin, and so the behaviour would be dependent on that plugin's behaviour. With that said, it looks to me like that tool doesn't use Kustomize to process the YAML, after the secret substitution has taken place, so that would explain why the Kustomize resources are ignored. They would need to add Kustomize support directly in order to handle this. |
Beta Was this translation helpful? Give feedback.
Hi Antonio, I believe this would be a question for the maintainers of the argocd-vault-plugin. When specifying a custom management plugin, the generation of YAML is delegated by Argo CD to the configured plugin, and so the behaviour would be dependent on that plugin's behaviour.
With that said, it looks to me like that tool doesn't use Kustomize to process the YAML, after the secret substitution has taken place, so that would explain why the Kustomize resources are ignored. They would need to add Kustomize support directly in order to handle this.