Related user story
#40171
Task
Add a new exceptions key under gitops, with boolean subkeys software, labels and secrets. So the new config will be:
type GitOpsExceptions struct {
Labels bool `json:"labels"`
Software bool `json:"software"`
Secrets bool `json:"secrets"`
}
type UIGitOpsModeConfig struct {
GitopsModeEnabled bool `json:"gitops_mode_enabled"`
RepositoryURL string `json:"repository_url"`
Exceptions GitOpsExceptions `json:"exceptions"`
}
Condition of satisfaction
- Querying the
GET /config API should return current exceptions
PATCH /config with gitops.enabled should update exceptions and not alter other GitOps config (enabled, url)
- After running migration, existing instances should have
labels and secrets exceptions enabled, software disabled
- A new instance should have
secrets enabled, software and labels disabled
Related user story
#40171
Task
Add a new
exceptionskey undergitops, with boolean subkeyssoftware,labelsandsecrets. So the new config will be:Condition of satisfaction
GET /configAPI should return current exceptionsPATCH /configwithgitops.enabledshould update exceptions and not alter other GitOps config (enabled, url)labelsandsecretsexceptions enabled,softwaredisabledsecretsenabled,softwareandlabelsdisabled