Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-1493

Create Claude command for automated Konflux Tekton task updates

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Create a reusable Claude command that automates the process of updating outdated Konflux Tekton tasks based on enterprise contract verification logs.

      Background

      The manual process of updating Konflux Tekton tasks involves:

      • Parsing enterprise contract verification logs
      • Mapping SHA256 digests to proper version tags using container registry tools
      • Checking migration notes for breaking changes
      • Updating multiple Tekton pipeline YAML files
      • Ensuring consistency across all pipeline files

      This process is time-consuming, error-prone, and needs to be repeated regularly as tasks become outdated.

      Proposed Solution

      Create a Claude command /update-konflux-tasks that automates the entire workflow:

      Command Features:

      • Takes enterprise contract log file as input parameter
      • Automatically parses outdated task warnings
      • Uses skopeo to map digests to version tags
      • Checks migration documentation for breaking changes
      • Updates all Tekton pipeline files consistently
      • Provides comprehensive summary of changes

      Safety Features:

      • Preserves version tag format exactly
      • Only updates konflux-ci/tekton-catalog tasks
      • Checks migration notes for version bumps
      • Reports breaking changes before applying
      • Validates all updates before completion

      Benefits:

      • Reduces 30+ minute manual process to single command
      • Eliminates human error in version mapping
      • Standardizes update process across team
      • Built-in safety checks for breaking changes
      • Clear audit trail of all changes made

      Implementation

      The command will consist of:

      • .claude/commands/update-konflux-tasks.md - Documentation and usage guide
      • .claude/commands/update-konflux-tasks.claude - Command implementation

      Acceptance Criteria

      • [ ] Command successfully parses enterprise contract logs
      • [ ] Automatically maps SHA256 digests to correct version tags
      • [ ] Checks migration notes for version bumps
      • [ ] Updates all 7 Tekton pipeline files correctly
      • [ ] Provides clear summary of changes made
      • [ ] Includes proper error handling and validation
      • [ ] Documentation covers usage, requirements, and examples

      Related Work

      This command codifies the manual process used to resolve CNTRLPLANE-1491.

              asegurap1@redhat.com Antoni Segura Puimedon
              asegurap1@redhat.com Antoni Segura Puimedon
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: