Skip to content

Commit

Permalink
fix(): event schema file moved to pkg (#6)
Browse files Browse the repository at this point in the history
Signed-off-by: Puran Adhikari <[email protected]>
  • Loading branch information
PuranAdhikari authored Feb 27, 2023
1 parent 994a7e5 commit f30db02
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions event.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ license=$(
*/
EOF
)
input1="config/events/controller.yaml"
input2="config/events/worker.yaml"
input1="pkg/schema/config/controller.yaml"
input2="pkg/schema/config/worker.yaml"
output="pkg/schema/event_names.go"

if [ ! -f $input1 ] || [ ! -f $input2 ]; then
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/schema/event_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ type EventSchema struct {
}

func GetEvent(name string) (*EventSchema, error) {
controllerEvents, err := parseEvent("../../config/events/controller.yaml")
controllerEvents, err := parseEvent("../schema/config/controller.yaml")
if err != nil {
return nil, err
}
workerEvents, err := parseEvent("../../config/events/worker.yaml")
workerEvents, err := parseEvent("../schema/config/worker.yaml")
if err != nil {
return nil, err
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/util/mocks/Client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f30db02

Please sign in to comment.