Skip to content

[firestartr-bootstrap] add validation for github org #459

@frmadem

Description

@frmadem

Motivation

We need to create an additional validationGithubOrgComponents that can be launched or not depending on a flag.

this validation is performed using the operator's pat (m.Creds.GithubApp.OperatorPat) because it cannot be launched with a generated token due to the absence of the secrets (that are created in a later state) .

In case the operator's pat has not the necessary privileges to read in the destintation org, these validations can be turned off with the flag --no-preflight-org-validations.

It needs to:

  1. Create a ghToken (currently not possible because the ghToken is based on the creds populated after the external secrets machinery has been initiated)
  2. Use it to call the check on the existence of githubOrgWebHook
  3. Use it to call the check on the existence of the default group

Acceptance criteria

  • The new method exists in validations.go
  • It complies with the specs.
  • Tests have been made and passed.
  • Team acceptance.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions