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

Automated cherry pick of #308: Add tagging controller configuration #334: Stop retrying failed workitem after a certain amount of #387: Fix issues in tagging controller #393

Conversation

saurav-agarwalla
Copy link
Contributor

Cherry pick of #308 #334 #387 on release-1.23.

#308: Add tagging controller configuration
#334: Stop retrying failed workitem after a certain amount of
#387: Fix issues in tagging controller

For details on the cherry pick process, see the cherry pick requests page.


@k8s-ci-robot k8s-ci-robot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 26, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @saurav-agarwalla. 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 26, 2022
@k8s-ci-robot k8s-ci-robot requested review from jaypipes and wongma7 May 26, 2022 13:50
nguyenkndinh and others added 2 commits May 26, 2022 10:00
add log

rearrange the controllers

remove debugging log

removed route controller

added a blank test file for the tagging controller

remove predefined tag

Refactoring based on recommendations

Sticking to the naming convention

address more comments on naming

Using ListNode to get nodes entering and leaving the cluster.

* Remove route controller again

* Print out clusterName for new nodes

* tag new nodes when it comes online

* only process a node once

* check taggNodes size

* add debugging

* use node name as key

* delete k,v from taggedNodes if node no longer exists

* log if delete is done

* Get a list of nodes and tag them if havent

* get instance IDs of the nodes that need tagging

* use MapToAWSInstanceID instead

* restored v1 aws

* restored from master

* tag instance with a random tag

* add klog

* tag and untag node resources

* Prepare for pr

* Initialize nodeMap

refactor

Add testing and controller config skeletons

Added tagging and flags mechanisms

Disabled the tagging controller by default

Updated test structure

Making the tests more robust

Renaming the maps in tagging controller

Refactoring names and remove debugging logs

Add failure test cases for when EC2 return error

adding details for --resources

* get user input for resources

* Add better testing for failures to add flags

* fix a small issue with --resources

* finalize the --resources

add in Copyright message

Using NodeInformer and Workqueue for tagging resources

Used workqueue for both tag and untag actions

Update docs/tagging_controller.md

Co-authored-by: Nicholas Turner <[email protected]>

Renamed fields in the tagging controller to be more user friendly

Added in a loop to make sure all messages are processed before shutting down

Added more logging

Added more testing

cosmetic change

use array instead of map for supported resources

Reworked the workqueue with workitem

Addressed comments

addressed verify-lint errors

addressed comments and verify-lint

address validate-lint error

missed a couple more lint errors

Updated doc to be clearer

Add TODOs for e2e testing and non-retryable workitem

Stop retrying failed workitem after a certain amount of retries Added metrics
…des to prevent retagging them again * Increase bucket size for latency metrics
@saurav-agarwalla saurav-agarwalla force-pushed the automated-cherry-pick-of-#308-#334-#387-upstream-release-1.23 branch from 580c009 to aa33407 Compare May 26, 2022 14:02
@saurav-agarwalla
Copy link
Contributor Author

/assign @hakman
/assign @nckturner

@hakman
Copy link
Member

hakman commented May 27, 2022

/triage accepted
/release-note-none
/ok-to-test

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 27, 2022
@nckturner
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 May 31, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nckturner

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 31, 2022
@k8s-ci-robot k8s-ci-robot merged commit 4cff2eb into kubernetes:release-1.23 May 31, 2022
@saurav-agarwalla saurav-agarwalla deleted the automated-cherry-pick-of-#308-#334-#387-upstream-release-1.23 branch June 22, 2022 14:13
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-kind Indicates a PR lacks a `kind/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants