Skip to content

Conversation

@serngawy
Copy link
Contributor

Fix issue #5715

What type of PR is this?
bug

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • includes emoji in title
  • adds unit tests
  • adds or updates e2e tests

Release note:

Fix create ROSANetwork with specifying the availabilityZones

Signed-off-by: serngawy <serngawy@gmail.com>
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 21, 2025
@k8s-ci-robot k8s-ci-robot added needs-priority size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 21, 2025
@serngawy
Copy link
Contributor Author

/cherry-pick main

@k8s-infra-cherrypick-robot

@serngawy: once the present PR merges, I will cherry-pick it on top of main in a new PR and assign it to you.

In response to this:

/cherry-pick main

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 kubernetes-sigs/prow repository.

@damdo
Copy link
Member

damdo commented Oct 23, 2025

@serngawy We normally merge it on main first and then backport it.
Would you be able to open on there? TY

Copy link
Contributor

@AndiDog AndiDog left a comment

Choose a reason for hiding this comment

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

/lgtm

(but please fix the target branch as mentioned above)

for i, zone := range rosaNetScope.ROSANetwork.Spec.AvailabilityZones {
cfParams[fmt.Sprintf("AZ%d", i)] = zone
for idx, zone := range rosaNetScope.ROSANetwork.Spec.AvailabilityZones {
cfParams[fmt.Sprintf("AZ%d", (idx+1))] = zone
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a breaking change – leaving that to you to decide

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually this is fixing the bug, the CF template expecting AZ1, AZ2, ...etc AND we were passing AZ0 here

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 23, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 1698879cda4144b79be4af03b77326ede4f2fa6b

@serngawy
Copy link
Contributor Author

@serngawy We normally merge it on main first and then backport it. Would you be able to open on there? TY

sure, I tried to set target to main but rebase failed (most likely cherry-pick will fail), so I did rebase locally and pushed PR to main here #5721

@AndiDog
Copy link
Contributor

AndiDog commented Oct 23, 2025

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AndiDog

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 23, 2025
@k8s-ci-robot k8s-ci-robot merged commit 8fa5d56 into kubernetes-sigs:release-2.9 Oct 23, 2025
15 checks passed
@k8s-infra-cherrypick-robot

@serngawy: new pull request could not be created: failed to create pull request against kubernetes-sigs/cluster-api-provider-aws#main from head k8s-infra-cherrypick-robot:cherry-pick-5718-to-main: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between kubernetes-sigs:main and k8s-infra-cherrypick-robot:cherry-pick-5718-to-main"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"}

In response to this:

/cherry-pick main

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 kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants