-
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
Since v1.7.0-rc1 volumeClaimTemplates are out of sync #4126
Comments
@alexmt There are other diff issues with v1.7.0 which were not present in v1.6.2: |
Thank you, @niiku ! Can you please provide more details about resources that have issues? The first one looks like ConfigMap, right? |
Sorry for the bad screenshots, @alexmt: apiVersion: v1
kind: ServiceAccount
metadata:
name: iptables-config
creationTimestamp: null apiVersion: v1
kind: ConfigMap
metadata:
name: harbor-core
labels:
app.kubernetes.io/name: harbor
helm.sh/chart: harbor-6.0.8
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: core
data:
app.conf: |+
appname = Harbor
runmode = dev
enablegzip = true
[dev]
httpport = 8080 And if you want to have a look yourself: |
Thanks for sharing YAMLs and link. That is super useful! I've found an explanation for the first diff. The current behavior is technically correct: However, this is a breaking change - before 1.7 Argo CD used to exclude Could not reproduce ConfigMap issue. Trying on K8S v1.18.3 |
Reproduced the ConfigMap issue. Looks like it is related to kubectl version upgrade or to this PR argoproj/gitops-engine#62. Argo v1.6.0 does drop So the workaround is to sync ConfigMap using Argo CD v1.7.0 once. The new behavior is compatible with |
Ticket and fix for creationTimestamp issue: |
Thanks for reacting that quickly! I can confirm that the ConfigMap issue disappears after a sync is triggered. |
Describe the bug
Since v1.7.0-rc1
volumeClaimTemplates
inStatefulSets
are out-of-sync.To Reproduce
Deploy a
StatefulSet
usingvolumeClaimTemplates
:The k8s adds
which is detected as diff.
Expected behavior
Argo CD ignores
apiVersion
andkind
involumeClaimTemplates
Screenshots
Version
ArgoCD Version: v1.7.0-rc1
Kubernetes Version: v1.18.3
OKD Version: 4.5.0-0.okd-2020-07-14-153706-ga
Logs
(no other relevant log)
Edit:
It seems like other fields are affected with new diffing issues as well, like when
creationTimestamp: null
is in Git (seen at aServiceAccount
- ignored in v1.6.2), or whenapp.conf: \|+
(diff saysapp.conf: |
) is used in a e.g. aConfigMap
The text was updated successfully, but these errors were encountered: