Streamline your workflow with the new MCP server for Red Hat product documentation.Connect your AI tools and LLMs directly to live Red Hat product documentation. Connect now.
11.2.7. 테스트 이벤트를 사용하여 배포된 함수 호출
kn func invoke CLI 명령을 사용하여 로컬에서 또는 OpenShift Container Platform 클러스터에서 함수를 호출하기 위해 테스트 요청을 보낼 수 있습니다. 이 명령은 함수가 작동하고 이벤트를 올바르게 수신할 수 있는지 테스트하는 데 사용할 수 있습니다.
명령 예
$kn func invoke
kn func invoke 명령은 기본적으로 로컬 디렉터리에서 실행되며 이 디렉터리는 함수 프로젝트라고 가정합니다.