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:
- Create a ghToken (currently not possible because the ghToken is based on the creds populated after the external secrets machinery has been initiated)
- Use it to call the check on the existence of githubOrgWebHook
- Use it to call the check on the existence of the default group
Acceptance criteria
Motivation
We need to create an additional
validationGithubOrgComponentsthat 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:
Acceptance criteria