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

Fix elb tagging #6703

Merged
merged 2 commits into from
Mar 29, 2019
Merged

Fix elb tagging #6703

merged 2 commits into from
Mar 29, 2019

Conversation

mikesplain
Copy link
Contributor

@mikesplain mikesplain commented Mar 29, 2019

Turns out we weren't tagging quite right, also needed to add a removal function.

To note, this also adds a new tag to existing elbs since we're now using b.Cluster.Spec.CloudLabels to generate the elb tags:

"kubernetes.io/cluster/clustername.example.com" = "owned"

I don't believe this should have any negative effects.

Fixes: #6646, #2048

Since this was included in 1.12 and has some weird effects, I think we should cherry-pick it in.

@mikesplain mikesplain added this to the 1.12 milestone Mar 29, 2019
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 29, 2019
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 29, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikesplain

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 Mar 29, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 29, 2019
@mikesplain

This comment has been minimized.

@mikesplain mikesplain changed the title Fix elb tagging WIP Fix elb tagging Mar 29, 2019
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2019
@mikesplain mikesplain changed the title WIP Fix elb tagging Fix elb tagging Mar 29, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 29, 2019
@mikesplain
Copy link
Contributor Author

/assign @chrisz100
/assign @justinsb

Copy link
Contributor

@chrisz100 chrisz100 left a comment

Choose a reason for hiding this comment

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

/lgtm

Loving the test coverage. Something we should work on some time too...

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 29, 2019
@k8s-ci-robot k8s-ci-robot merged commit 59c8dca into kubernetes:master Mar 29, 2019
k8s-ci-robot added a commit that referenced this pull request Mar 29, 2019
…03-origin-release-1.12

Automated cherry pick of #6703: Fix tagging and remove tagging elbs
@mikesplain mikesplain deleted the fix_elb_tagging branch April 2, 2019 01:42
@amadav
Copy link

amadav commented Jan 11, 2020

Quick question on the tags. The tagging standards on ELB seem to be more restricted than other services limiting keys/values to be complaint of the pattern "^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$" Would it be a good idea to validate/handle them here?

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. blocks-next cherry-pick 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. 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.

None yet

5 participants