• v

    vaar

    1 year ago
    someone use gitlab CI/CD with fleetctl for deploying packs?
  • z

    Zach Zeid

    1 year ago
    It's on my todo list this quarter
  • sundsta

    sundsta

    1 year ago
    Have done it, although our solution did not handle removing no longer used queries
  • z

    Zach Zeid

    1 year ago
    Interesting, how would you be able to tell that the queries were no longer used?
  • sundsta

    sundsta

    1 year ago
    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

    Zach Zeid

    1 year ago
    if they're not in the config when doing the apply, they don't get removed from Fleet?
  • sundsta

    sundsta

    1 year ago
    No. You need to specifically delete them if you want them gone.
  • z

    Zach Zeid

    1 year ago
    That makes sense.
  • v

    vaar

    1 year ago
    interesting, is there an api to remove the unsed queries? I was thinking to remove them all before to apply the updated packs
  • sundsta

    sundsta

    1 year ago
    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