Logo Konflux Component

Konflux Component

Tổ chức
opendatahub-io
konflux-component

Quản lý thành phần Konflux

Tổng quan

Nhà phát hànhopendatahub-io
Kho mãai-helpers
Tên kỹ năngkonflux-component
Sao
39
Bản fork
76
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được opendatahub-io công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Konflux Component trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-konflux/skills/konflux-component
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-konflux/skills/konflux-component .claude/skills/konflux-component
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Konflux Component trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Konflux Component ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Konflux Component với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Name

odh-ai-helpers:konflux-component

Synopsis

/konflux:component status <component>
/konflux:component build <components> [--wait duration] [--nudge] [--wait-for-release release-duration]

Description

The konflux:component command to manage Konflux component(s).

This command helps you:

  • Get status of a component - last build, commit message, snapshot and release
  • Trigger build of a component and wait until the build or release is done

Implementation

Subcommand: status

The command performs the following steps:

  1. Prerequisites Check:

    • Verify oc CLI is installed: which oc
    • Verify cluster access: oc whoami
    • If not installed or not authenticated, provide clear instructions
    • Verify git CLI is installed: which git
    • Verify the current directory is a Git repository: git remote -v
  2. Parse Arguments:

    • component: Component name (required)
  3. List components:

    • Get component
      bash
      kubeclt get component {component} -o yaml
    • The application name is provided .spec.application
    • The component name is provided .spec.componentName
    • The Git repository URL is provided .spec.source.git.url
    • The commit SHA is provided .status.lastBuiltCommit
    • The image is provided .status.lastPromotedImage
  4. Get Git information:

    • Use git branch -a --contains <commit-sha> to find the branch name
    • The Git repository should be in the current working directory. If it is not fail the command.
  5. Get Snapshots:

    • Get snapshots of the component and order by oldest
      bash
      kubectl get snapshot -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component} --sort-by=.metadata.creationTimestamp
  6. Get Releases:

    • Get releases object for each snapshot
      bash
      kubectl get release -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component}
    • The snapshot is specified in .spec.snapshot
    • The .status.conditions show if the release failed or succeeded
  7. Display result:

    • Display the result:
      | Component        | Built SHA | lastPromotedImage    |  Commit Message             | Git Branch   | Snapshots (oldest first) |
      |------------------|-----------|----------------------|-----------------------------|--------------|--------------------------|
      | {component}      | {commit}  | {lastPromotedImage}  | {commit-message}            | {git-branch} | {snapshots}              |
      | otel-bundle-main | 8ba2e60   |                      | Fix service account (#693)  | main         | otel-main-jnhfz          |
    • Display snapshot with release information for each snapshot
      Component: {component}
      | Snapshot        | Release                       | Release status                           |
      |-----------------|-------------------------------|------------------------------------------|
      | {snapshot}      | {release}                     | {release-status}                         |
      | otel-main-jnhfz | otel-main-jnhfz-8ba2e60-nnwnp | Failed (ManagedPipelineProcessed failed) |

Subcommand: build

The command performs the following steps:

  1. Prerequisites Check:

    • Verify oc CLI is installed: which oc
    • Verify cluster access: oc whoami
    • If not installed or not authenticated, provide clear instructions
    • Verify git CLI is installed: which git
    • Verify the current directory is a Git repository
  2. Parse Arguments:

    • $1: Component(s) (required): Konflux Component(s) name
    • $2: flag --wait <duration> (optional) wait duration for the build to finish
      • The duration can have suffix s for seconds, m for minutes or h for hours.
      • If other suffixes are specified fail the command
    • $3: flag --nudge (optional) nudge files after the build finishes
      • --nudge can be used only if --wait is used
    • $4: flag --wait-for-release <release-duration> (optional) wait until release is done
      • --wait-for-release can be used only if --wait is used
      • The duration can have suffix s for seconds, m for minutes or h for hours.
  3. Trigger the build:

    • Annotate each component to trigger the build
      bash
      kubectl annotate components/{compponent} build.appstudio.openshift.io/request=trigger-pac-build
  4. Get the build information:

    bash
    kubectl get pipelinerun -l appstudio.openshift.io/component={component}
    • Wait up to 5 minutes, it takes time for the PipelineRun to be created
    • The started pipeline name must have -on-push in the name
  5. Wait for the build to finish:

    • If --wait <duration> is provided wait for the PipelineRun to finish. The duration can be in s for seconds, m for minutes or h for hours.
    bash
    kubectl wait --for=condition=Suceeded=true pipelinerun/{pipelinerun} --timeout={duration}
    • Extract the nudge files specified in the .metadata.annotations["build.appstudio.openshift.io/build-nudge-files"] in the PipelineRun
    • The Snapshot object is created when the build finishes
    • Get the Snapshot object and extract container image .spec.components[?(@.name=="{component}")].containerImage
      bash
      kubectl get snapshot -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
    • If the build fails use the troubleshooting instructions to explain the failure
  6. Wait for the release to finish:

    • If --wait-for-release <release-duration> is provided wait for the Release to finish. The release-duration can be in s for seconds, m for minutes or h for hours.
    bash
    kubectl wait --for=condition=Released=true --timeout={release-duration} -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
  7. Nudge files:

    • If --wait <duration> and --nudge are provided nudge the files by repacing the containerImage in those files
  8. Display result:

    • Display the result:
      Component: {component} | PipelineRun: {pipelinerun-name} | Snapshot: {snapshot} | Container Image: {containerImage}

Return Value

  • status: Table of all components
  • build: PipelineRun custom resource name which is executing the build and snapshot if the build finished

Examples

  1. Get status of otel-collector-main component:

    bash
    /konflux:component status otel-collector-main
  2. Trigger build of the otel-collector-main component:

    bash
    /konflux:component build otel-collector-main
  3. Trigger build of the otel-collector-main and otel-operator-main component:

    bash
    /konflux:component build otel-collector-main otel-operator-main
  4. Trigger build of the otel-collector-main component and wait 30 minutes to finish:

    bash
    /konflux:component build otel-collector-main --wait 30m

Arguments

status

  • component (required): Name of the Konflux component

build

  • component (required): Name of the Konflux component
  • --wait (required): Duration how long to wait for the pipelinerun to finish

Troubleshooting

build

  • PipelineRun progress and failure:

    • The PipelineRun creates TaskRun(s) objects which create actuall pods to run the build.
    • The TaskRun for a specific PipelineRun can be found by kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun}
    • The pod for a specific TaskRun can be found by kubectl get pod -l tekton.dev/taskRun={taskrun}
    • Get the pod logs, kubernetes events, status and explain the failure
  • Release progress and failure

    • The release is executed as a PipelineRun. The release PipelineRun is defined in the Release object in .status.managedProcessing.pipelineRun
    • The example value is rhtap-releng-tenant/managed-vks2b. Which means the PipelineRun name is managed-vks2b and runs in rhtap-releng-tenant Kubernetes namespace.
    • The TaskRun for the release PipelineRun can be found by kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun} -n {namespace}
    • The pod for the release TaskRun can be found by kubectl get pod -l tekton.dev/taskRun={taskrun} -n {namespace}

Related Commands

  • /konflux:application status <application> - Show application status

Additional Resources

Câu hỏi thường gặp

Kỹ năng AI Konflux Component làm được gì?

Quản lý thành phần Konflux

Vì sao nên dùng Konflux Component trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Konflux Component là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Konflux Component trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-konflux/skills/konflux-component. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Konflux Component?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Konflux Component với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Konflux Component với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Konflux Component có miễn phí không?

Có. Kỹ năng này được opendatahub-io phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇