forked from knative/eventing
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create validation function for cross namespace referencing (knative#7812
) * added validation * commented out struct * updated interface * deleted unnecessary comments * updated contents of the interface * changed some names * Added checks for validating channel * Updated error details * Commented out unused variables * aded GetCrossNamespaceRef() for subscription * fixed type error * added validation checks * added condition for setting namespace * added GetCrossNamespaceRef for triggers * added validation for triggers * updated trigger and subscription types * got rid of unnecessary flag check * fixed subscription type * fixed types and validation * added license * added nil check; empty kreference will be returned * comments cleanup * added function comment * comments cleanup * description update * linting fix * linting fix * unit test for subscription validation * updated channel namespace for unit test * Update pkg/crossnamespace/validation.go Co-authored-by: Calum Murray <cmurray@redhat.com> * added conditional check in checknamespace * moved comment * unit test error fix * unit test error fix * unit test * unit test fix * updated error messages * trigger validation and unit tests * updated validation logic * new unit test * comment cleanup --------- Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
- Loading branch information
1 parent
4a3f65d
commit 217f7a3
Showing
10 changed files
with
596 additions
and
8 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
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
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.