-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add CI script to deploy published releases #1837
Conversation
/retest |
/test images |
/retest |
How is this going to be set up with CI? https://github.com/scylladb/scylla-operator/blob/master/hack/.ci/run-e2e-gke.sh uses |
this can't be used by presubmits by definition as their merged git shas are not published - this is only for published releases |
I know, but the question was about how is this going to be integrated with CI, pointing at whether this PR is potentially missing any adjustments. |
This will be used only by new periodics based on already published images (we don't have these periodics yet). |
added the extra presubmit in https://github.com/scylladb/scylla-operator-release/pull/157 |
/retest |
Looks like there's a missing bracket in CI test script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
please fix CI script
/hold
/retest |
needs a fix |
https://github.com/scylladb/scylla-operator-release/pull/168 has landed |
cluster didn't spin up in time |
oh, I've tested this but seems like it depends on |
(this need more work on artifact collection and specifying nodeconfig on CI side) |
done and fixed the script + CI setup - ready for a second round of review, thx |
# Wait for cert-manager crd and webhooks | ||
kubectl wait --for condition=established --timeout=60s crd/certificates.cert-manager.io crd/issuers.cert-manager.io | ||
for d in cert-manager{,-cainjector,-webhook}; do | ||
kubectl -n=cert-manager rollout status --timeout=5m "deployment.apps/${d}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing wait-for-object-creation from ci-deploy:
scylla-operator/hack/ci-deploy.sh
Line 48 in b7ca9a4
wait-for-object-creation cert-manager deployment.apps/"${d}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be needed, I don't think kubectl
hits the watch cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be removed from the other script then? (not in this pr)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a tracker for this? Even if it's in the backlog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rzetelskik please have a look at the comment replies, I'd like to land this and unblock your arm64 PR |
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/assign zimnx
in case you want to have a second look at it, it changed since your review. Otherwise feel free to remove the hold.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit. Feel free to cancel hold even without applying, i'm fine with having both options.
/lgtm
/hold
wait-for-object-creation scylla-manager statefulset.apps/scylla-manager-cluster-manager-dc-manager-rack | ||
kubectl -n=scylla-manager rollout status --timeout=5m statefulset.apps/scylla-manager-cluster-manager-dc-manager-rack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these could be replaced with waiting for our three aggregated conditions on ScyllaCluster without hardcoding names of Operator managed resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point but it's in ci-deploy.sh as well, I'll send a followup.
/hold cancel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rzetelskik, tnozicka, zimnx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of your changes:
This script will be used in periodics to test our published images. It essentially codifies what needs to be done to deploy a particular scylla-operator version. Some action could be simplified by restructuring manifest but it's out of the scope of this PR. Eventually, we should fix this and possibly have some smarter templating / publish manifests into releases with the replaced image. So take this PR as a start with what we have now, not where it should end.
Which issue is resolved by this Pull Request:
Resolves #1936
Requires