-
Notifications
You must be signed in to change notification settings - Fork 810
Open
Labels
~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Milestone
Description
Related user story
Task
Enforce the new exceptions config when running GitOps:
- If an entity (software, secrets or labels) has exceptions turned on, treat a missing key for that entity (
software:,secrets:orlabels:) as a no-op - If an entity has exceptions turned on, and the key for that entity is provided, fail the gitops run with an error (possibly only in GitOps mode, tbd)
- If an entity had exceptions tuned off, treat a missing key as "remove all config for that entity"
Condition of satisfaction
After setting up an instance with labels and secrets in it:
- With all exceptions ON, running
fleetctl gitopswith a file that haslabels:in it should produce an error - With all exceptions ON, running
fleetctl gitopswith a file that hassecrets:in it should produce an error - With all exceptions ON, running
fleetctl gitopswith a file that hassoftware:in it should produce an error - With all exceptions ON, running
fleetctl gitopswith a file that has nosoftware:,labels:orsecrets:keys should result in no changes to the software, labels or secrets on the server - With all exceptions OFF, running
fleetctl gitopswith a file that has nosoftware:,labels:orsecrets:keys should result in all software, secrets and labels being removed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)