Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ base_images:
name: "4.22"
namespace: ocp
tag: manila-csi-driver-operator-test
nested-podman:
name: nested-podman
namespace: ci
tag: latest
openstack-cinder-csi-driver-operator-test:
name: "4.22"
namespace: ocp
Expand All @@ -32,6 +36,31 @@ images:
to: hypershift
- dockerfile_path: Dockerfile.e2e
to: hypershift-tests
- dockerfile_literal: |
FROM quay.io/openshift/ci:claude-ai-helpers as claude-tools
FROM nested-podman
USER root
# Install GitHub CLI
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo && \
dnf install -y gh python3 python3-pip git jq openssl && \
dnf clean all
# Copy Claude CLI runtime and config from ai-helpers image
COPY --from=claude-tools /home/claude/.local/ /home/claude/.local/
COPY --from=claude-tools /home/claude/.claude/ /home/claude/.claude/
COPY --from=claude-tools /opt/ai-helpers /opt/ai-helpers
# Ensure OpenShift random UID compatibility (root group)
RUN chown -R 1000:0 /home/claude && chmod -R g+rwx /home/claude && \
chown -R 1000:0 /opt/ai-helpers && chmod -R g+rwx /opt/ai-helpers
ENV PATH="/home/claude/.local/bin:${PATH}"
ENV CLAUDE_CONFIG_DIR="/home/claude/.claude"
RUN claude --version && gh --version && podman --version
from: nested-podman
inputs:
claude-ai-helpers:
as:
- quay.io/openshift/ci:claude-ai-helpers
to: claude-ai-helpers-nested-podman
- dockerfile_literal: |
FROM base
RUN dnf install -y python3-pip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ git clone https://github.com/openshift-eng/ai-helpers /tmp/ai-helpers
echo "Cloning HyperShift repository..."
git clone https://github.com/hypershift-community/hypershift /tmp/hypershift

# Configure management cluster kubeconfig
export KUBECONFIG=/var/run/agent-management-kubeconfig/kubeconfig
echo "=== Validating management cluster access ==="
oc whoami
oc get nodes
echo "=== Management cluster access validated ==="

# Build HyperShift operator image
echo "=== Building HyperShift operator image ==="
podman build -f /tmp/hypershift/Dockerfile --platform linux/amd64 -t quay.io/agarcial/ho:test /tmp/hypershift
echo "=== HyperShift operator image built successfully ==="
exit 0

# Copy jira-solve command from ai-helpers to hypershift
echo "Setting up Claude commands..."
mkdir -p /tmp/hypershift/.claude/commands
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

ref:
as: hypershift-jira-agent-process
from: claude-ai-helpers
from: claude-ai-helpers-nested-podman
nested_podman: true
cli: latest
commands: hypershift-jira-agent-process-commands.sh
env:
- name: CLAUDE_CODE_USE_VERTEX
Expand Down Expand Up @@ -52,6 +54,9 @@ ref:
- namespace: test-credentials
name: hypershift-team-claude-prow
mount_path: /var/run/claude-code-service-account
- namespace: test-credentials
name: agent-management-kubeconfig
mount_path: /var/run/agent-management-kubeconfig
documentation: |-
Process step for the HyperShift Jira agent periodic job.
This step runs a four-phase pipeline for each issue:
Expand Down