$npx -y skills add opendatahub-io/ai-helpers --skill konflux-applicationManage Konflux application
| 1 | ## Name |
| 2 | odh-ai-helpers:konflux-application |
| 3 | |
| 4 | ## Synopsis |
| 5 | |
| 6 | ``` |
| 7 | /konflux:application status <application> |
| 8 | ``` |
| 9 | |
| 10 | ## Description |
| 11 | The `konflux:application` command to manage Konflux application. |
| 12 | |
| 13 | This command helps you: |
| 14 | - List all components in the application |
| 15 | - Understand the status of the components in the application - last build, snapshots, releases |
| 16 | |
| 17 | ## Implementation |
| 18 | |
| 19 | ### Subcommand: status |
| 20 | |
| 21 | The command performs the following steps: |
| 22 | |
| 23 | 1. **Prerequisites Check**: |
| 24 | - Verify `oc` CLI is installed: `which oc` |
| 25 | - Verify cluster access: `oc whoami` |
| 26 | - If not installed or not authenticated, provide clear instructions |
| 27 | - Verify `jq` CLI is installed: `which jq` |
| 28 | - Verify `git` CLI is installed: `which git` |
| 29 | - Verify the current directory is a Git repository: `git remote -v` |
| 30 | |
| 31 | 2. **Parse Arguments**: |
| 32 | - `application`: Application name (required) |
| 33 | |
| 34 | 3. **List components that belong to the application**: |
| 35 | - Get components |
| 36 | ```bash |
| 37 | kubeclt get component -o yaml | jq '.items[] | select(.spec.application=="{application}") |
| 38 | ``` |
| 39 | - The application name is provided in `.spec.application` |
| 40 | - The component name is provided in `.spec.componentName` |
| 41 | - The Git repository URL is provided in `.spec.source.git.url` |
| 42 | - The commit SHA is provided in `.status.lastBuiltCommit` |
| 43 | |
| 44 | 4. **Show status for each Konflux component**: |
| 45 | - Run the following command to get status of each Konflux component from the application |
| 46 | ```bash |
| 47 | /konflux:component status {component} |
| 48 | ``` |
| 49 | |
| 50 | |
| 51 | ## Return Value |
| 52 | - **status**: Table of all components that belong to the provided application |
| 53 | |
| 54 | ## Examples |
| 55 | |
| 56 | 1. **Get status all components of the otel-main application**: |
| 57 | ```bash |
| 58 | /konflux:application status otel-main |
| 59 | ``` |
| 60 | |
| 61 | ## Arguments |
| 62 | |
| 63 | ### status |
| 64 | |
| 65 | - **application** (required): Name of the Konflux application |
| 66 | |
| 67 | ## Troubleshooting |
| 68 | |
| 69 | |
| 70 | ## Related Commands |
| 71 | |
| 72 | * `/konflux:component status <component>` - Show component status |
| 73 | * `/konflux:component build <components> [--wait <duration>] [--wait-release <duration>] [--nudge]` - Trigger component build |
| 74 | |
| 75 | ## Additional Resources |
| 76 | |
| 77 | - [Konflux upstream documentation](https://konflux-ci.dev/docs/) |
| 78 | - [Konflux architecture documentation](https://github.com/konflux-ci/architecture) |