OCPBUGS-88036: Add e2e test verifying CAPI Azure VM ownership tag#595
OCPBUGS-88036: Add e2e test verifying CAPI Azure VM ownership tag#595matzew wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@matzew: This pull request references Jira Issue OCPBUGS-88036, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThis PR adds a helper that fetches the AzureCluster and asserts its AdditionalTags contains ChangesAzure Cluster Ownership Tag Verification
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@matzew: This pull request references Jira Issue OCPBUGS-88036, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@e2e/azure_helpers.go`:
- Around line 40-44: The test builds expectedTagKey incorrectly using a dot;
change the construction of expectedTagKey to use an underscore so it matches
CAPZ's tag helper (NameKubernetesAzureCloudProviderPrefix /
ClusterAzureCloudProviderTagKey). Concretely, update the expectedTagKey
expression (where expectedTagKey is set from infraName) to produce
"kubernetes.io_cluster_<infraName>" and keep the assertions against
azureCluster.Spec.AzureClusterClassSpec.AdditionalTags and HaveKeyWithValue
as-is so the key lookup succeeds.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 9147a505-efdd-4299-be2b-2e23269b22ff
📒 Files selected for processing (2)
e2e/azure_helpers.goe2e/azure_test.go
Verify that the AzureCluster has the kubernetes.io_cluster.<infraID>=owned tag in AdditionalTags, which CAPI propagates to all managed resources. The installer's destroy logic uses this tag to find and clean up CAPI-created Azure resources. Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
c319ef3 to
3cd9e0b
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@matzew: This pull request references Jira Issue OCPBUGS-88036, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/lgtm |
|
Scheduling tests matching the |
|
@matzew: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Verify that the AzureCluster object carries the
kubernetes.io/cluster/=owned tag that openshift-install destroy cluster relies on to identify and clean up cloud resources.
CAPZ propagates AdditionalTags from the AzureCluster to all managed resources. This test confirms the tag is present without any explicit code changes.
Summary by CodeRabbit