Skip to content

Commit

Permalink
test setting app namespace for event
Browse files Browse the repository at this point in the history
  • Loading branch information
strangnet committed Feb 2, 2024
1 parent fc27c07 commit 5f73d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kube/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (client *KubernetesClient) CreateApplicationEvent(app *appv1alpha1.Applicat
Reason: reason,
}

result, err := client.Clientset.CoreV1().Events(client.Namespace).Create(client.Context, &event, metav1.CreateOptions{})
result, err := client.Clientset.CoreV1().Events(app.ObjectMeta.GetNamespace()).Create(client.Context, &event, metav1.CreateOptions{})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5f73d2e

Please sign in to comment.