-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ci: add gke workflow #15416
ci: add gke workflow #15416
Conversation
ebec3df
to
151a164
Compare
151a164
to
29c92ef
Compare
29c92ef
to
d7cb51d
Compare
Test run that seems to be successful: https://github.com/cilium/cilium/pull/15421/checks?check_run_id=2168532614 (on the PR that has the same code, but EDIT: the test run I linked to above failed 2 connectivity tests with encrypted Cilium install. Will investigate tomorrow. |
d7cb51d
to
85c162b
Compare
This is an adapted workflow from cilium-cli repo Signed-off-by: Maciej Kwiek <maciej@isovalent.com>
85c162b
to
58d52a3
Compare
- name: Create GKE cluster | ||
run: | | ||
gcloud container clusters create ${{ env.clusterName }} \ | ||
--preemptible \ |
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'll be curious whether --preemptible
has any impact on CI stability. Hopefully no impact.
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.
Not sure TBH. We will only know if we run it for a bit and get data.
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 will have some impact and we can always just re-run, but yea, from my testing the clusters are sufficiently short-lived that it basically never is an issue. I suppose we'll have to see how it performs for real.
This workflow has been migrated from `cilium-cli` as part of the CI 3.0 initiative, and adapted based on the previous migration made for GKE. See #15416 and #15482 for more details on the structure and adaptations made. Triggers: - `eks.yaml` is triggered automatically when a comment starting with `ci-eks` is made on an PR. In this case, a GitHub status check is manually registered for the PR SHA commit, and will show up in the PR status checks with a link to the workflow run. - `eks.yaml` is also triggered automatically on merge to `master`. In this case a GitHub status check is already automatically registered by the `push` event, so we skip manual status check registering. - A commented `pull_request` trigger is available for workflow developers: it may be uncommented and used in test PRs for testing the workflow using the `ci-run/gke` label (requires write privileges as it will only work for PRs from branches in the Cilium repo, not from fork). Of course it should be left commented for the real PR. Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
This workflow has been migrated from https://github.com/cilium/cilium-cli/ as part of the CI 3.0 initiative, and adapted based on the previous migration made for GKE. See #15416 and #15482 for more details on the structure and adaptations made. Triggers: - `aks.yaml` is triggered automatically when a comment starting with `ci-aks` is made on an PR. In this case, a GitHub status check is manually registered for the PR SHA commit, and will show up in the PR status checks with a link to the workflow run. - `aks.yaml` is also triggered automatically on merge to `master`. In this case a GitHub status check is already automatically registered by the `push` event, so we skip manual status check registering. - A commented `pull_request` trigger is available for workflow developers: it may be uncommented and used in test PRs for testing the workflow using the `ci-run/gke` label (requires write privileges as it will only work for PRs from branches in the Cilium repo, not from fork). Of course it should be left commented for the real PR. Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
This is an adapted workflow from cilium-cli repo
note - actual gke runs are running in #15421 to actually test these changes, but we want to use pull_request_target here so this PR is actually going to get merged after #15421 passes and reviews are in