Skip to content

Commit

Permalink
fix: Config input name and set kustomize paths
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Fairbanks <[email protected]>
  • Loading branch information
rossf7 committed Jul 31, 2024
1 parent bf674fd commit 337b621
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/falco/ebpf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
namespace: benchmark
spec:
interval: 6h
path: ./kustomize
path: ./kustomize/falco-driver/ebpf
prune: true
retryInterval: 2m0s
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion projects/falco/kmod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
namespace: benchmark
spec:
interval: 6h
path: ./kustomize
path: ./kustomize/falco-driver/kmod
prune: true
retryInterval: 2m0s
sourceRef:
Expand Down
2 changes: 1 addition & 1 deletion projects/falco/modern-ebpf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
namespace: benchmark
spec:
interval: 6h
path: ./kustomize
path: ./kustomize/falco-driver/modern_ebpf
prune: true
retryInterval: 2m0s
sourceRef:
Expand Down
4 changes: 2 additions & 2 deletions scripts/project-trigger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jq -c '.projects[]' "$json_file" | while read -r project; do
-H "Authorization: Bearer $gh_token" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/$workflow_organization_name/$workflow_project_name/actions/workflows/$workflow_dispatcher_file_name/dispatches" \
-d "{\"ref\":\"${git_ref}\",\"inputs\":{\"cncf_project\":\"${proj_name}\",\"cncf_project_sub\":\"\",\"version\":\"${latest_proj_version}\"}}")
-d "{\"ref\":\"${git_ref}\",\"inputs\":{\"cncf_project\":\"${proj_name}\",\"config\":\"\",\"version\":\"${latest_proj_version}\"}}")

status_code=$?
if [ $status_code -ne 0 ]; then
Expand All @@ -66,7 +66,7 @@ jq -c '.projects[]' "$json_file" | while read -r project; do
-H "Authorization: Bearer $gh_token" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/$workflow_organization_name/$workflow_project_name/actions/workflows/$workflow_dispatcher_file_name/dispatches" \
-d "{\"ref\":\"${git_ref}\",\"inputs\":{\"cncf_project\":\"${proj_name}\",\"cncf_project_sub\":\"${config}\",\"version\":\"${latest_proj_version}\"}}")
-d "{\"ref\":\"${git_ref}\",\"inputs\":{\"cncf_project\":\"${proj_name}\",\"config\":\"${config}\",\"version\":\"${latest_proj_version}\"}}")

status_code=$?
if [ $status_code -ne 0 ]; then
Expand Down

0 comments on commit 337b621

Please sign in to comment.