Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically build the operator in CI #8

Merged
merged 2 commits into from
Jul 23, 2019
Merged
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
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