argoproj-labs / argocd-agent

Redefining the multi cluster story of Argo CD
Apache License 2.0
81 stars 15 forks source link

fix: principal agent not starting up with the default autoNamespaceLabels config #202

Closed mikeshng closed 1 month ago

mikeshng commented 1 month ago

The principal agent pod kept crashlooping with the error:

[FATAL]: Could not parse auto namespace labels: invalid label '': has no value

I am using the default values so the auto namespace labels is an empty string. This fix is to ensure that the principal can properly start with the default case.

Also contains a minor logging fix to address the following:

level=info msg="Listing AppProjects &{0xc0002579a0 }" module=AppProjectInformer