Skip to content

Conversation

Swizzmaster
Copy link
Contributor

@Swizzmaster Swizzmaster commented May 21, 2025

Several periodic tests are failing due to the removal of the --cloud-provider flag
kubernetes/kubernetes#130161

Failing tests:
kubernetes/kubernetes#130849

Code change modeled after the removal of the flag from the api-server
1f6ea4f#diff-f81768b75ea2816be1479eac878f905b34b772f08c233164966f7fbe237d91b1

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 21, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @Swizzmaster. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@hakuna-matatah
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 21, 2025
@hakuna-matatah
Copy link
Contributor

It seems like some of the tests are failing, please look into them and fix it.

@@ -327,7 +327,9 @@ func (b *KubeletBuilder) buildSystemdEnvironmentFile(ctx context.Context, kubele
// We build this flag differently because it depends on CloudConfig, and to expose it directly
// would be a degree of freedom we don't have (we'd have to write the config to different files)
// We can always add this later if it is needed.
flags += " --cloud-config=" + InTreeCloudConfigFilePath
if b.IsKubernetesLT("1.33") {
flags = append(flags, fmt.Sprintf("--cloud-config=%s", InTreeCloudConfigFilePath))
Copy link
Contributor

@hakuna-matatah hakuna-matatah May 21, 2025

Choose a reason for hiding this comment

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

flags here is a string due to the return value from here

func BuildFlags(options interface{}) (string, error) {

You need a slice to append hence the tests are failing - https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kops/17412/pull-kops-build/1925033895468732416 .

Copy link
Contributor Author

@Swizzmaster Swizzmaster May 21, 2025

Choose a reason for hiding this comment

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

Yeah, I fixed that already the larger problem is this change breaks several tests.

FAIL: TestSecretBuilder (0.00s)
    kubelet_test.go:380: error loading model "tests/golden/minimal": unexpected error from mockedPopulateClusterSpec: completed cluster failed validation: [spec.kubelet.cloudProvider: Forbidden: Did not match cluster cloudProvider, spec.controlPlaneKubelet.cloudProvider: Forbidden: Did not match cluster cloudProvider]

I think I know what happening. testing it now

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, prolly you might have fixed few mins after comment was made ? as I was able to still comment on that code at that time.

Thanks for fixing it.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 21, 2025
@hakman
Copy link
Member

hakman commented May 21, 2025

/ok-to-test

@hakman
Copy link
Member

hakman commented May 21, 2025

@Swizzmaster Thank you for fixing this. Do you mind squashing the commits?

@Swizzmaster
Copy link
Contributor Author

@Swizzmaster Thank you for fixing this. Do you mind squashing the commits?

Absolutely, squashed it down.

Copy link
Member

@hakman hakman left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! 🚀

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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 May 21, 2025
@hakman
Copy link
Member

hakman commented May 21, 2025

/retest

@k8s-ci-robot k8s-ci-robot merged commit 737d621 into kubernetes:master May 21, 2025
26 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.32 milestone May 21, 2025
@rifelpet rifelpet modified the milestones: v1.32, v1.33 Jun 23, 2025
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. area/nodeup 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants