-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loosen the validation around unused field
When fields in RSync spec is not used, some are allowed to be present, such as `spec.git`, `spec.oci`, `spec.helm`, and `spec.xxx.gcpServiceAccountEmail`. However, `spec.xxx.secretRef` is not allowed when it is not used. The reconciler-manager already checks if it is the proper auth type before copying to the config-management-system Namespace, so it is okay to loosen the validation for this field. This commit also refactors the auth types to reduce code duplication.
- Loading branch information
Showing
42 changed files
with
978 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.