Skip to content

Commit

Permalink
Merge pull request #8 from mikedep333/auto-CI-build-operator
Browse files Browse the repository at this point in the history
Automatically build the operator in CI
  • Loading branch information
dkliban committed Jul 23, 2019
2 parents 65a9085 + c8b8166 commit eeb9494
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ install:
# non-sudo pip command.
- sudo pip install httpie
- .travis/k3s-install.sh
- sudo wget https://github.com/operator-framework/operator-sdk/releases/download/v0.9.0/operator-sdk-v0.9.0-x86_64-linux-gnu -O /usr/local/bin/operator-sdk
- sudo chmod +x /usr/local/bin/operator-sdk
script:
- sudo operator-sdk build quay.io/pulp/pulp-operator:latest
- sudo docker images
- sudo ./up.sh
- .travis/pulp-operator-check-and-wait.sh
- .travis/pulp_file-tests.sh
Expand Down
2 changes: 2 additions & 0 deletions .travis/pulp-operator-check-and-wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ for tries in {0..120}; do
echo "STATUS: Still waiting on pods to transitiion to running state."
echo "PODS:"
echo "$pods"
echo "DOCKER IMAGE CACHE:"
sudo docker images
fi
if [[ $tries -eq 120 ]]; then
echo "ERROR 3: Pods never all transitioned to Running state"
Expand Down
4 changes: 2 additions & 2 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ spec:
- /usr/local/bin/ao-logs
- /tmp/ansible-operator/runner
- stdout
image: "quay.io/pulp/pulp-operator:k3s-travis"
image: "quay.io/pulp/pulp-operator:latest"
imagePullPolicy: "Always"
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
name: runner
readOnly: true
- name: operator
image: "quay.io/pulp/pulp-operator:k3s-travis"
image: "quay.io/pulp/pulp-operator:latest"
imagePullPolicy: "Always"
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
Expand Down

0 comments on commit eeb9494

Please sign in to comment.