fix: cleanup runtime default properties on first reconcile, fixes RHOAIENG-15033 #306
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test controller image build and deployment | |
on: | |
pull_request: | |
paths-ignore: | |
- 'LICENSE*' | |
- '**.gitignore' | |
- '**.md' | |
- '**.txt' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/dependabot.yml' | |
- 'docs/**' | |
env: | |
QUAY_IMG_REPO: model-registry-operator | |
PUSH_IMAGE: false | |
jobs: | |
build-and-test-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.13' | |
- name: Generate Tag | |
shell: bash | |
id: tags | |
run: | | |
commit_sha=${{ github.event.after }} | |
tag=main-${commit_sha:0:7} | |
echo "tag=${tag}" >> $GITHUB_OUTPUT | |
- name: Build Image | |
shell: bash | |
env: | |
IMG_VERSION: ${{ steps.tags.outputs.tag }} | |
IMG: "model-registry-operator:${{ steps.tags.outputs.tag }}" | |
run: | | |
make docker-build | |
- name: Start Kind Cluster | |
uses: helm/kind-action@v1.10.0 | |
- name: Load Local Test Image | |
env: | |
IMG_VERSION: ${{ steps.tags.outputs.tag }} | |
IMG: "model-registry-operator:${{ steps.tags.outputs.tag }}" | |
run: | | |
kind load docker-image -n chart-testing ${IMG} | |
- name: Deploy Operator Image | |
env: | |
IMG_VERSION: ${{ steps.tags.outputs.tag }} | |
IMG: "model-registry-operator:${{ steps.tags.outputs.tag }}" | |
run: | | |
make deploy | |
- name: Create Test Registry | |
run: | | |
kubectl apply -k config/samples/postgres/ | |
kubectl describe mr | |
- name: Wait for Test Registry Deployment | |
run: | | |
##debug | |
#kubectl describe pods | |
#kubectl logs -l name=model-registry-db || true | |
kubectl wait --for=condition=Available=true modelregistries/modelregistry-sample --timeout=5m |