-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using an explicitly empty secret throws error #5584
Comments
I confirm, I can reproduce it. |
I can also confirm this with argocd v2.1.0-rc2 apiVersion: v1
kind: Secret
metadata:
name: argocd-dex-server-token
labels:
app.kubernetes.io/name: argocd-dex-server-token
app.kubernetes.io/part-of: argocd
app.kubernetes.io/instance: argocd
annotations:
kubernetes.io/service-account.name: "argocd-dex-server"
type: kubernetes.io/service-account-token
stringData:
dummy: value |
Wanted to report that I also see this when last-applied configuration for a secret contains |
Just clarifying that the out-of-sync happens because the secret type is: data:
ca.crt: ++++++++
namespace: ++++++++
token: ++++++++ In this case live and desired state will always have a diff. The bug with log |
There are 2 different bugs related to this issue:
Bug 1 is addressed by argoproj/gitops-engine#345 and #7603 |
is this supposed to be fixed for I'm still getting the diff error 2,5d1
< data:
< ca.crt: ++++++++
< namespace: ++++++++
< token: ++++++++ |
Checklist:
argocd version
.Describe the bug
Using an application with just the following manifest will always stay out-of-sync (which is kinda expected since data should always be non-empty for such a secret) but throws an error inside logs. While this example might be silly, I think it might be related to #4044 - when redis is restarted it will no longer show a diff and instead throw
Unable to load data: cache: key is missing
To Reproduce
Use an application with just the following yaml:
Unable to load data: cache: key is missing
Expected behavior
I am not sure tbh. I guess staying out of sync is correct, however there should not be an error when redis was restarted.
Version
Logs
The text was updated successfully, but these errors were encountered: