someone use gitlab CI/CD with fleetctl for deployi...
# kolide
v
someone use gitlab CI/CD with fleetctl for deploying packs?
z
It's on my todo list this quarter
s
Have done it, although our solution did not handle removing no longer used queries
z
Interesting, how would you be able to tell that the queries were no longer used?
s
Well, we decided not to use them, so we removed them from all query packs so they never ran on any hosts. But they were not removed from Fleet since our CD strategy was fairly “dumb” and just did
fleetctl apply -f
for the query and pack configurations
z
if they're not in the config when doing the apply, they don't get removed from Fleet?
s
No. You need to specifically delete them if you want them gone.
z
That makes sense.
v
interesting, is there an api to remove the unsed queries? I was thinking to remove them all before to apply the updated packs
s
No, but your CD system could
fleetctl delete -f
them assuming each query is in its own file
In my experience, our queries are fairly static so this wasn’t really a problem