Skip to content

Add "exceptions" key to "gitops" app config #42008

Description

@sgress454

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions