Open lanmarti opened 1 year ago
This is a very annoying issues, would love to see this fixed :)
I've found that the issue might simple be a combination of factors on my side, and might not be a real issue at all.
On the one hand I had ConfigMaps containing one or more spaces before newlines (e.g. This is an example \nof a literal block that would be changed
vs This is an example\nof a literal block that would be fine
), which caused literal blocks to be changed to folded blocks both locally and through ArgoCD.
On the other hand, ConfigMaps with long lines are broken up in the ArgoCD UI, and are displayed using folded blocks, but when retrieving the ConfigMap through kubectl, the data is still defined in literal blocks as intended.
@Kerwood if possible, could you check if you are encountering either of the above scenarios? If not could you provide an example ConfigMap so I can use that to test?
I still have to verify more thoroughly myself, but from a few quick tests, any inconsistencies between literal blocks defined in the manifest in git and folded blocks displayed through ArgoCD UI seem to be one of the above 2 scenarios for me.
We might at least count that as a bug in the UI where it renders improperly. Literals are hard.
this happens on v2.7.8+92949f6.dirty
too
Still happening on v2.8.4 also. ArgoCD converts "|" to ">" or "|-"
Still happening in v2.9.7
. |
will get converted to >
if there is a line that is a certain number of characters long.
I have same problem. I have annotations:
vault.hashicorp.com/agent-inject-template-default-admin-password: |
{{- with secret "secret/data/infrastructure/airflow//airflow-secret-default-admin-password" -}}
export AIRFLOW_DEFAULT_USER_PASSWORD="{{ .Data.data.default-admin-password }}"
{{- end }}
and argocd change it to:
vault.hashicorp.com/agent-inject-template-default-admin-password: >
{{- with secret
"secret/data/infrastructure/airflow//airflow-secret-default-admin-password"
-}}\n export AIRFLOW_DEFAULT_USER_PASSWORD="{{
.Data.data.default-admin-password }}"\n {{- end }}
after that nothing works
Confirming this does exist and still happening in v2.12
Discussed in https://github.com/argoproj/argo-cd/discussions/10977