Open guido-1 opened 1 year ago
Same problem with kustomize + multi-source
Same problem with env variables as well, it seems some build env variables are not there too, currently in argocd 2.7.2, here an example:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
labels:
argocd.argoproj.io/managed-by: argocd
name: hello-world-multiple-sources
namespace: argocd
spec:
destination:
namespace: hello-world-plugin-multiple-sources
server: 'https://kubernetes.default.svc'
project: hello-world
sources:
- path: .
plugin:
env:
- name: ARGOCD_APP_TOTO
value: customtoto
- name: ARGOCD_APP_REGISTRY
value: myregistry
- name: ARGOCD_APP_CLUSTER_NAME
value: ocpv4lab
- name: ARGOCD_APP_TECHNOLOGY
value: helm
- name: ARGOCD_APP_PROVIDER
value: argo
- name: ARGOCD_APP_TEAM
value: memyselfandi
- name: ARGOCD_APP_VALUES
value: ''
valueFiles:
- $values/values.yaml
- $values/values-2.yaml
name: helm
repoURL: 'ssh://git@git/myorg/myrepo/hello-world.git'
targetRevision: master
- repoURL: 'ssh://git@git/myorg/myrepo/hello-world.git'
targetRevision: sometag
ref: values
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
The error is that the env variables I setted are not there, nor the parameters as shown by others.
The UI doesn't currently fully support multi-source apps. For example, it doesn't show the parameters for all the sources.
But it also shouldn't throw an error. That's a bug.
The UI now has a multi-source panel(see PR:https://github.com/argoproj/argo-cd/pull/17275 ),
so should this issue & #15038 be considered resolved?
Checklist:
argocd version
.Describe the bug
Plugin parameters displayed even with multiple sources.
To Reproduce
TypeError: Cannot read properties of undefined (reading 'plugin')
.Expected behavior
Instead of the
type error
the parameters are displayed also with multiple sources. Or if it is not possible because of the multiple sources a hint that it is not possible.Version
logs