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

Adding preset to use Azure resources, moving 2022 master job to azure #32998

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

ritikaguptams
Copy link
Contributor

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/config Issues or PRs related to code in /config needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 16, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @ritikaguptams. 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.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/jobs area/provider/azure Issues or PRs related to azure provider sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/testing Categorizes an issue or PR as relevant to SIG Testing. sig/windows Categorizes an issue or PR as relevant to SIG Windows. labels Jul 16, 2024
@jsturtevant
Copy link
Contributor

/cc @nawazkh @jackfrancis

@jsturtevant
Copy link
Contributor

fyi @dtzar

@jsturtevant
Copy link
Contributor

@ritikaguptams can fix up our testing PR too?

- name: pull-e2e-capz-windows-2022-extension-community

@jsturtevant
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 Jul 16, 2024
@ritikaguptams ritikaguptams force-pushed the move-job-to-azure branch 4 times, most recently from 0c38e9c to bfab502 Compare July 16, 2024 23:40
interval: 3h
decorate: true
decoration_config:
timeout: 4h
labels:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-azure-cred-wi: "true"
preset-azure-community: "true"
preset-azure-anonymous-pull: "true" # Sets REGISTRY which is needed when building CCM/CNM images
Copy link
Contributor

Choose a reason for hiding this comment

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

we will need to remove this if we add Registry to the preset.

Copy link
Contributor

Choose a reason for hiding this comment

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

For windows we don't need it, but we might need to create a different preset for CAPZ which uses USE_LOCAL_KIND_REGISTRY which is in that preset

Copy link
Contributor

@jsturtevant jsturtevant Jul 16, 2024

Choose a reason for hiding this comment

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

@jackfrancis registry seems common to jobs but USE_LOCAL_KIND_REGISTRY doesn't. Should we create a new one or just roll USE_LOCAL_KIND_REGISTRY into the new capz preset (it doesn't hurt windows to have that set)

Copy link
Contributor

Choose a reason for hiding this comment

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

based on this

  - name: REGISTRY
    value: "capzcicommunity.azurecr.io"

yeah it seems like we should include USE_LOCAL_KIND_REGISTRY=false in the preset

Is that what you mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ritikaguptams ritikaguptams force-pushed the move-job-to-azure branch 3 times, most recently from a0b969f to 79c8df5 Compare July 17, 2024 16:20
@@ -485,7 +473,6 @@ presubmits:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-azure-cred-wi: "true"
preset-azure-anonymous-pull: "true" # Sets REGISTRY which is needed when building CCM/CNM images
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to be dropping this preset on this job yet.

interval: 3h
decorate: true
decoration_config:
timeout: 4h
labels:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-azure-cred-wi: "true"
preset-azure-anonymous-pull: "true" # Sets REGISTRY which is needed when building CCM/CNM images
preset-azure-community: "true"
preset-capz-windows-common: "true"
preset-capz-containerd-1-7-latest: "true"
preset-windows-private-registry-cred: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

This secret won't be in the new k8s-infra-prow-build. We should remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ritikaguptams ritikaguptams force-pushed the move-job-to-azure branch 2 times, most recently from af6d81c to 1bbbd55 Compare July 17, 2024 18:23
Signed-off-by: ritikaguptams <ritikagupta@microsoft.com>
preset-capz-windows-common: "true"
preset-capz-containerd-1-7-latest: "true"
preset-windows-private-registry-cred: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note this will break the test Kubernetes e2e suite.[It] [sig-node] Container Runtime blackbox test when running a container with a new image should be able to pull from private registry with secret [NodeConformance] we are tracking fixing this in kubernetes-sigs/windows-testing#446

@jsturtevant
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 17, 2024
@nawazkh
Copy link
Contributor

nawazkh commented Jul 17, 2024

Quite late to the party, thank you.
/lgtm

@jackfrancis
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, jsturtevant, ritikaguptams

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 Jul 17, 2024
@@ -259,7 +258,6 @@ periodics:
path_alias: sigs.k8s.io/cloud-provider-azure
workdir: false
spec:
serviceAccountName: prowjob-default-sa
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the reasoning behind dropping this? We dont need this anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

I understood we only needed this to "simulate" the community infra service account config, and once we migrated this is the configuration we will expect by default.

Copy link
Contributor

Choose a reason for hiding this comment

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

Its not needed in the community cluster, the default service account will work

@k8s-ci-robot k8s-ci-robot merged commit 70f90d7 into kubernetes:master Jul 17, 2024
7 checks passed
@k8s-ci-robot
Copy link
Contributor

@ritikaguptams: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

  • key cluster-api-provider-azure-presets.yaml using file config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presets.yaml
  • key release-master-windows-presubmits.yaml using file config/jobs/kubernetes-sigs/sig-windows/release-master-windows-presubmits.yaml
  • key release-master-windows.yaml using file config/jobs/kubernetes-sigs/sig-windows/release-master-windows.yaml

In 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 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. area/config Issues or PRs related to code in /config area/jobs area/provider/azure Issues or PRs related to azure provider 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. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/testing Categorizes an issue or PR as relevant to SIG Testing. sig/windows Categorizes an issue or PR as relevant to SIG Windows. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants