Skip to content

Commit

Permalink
Merge branch 'mvp_demo' into vpa-poc
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhar316 authored Nov 25, 2024
2 parents da9b075 + b9e71c4 commit ff1c875
Show file tree
Hide file tree
Showing 46 changed files with 1,942 additions and 1,111 deletions.
62 changes: 1 addition & 61 deletions .github/workflows/test-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,68 +13,8 @@ on:
workflow_dispatch:

jobs:
# This workflow contains two jobs called "build autotune" and "build crc"
build_autotune:
# The type of runner that the job will run on
runs-on: ubuntu-20.04

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup Minikube
uses: manusa/[email protected]
with:
minikube version: 'v1.16.0'
kubernetes version: 'v1.19.2'
- name: Build autotune
run: |
echo Build autotune
pr_number=${{ github.event.pull_request.number }}
echo "pr_number=${pr_number}" >> "$GITHUB_ENV"
./build.sh -i autotune_operator:pr_${pr_number}
docker images | grep autotune
- name: Check cluster info on minikube
run: |
kubectl cluster-info
kubectl get pods -n kube-system
- name: Install Prometheus on minikube
run: |
echo Install Prometheus on minikube
cd scripts
./prometheus_on_minikube.sh -as
- name: Deploy kruize in experiment mode
run: |
echo Deploy kruize in experiment mode
cp ./manifests/autotune/autotune-operator-deployment.yaml_template ./manifests/autotune/autotune-operator-deployment.yaml_template.old
sed -e "s/imagePullPolicy: Always/imagePullPolicy: IfNotPresent/g" ./manifests/autotune/autotune-operator-deployment.yaml_template.old > ./manifests/autotune/autotune-operator-deployment.yaml_template
echo "***************************************************************"
cat ./manifests/autotune/autotune-operator-deployment.yaml_template
echo "***************************************************************"
echo "PR_NUMBER = ${{ env.pr_number }}"
./deploy.sh -c minikube -i autotune_operator:pr_${{ env.pr_number }}
sleep 20
- name: Capture ffdc logs
if: always()
run: |
echo "Capturing ffdc logs"
./scripts/ffdc.sh -d ${GITHUB_WORKSPACE}
- name: Archive results
if: always()
run: |
cd ${GITHUB_WORKSPACE}
tar cvf autotune_results.tar kruize_*log.txt
- name: Upload results
if: always()
uses: actions/upload-artifact@v3
with:
name: autotune-results
path: ./autotune_results.tar
retention-days: 2


# This workflow builds the kruize image and runs an end-to-end test to validate the remote monitoring workflow
build_crc:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.autotune
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
##########################################################
# Build Docker Image
##########################################################
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 as mvnbuild-jdk21
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5 as mvnbuild-jdk21
ARG USER=autotune
ARG AUTOTUNE_HOME=/home/$USER

Expand Down Expand Up @@ -48,7 +48,7 @@ RUN jlink --strip-debug --compress 2 --no-header-files --no-man-pages --module-p
# Runtime Docker Image
##########################################################
# Use ubi-minimal as the base image
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5

ARG AUTOTUNE_VERSION
ARG USER=autotune
Expand Down
Loading

0 comments on commit ff1c875

Please sign in to comment.