-
Notifications
You must be signed in to change notification settings - Fork 625
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
Slack notification is misleading #626
Comments
There is no way around this, you can disable pruning so that objects are no longer labeled with the git revision. Garbage collection requires that all objects have a label to keep track of manifests removed from git, so the message is not misleading, it tells you what actually happened. |
I'm not sure how Flux works under the hood, but if I try to apply yaml, which doesn't change, I have infromation from kubernetes, that there was no change. Also kubcetl diff can detect if there is difference. So I don't understand, why Flux cannot detect only yamls that changed, and display this info. As for now all notifications looks the same and gives no value besides "something has changed". Maybe you remember sha commits, I'm not as good ;) |
Try applying the same directory with |
I do this daily. Output is no change or changed, depending on fact, if yaml
was different or not
pt., 18 gru 2020, 19:25 użytkownik Hidde Beydals <notifications@github.com>
napisał:
… Try applying the same directory with kubectl apply -k or kubectl apply -f
and see what the output is :-)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#626 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGI4ZRCUKWDJXW5NDXGQ4TSVONAXANCNFSM4VBCIGDQ>
.
|
If you want Flux to apply without deleting objects, then set prune to false and it will no longer change the labels for each revision. |
Ok, i see those labels on deployments and now understand why all deployments are changed, hence the message. Is there any description how to define "prune" in Flux and what are consequences? Is it "prune: true" in gotk-sync.yaml? |
I also have this issue and found that when the alert always says everything is changed the information of what has changed is not really useful anymore. I think the ideal solution would be if flux could alert what objects changed, disregarding objects that only has GC label changes. I appreciate this would be hard to do and of course this would not be possible by just alerting the output of kustomize which I guess it is doing now? I'll make some naïve suggestions since I don't know all details of how flux works:
|
In case of someone find this case while digging a similar issue. We have many deployment that always get marked as "configured" and then get included in the alerts. It seems to be related to a kubernetes behavior that sometimes mark an "kubectl apply -f" as configured while the "kubectl diff -f" would return no change. The kubectl client sometimes send a PATCH that change nothing (it's not clear why yet for me..) and that trigger the answer "configured" used by flux to determine if the file was changed or not. So, obviously we can't really trust kubectl for the "configured" output :(. |
Add optional in-memory cache of HelmRepository index files
Despite changing only one yaml in GIT, Slack notification from Slack lists all yaml as "configured".
![image](https://user-images.githubusercontent.com/822886/102611657-a3a99380-412f-11eb-9cf7-83010261198b.png)
I expect it to send notifictaion only about yamls which has been changed
The text was updated successfully, but these errors were encountered: