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

test: Add Calico Inbound and Outbound policies to LKE nodes for E2E #525

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

ykim-akamai
Copy link
Contributor

@ykim-akamai ykim-akamai commented Jun 12, 2024

📝 Description

A new script, lke_calico_rules_e2e.sh, has been added and is called in the E2E workflow file after the Run the integration test suite step in e2e-suite.yml

Key Points:

  • kubectl and calicoctl binaries are required as pre-req which are downloed in the e2e worflow file
  • The script retrieves all LKE clusters in the test account and applies Calico rules to the corresponding nodes. If no clusters exist, no action is taken. In most cases, clusters are cleaned and deleted properly after test execution
  • Due to the delay in the availability of LKE cluster configurations and the provisioning times of node instances, it is challenging to apply Calico rules directly within the test framework. Therefore, the script is separated and executed independently in the workflow file

✔️ How to Test

Forked run - https://github.com/ykim-1/linodego/actions/runs/9491201493/job/26156141578

Forked run on PR - https://github.com/ykim-1/linodego/actions/runs/9491223844/job/26156204794
Note test failed but it was able to apply the calico rules

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@ykim-akamai ykim-akamai requested a review from a team as a code owner June 12, 2024 23:20
@ykim-akamai ykim-akamai requested review from lgarber-akamai and zliang-akamai and removed request for a team June 12, 2024 23:20
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Script tested in linode/linode-cli#619

@ykim-akamai ykim-akamai merged commit 0e39dca into linode:main Jun 17, 2024
4 checks passed
renovate bot referenced this pull request in anza-labs/lke-operator Jun 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/linode/linodego](https://github.com/linode/linodego) |
`v1.35.0` -> `v1.36.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flinode%2flinodego/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2flinode%2flinodego/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2flinode%2flinodego/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flinode%2flinodego/v1.35.0/v1.36.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>linode/linodego (github.com/linode/linodego)</summary>

###
[`v1.36.0`](https://github.com/linode/linodego/releases/tag/v1.36.0)

[Compare
Source](https://github.com/linode/linodego/compare/v1.35.0...v1.36.0)

<!-- Release notes generated using configuration in .github/release.yml
at main -->

#### What's Changed

##### ⚠️  Breaking Change

- Renamed capability consts by
[@&#8203;ErikZilber](https://github.com/ErikZilber) in
[https://github.com/linode/linodego/pull/529](https://github.com/linode/linodego/pull/529)

##### 🚀 New Features

- Project VM Placement by
[@&#8203;lgarber-akamai](https://github.com/lgarber-akamai) in
[https://github.com/linode/linodego/pull/521](https://github.com/linode/linodego/pull/521)
- Add event entities enums and actions VM Placement by
[@&#8203;lgarber-akamai](https://github.com/lgarber-akamai) in
[https://github.com/linode/linodego/pull/492](https://github.com/linode/linodego/pull/492)
- Expose `OnAfterResponse` middleware hook by
[@&#8203;tchinmai7](https://github.com/tchinmai7) in
[https://github.com/linode/linodego/pull/512](https://github.com/linode/linodego/pull/512)
- Add new tax_id_invalid event by
[@&#8203;jcallahan-akamai](https://github.com/jcallahan-akamai) in
[https://github.com/linode/linodego/pull/514](https://github.com/linode/linodego/pull/514)

##### 💡 Improvements

- Fix case in name for `Client.UnassignPlacementGroupLinodes(...)` by
[@&#8203;lgarber-akamai](https://github.com/lgarber-akamai) in
[https://github.com/linode/linodego/pull/496](https://github.com/linode/linodego/pull/496)

##### 🧪 Testing Improvements

- Add Cloud Firewall for integration tests by
[@&#8203;ykim-1](https://github.com/ykim-1) in
[https://github.com/linode/linodego/pull/515](https://github.com/linode/linodego/pull/515)
- Add Calico Inbound and Outbound policies to LKE nodes for E2E by
[@&#8203;ykim-1](https://github.com/ykim-1) in
[https://github.com/linode/linodego/pull/525](https://github.com/linode/linodego/pull/525)

##### 📖 Documentation

- Add warning for LKE control plane ACL by
[@&#8203;lgarber-akamai](https://github.com/lgarber-akamai) in
[https://github.com/linode/linodego/pull/523](https://github.com/linode/linodego/pull/523)
- Add documentation snippets for Placement Groups LA by
[@&#8203;lgarber-akamai](https://github.com/lgarber-akamai) in
[https://github.com/linode/linodego/pull/530](https://github.com/linode/linodego/pull/530)

##### 📦 Dependency Updates

- build(deps): bump golang.org/x/text from 0.15.0 to 0.16.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/linode/linodego/pull/518](https://github.com/linode/linodego/pull/518)
- build(deps): bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/linode/linodego/pull/519](https://github.com/linode/linodego/pull/519)
- build(deps): bump golang.org/x/net from 0.25.0 to 0.26.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/linode/linodego/pull/520](https://github.com/linode/linodego/pull/520)

#### New Contributors

- [@&#8203;tchinmai7](https://github.com/tchinmai7) made their first
contribution in
[https://github.com/linode/linodego/pull/512](https://github.com/linode/linodego/pull/512)
- [@&#8203;ErikZilber](https://github.com/ErikZilber) made their first
contribution in
[https://github.com/linode/linodego/pull/529](https://github.com/linode/linodego/pull/529)

**Full Changelog**:
linode/linodego@v1.35.0...v1.36.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/anza-labs/lke-operator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhcmVhL2RlcGVuZGVuY3kiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants