用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/opendatahub-io/ai-helpers --skill konflux-component命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need to evaluate CodeRabbit PR comments and fix or reply
Use this skill to write unit tests that strictly conform to the project's existing testing structure, patterns, and style by learning from similar tests before writing anything new.
Review an Architectural Decision Record (ADR) using a team of six specialist reviewer subagents and produce a consolidated report as both PDF and PPTX slide deck. Use this skill whenever the user asks to review, critique, audit, or get feedback on an ADR, architecture decision, design doc, or RFC — whether the input is a Markdown file, a .docx document, or pasted text. Trigger even if the user does not explicitly say "ADR"; phrases like "review this architecture decision", "critique this design doc", or "run the reviewer panel on this" should also invoke this skill.
正在显示 SKILL.md
| name | konflux-component |
| description | Manage Konflux component |
| argument-hint | <subcommand> [args] |
odh-ai-helpers:konflux-component
/konflux:component status <component>
/konflux:component build <components> [--wait duration] [--nudge] [--wait-for-release release-duration]
The konflux:component command to manage Konflux component(s).
This command helps you:
The command performs the following steps:
Prerequisites Check:
oc CLI is installed: which ococ whoamigit CLI is installed: which gitgit remote -vParse Arguments:
component: Component name (required)List components:
kubeclt get component {component} -o yaml
.spec.application.spec.componentName.spec.source.git.url.status.lastBuiltCommit.status.lastPromotedImageGet Git information:
git branch -a --contains <commit-sha> to find the branch nameGet Snapshots:
kubectl get snapshot -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component} --sort-by=.metadata.creationTimestamp
Get Releases:
kubectl get release -l pac.test.appstudio.openshift.io/sha={commit},appstudio.openshift.io/component={component}
.spec.snapshot.status.conditions show if the release failed or succeededDisplay 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 |
Component: {component}
| Snapshot | Release | Release status |
|-----------------|-------------------------------|------------------------------------------|
| {snapshot} | {release} | {release-status} |
| otel-main-jnhfz | otel-main-jnhfz-8ba2e60-nnwnp | Failed (ManagedPipelineProcessed failed) |
The command performs the following steps:
Prerequisites Check:
oc CLI is installed: which ococ whoamigit CLI is installed: which gitParse Arguments:
$1: Component(s) (required): Konflux Component(s) name$2: flag --wait <duration> (optional) wait duration for the build to finish
s for seconds, m for minutes or h for hours.$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 useds for seconds, m for minutes or h for hours.Trigger the build:
kubectl annotate components/{compponent} build.appstudio.openshift.io/request=trigger-pac-build
Get the build information:
kubectl get pipelinerun -l appstudio.openshift.io/component={component}
-on-push in the nameWait for the build to finish:
--wait <duration> is provided wait for the PipelineRun to finish. The duration can be in s for seconds, for minutes or for hours.Get status of otel-collector-main component:
/konflux:component status otel-collector-main
Trigger build of the otel-collector-main component:
/konflux:component build otel-collector-main
Trigger build of the otel-collector-main and otel-operator-main component:
/konflux:component build otel-collector-main otel-operator-main
Trigger build of the otel-collector-main component and wait 30 minutes to finish:
/konflux:component build otel-collector-main --wait 30m
PipelineRun progress and failure:
kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun}kubectl get pod -l tekton.dev/taskRun={taskrun}Release progress and failure
.status.managedProcessing.pipelineRunrhtap-releng-tenant/managed-vks2b. Which means the PipelineRun name is managed-vks2b and runs in rhtap-releng-tenant Kubernetes namespace.kubectl get taskrun -l tekton.dev/pipelineRun={pipelinerun} -n {namespace}kubectl get pod -l tekton.dev/taskRun={taskrun} -n {namespace}/konflux:application status <application> - Show application statusmhkubectl wait --for=condition=Suceeded=true pipelinerun/{pipelinerun} --timeout={duration}
.metadata.annotations["build.appstudio.openshift.io/build-nudge-files"] in the PipelineRun.spec.components[?(@.name=="{component}")].containerImage
kubectl get snapshot -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
Wait for the release to finish:
--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.kubectl wait --for=condition=Released=true --timeout={release-duration} -l appstudio.openshift.io/build-pipelinerun={pipelinerun}
Nudge files:
--wait <duration> and --nudge are provided nudge the files by repacing the containerImage in those filesDisplay result:
Component: {component} | PipelineRun: {pipelinerun-name} | Snapshot: {snapshot} | Container Image: {containerImage}