`; resultsHTML += results .map((item) => { return `
${item.meta.title}

…${item.excerpt}…

`; }) .join(""); if (resultsLength > 5) { resultsHTML += ``; } searchBarResults.innerHTML = resultsHTML; } } searchBarInput.addEventListener("input", search); if (window.heap !== undefined) { searchBarResults.addEventListener('click', function (event) { if (event.target.tagName === 'A' && event.target.closest('.link')) { const searchQuery = event.target.getAttribute('data-query'); const resultIndex = event.target.getAttribute('data-index'); const url = new URL(event.target.href); const properties = { docs_search_target_path: url.pathname, docs_search_target_title: event.target.textContent, docs_search_query_text: searchQuery, docs_search_target_index: resultIndex, docs_search_source_path: window.location.pathname, docs_search_source_title: document.title, }; heap.track("Docs - Search - Click - Result Link", properties); } }); } });

Advanced integration
Page options

Availability: Experimental

Compose Bridge can also function as a kubectl plugin, allowing you to integrate its capabilities directly into your Kubernetes command-line operations. This integration simplifies the process of converting and deploying applications from Docker Compose to Kubernetes.

Use compose-bridge as a kubectl plugin

To use the compose-bridge binary as a kubectl plugin, you need to make sure that the binary is available in your PATH and the name of the binary is prefixed with kubectl-.

  1. Rename or copy the compose-bridge binary to kubectl-compose_bridge:

    $ mv /path/to/compose-bridge /usr/local/bin/kubectl-compose_bridge
    
  2. Ensure that the binary is executable:

    $ chmod +x /usr/local/bin/kubectl-compose_bridge
    
  3. Verify that the plugin is recognized by kubectl:

    $ kubectl plugin list
    

    In the output, you should see kubectl-compose_bridge.

  4. Now you can use compose-bridge as a kubectl plugin:

    $ kubectl compose-bridge [command]
    

Replace [command] with any compose-bridge command you want to use.