k8s.io icon indicating copy to clipboard operation
k8s.io copied to clipboard

ensure prow-build can operate secret manager secrets

Open dargudear-google opened this issue 1 year ago • 9 comments
trafficstars

dargudear-google avatar Oct 16 '24 11:10 dargudear-google

Welcome @dargudear-google!

It looks like this is your first PR to kubernetes/k8s.io 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/k8s.io has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Oct 16 '24 11:10 k8s-ci-robot

Hi @dargudear-google. 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 avatar Oct 16 '24 11:10 k8s-ci-robot

/ok-to-test

ameukam avatar Oct 28 '24 12:10 ameukam

/approve /hold

Until we figure out how to do properly cleanup secrets with boskos.

ameukam avatar Oct 28 '24 14:10 ameukam

/approve /hold

Until we figure out how to do properly cleanup secrets with boskos.

can't we use https://github.com/kubernetes/test-infra/pull/33669/files ?

dargudear-google avatar Oct 28 '24 15:10 dargudear-google

/approve /hold Until we figure out how to do properly cleanup secrets with boskos.

can't we use kubernetes/test-infra#33669 (files) ?

AFAIK the janitor is now located here: https://github.com/kubernetes-sigs/boskos/tree/master/cmd/janitor. Not sure which one is used. cc @BenTheElder

ameukam avatar Oct 28 '24 15:10 ameukam

/approve /hold Until we figure out how to do properly cleanup secrets with boskos.

can't we use kubernetes/test-infra#33669 (files) ?

AFAIK the janitor is now located here: https://github.com/kubernetes-sigs/boskos/tree/master/cmd/janitor. Not sure which one is used. cc @BenTheElder

May be I'll make one more PR ready for https://github.com/kubernetes-sigs/boskos/tree/master/cmd/janitor. We can submit both the PRs.

dargudear-google avatar Oct 28 '24 15:10 dargudear-google

Not sure which one is used. cc @BenTheElder

I'm not up to speed on the boskos deployments either, not since the migration, dims and mahamed have been taking care of boskos for a while now. Should catch back up but haven't yet ...

BenTheElder avatar Oct 28 '24 16:10 BenTheElder

Not sure which one is used. cc @BenTheElder

I'm not up to speed on the boskos deployments either, not since the migration, dims and mahamed have been taking care of boskos for a while now. Should catch back up but haven't yet ...

@dims @ameukam Do we know which one to use ?

dargudear-google avatar Nov 13 '24 06:11 dargudear-google

I have created one PR for other repo also https://github.com/kubernetes-sigs/boskos/pull/208.

dargudear-google avatar Nov 13 '24 06:11 dargudear-google

https://github.com/kubernetes-sigs/boskos/pull/208 has been merged.

dargudear-google avatar Dec 02 '24 09:12 dargudear-google

Hi @ameukam , I have a query.

with the existing permissions, I am able to create the cluster using gcloud container clusters create on boskos project but not able to create clusterrole in the created cluster. Getting below error

"[email protected]" cannot create resource "clusterroles" in API group \
"rbac.authorization.k8s.io" at the cluster scope: requires one of ["container.clusterRoles.create"] permission(s).

Can I add one additional role as container.clusterAdmin ?

dargudear-google avatar Dec 06 '24 19:12 dargudear-google

@dargudear-google why do we need a ClusterRole ? BTW this is on hold until the 1.32 release and the lift of code thaw.

ameukam avatar Dec 06 '24 20:12 ameukam

The prow job executes e2e tests, which involves installing csi driver which requires some clusterroles to be created. I think for now, I can use kind cluster in tests and we can hold on clusterrole.

On the 1.32 release hold, how long do we need to wait ?

dargudear-google avatar Dec 09 '24 04:12 dargudear-google

If 1.32 is not delayed, it's safe to assume we can merge this next week or early January.

ameukam avatar Dec 09 '24 11:12 ameukam

/lgtm

ameukam avatar Dec 12 '24 09:12 ameukam

can we remove /hold label from the PR ?

dargudear-google avatar Dec 12 '24 09:12 dargudear-google

can we remove /hold label from the PR ?

I'll leave this to @BenTheElder

ameukam avatar Dec 12 '24 09:12 ameukam

I need someone to coordinate this with deploying it and with rolling out the new boskos and watching for if it beeaks, that will have to be one of @kubernetes/sig-k8s-infra-leads currently

I have to finish some things related to 1.32 before I'm OOO for most of the rest of the year, can anyone else pick this up? cc also @xmudrii

if not I'll try to work it in.

BenTheElder avatar Dec 12 '24 18:12 BenTheElder

@BenTheElder I can pick this up and give it a try. I'll get back to this later today.

xmudrii avatar Dec 16 '24 11:12 xmudrii

@xmudrii Can you please take a look at this ?

dargudear-google avatar Dec 30 '24 12:12 dargudear-google

@dargudear-google Sorry for such a long delay! It took me quite a while to get all the needed permissions and figure out how everything exactly works here. I'm OOO due to holidays at the moment, and I'll be back on Friday. I'll be more than happy to tackle this as soon as I'm back on Friday if that's okay!

xmudrii avatar Dec 31 '24 14:12 xmudrii

We deployed the latest Boskos version today via https://github.com/kubernetes/k8s.io/pull/7585 and everything seems mostly fine so far. We have an issue with one of resources, but other resources are getting cleaned up properly.

I'd propose that we let Boskos run on the latest version until tomorrow, and if everything is fine by then, I'll go ahead and merge this PR.

xmudrii avatar Jan 06 '25 17:01 xmudrii

/hold cancel

xmudrii avatar Jan 07 '25 10:01 xmudrii

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ameukam, dargudear-google, xmudrii

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 avatar Jan 07 '25 10:01 k8s-ci-robot

The change has been fully rolled out to all boskos accounts. 🎉

xmudrii avatar Jan 09 '25 09:01 xmudrii