|
@@ -9,6 +9,7 @@ type UseKubeEventsProps = {
|
|
|
ownerName?: string;
|
|
ownerName?: string;
|
|
|
ownerType?: string;
|
|
ownerType?: string;
|
|
|
shouldWaitForOwner?: boolean;
|
|
shouldWaitForOwner?: boolean;
|
|
|
|
|
+ ownerNamespace?: string;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export const useKubeEvents = ({
|
|
export const useKubeEvents = ({
|
|
@@ -16,6 +17,7 @@ export const useKubeEvents = ({
|
|
|
ownerName,
|
|
ownerName,
|
|
|
ownerType,
|
|
ownerType,
|
|
|
shouldWaitForOwner,
|
|
shouldWaitForOwner,
|
|
|
|
|
+ ownerNamespace,
|
|
|
}: UseKubeEventsProps) => {
|
|
}: UseKubeEventsProps) => {
|
|
|
const { currentCluster, currentProject } = useContext(Context);
|
|
const { currentCluster, currentProject } = useContext(Context);
|
|
|
const [hasPorterAgent, setHasPorterAgent] = useState(false);
|
|
const [hasPorterAgent, setHasPorterAgent] = useState(false);
|
|
@@ -98,6 +100,7 @@ export const useKubeEvents = ({
|
|
|
resource_type: type,
|
|
resource_type: type,
|
|
|
owner_name: ownerName,
|
|
owner_name: ownerName,
|
|
|
owner_type: ownerType,
|
|
owner_type: ownerType,
|
|
|
|
|
+ namespace: ownerNamespace,
|
|
|
},
|
|
},
|
|
|
{ project_id, cluster_id }
|
|
{ project_id, cluster_id }
|
|
|
)
|
|
)
|