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

feat: add tagValueDelimiter parameter #2388

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

umagnus
Copy link
Contributor

@umagnus umagnus commented Jul 2, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

feat: add tag value delimieter parameter and allow tag values containing commas and equal sign
referring to issue #2323

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 2, 2024
@k8s-ci-robot k8s-ci-robot requested review from edreed and ZeroMagic July 2, 2024 08:14
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 2, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @umagnus. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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 the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 2, 2024
@feiskyer
Copy link
Member

feiskyer commented Jul 2, 2024

/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 2, 2024
@umagnus
Copy link
Contributor Author

umagnus commented Jul 3, 2024

/retest

3 similar comments
@umagnus
Copy link
Contributor Author

umagnus commented Jul 4, 2024

/retest

@umagnus
Copy link
Contributor Author

umagnus commented Jul 4, 2024

/retest

@umagnus
Copy link
Contributor Author

umagnus commented Jul 5, 2024

/retest

@andyzhangx andyzhangx removed the request for review from edreed July 7, 2024 14:15
@andyzhangx andyzhangx changed the title feat: add tag value delimieter parameter feat: add tagValueDelimiter parameter Jul 8, 2024
@@ -924,6 +924,7 @@ func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequ
location := d.cloud.Location

parameters := req.GetParameters()
tagValueDelimiter := ","
Copy link
Member

Choose a reason for hiding this comment

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

just define a var tagValueDelimiter, and then if it's empty, then func ConvertTagsToMap would treat as ,

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

@andyzhangx
Copy link
Member

@umagnus pls also squash all commits, thx

@andyzhangx
Copy link
Member

/retest

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jul 9, 2024

@umagnus: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-azuredisk-csi-driver-e2e-capz-windows-2019-hostprocess d58e00c link true /test pull-azuredisk-csi-driver-e2e-capz-windows-2019-hostprocess

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx, umagnus

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 9, 2024
@andyzhangx andyzhangx merged commit 02200fe into kubernetes-sigs:master Jul 9, 2024
23 of 25 checks passed
@andyzhangx
Copy link
Member

/cherrypick release-1.30

@andyzhangx
Copy link
Member

/cherrypick release-1.29

@k8s-infra-cherrypick-robot

@andyzhangx: new pull request created: #2396

In response to this:

/cherrypick release-1.30

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-infra-cherrypick-robot

@andyzhangx: #2388 failed to apply on top of branch "release-1.29":

Applying: add tag value delimiter
Using index info to reconstruct a base tree...
M	pkg/azureconstants/azure_constants.go
M	pkg/azuredisk/controllerserver.go
M	pkg/azuredisk/controllerserver_test.go
M	pkg/azuredisk/controllerserver_v2.go
M	pkg/azureutils/azure_disk_utils.go
M	test/e2e/testsuites/dynamically_provisioned_azuredisk_tag_tester.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/testsuites/dynamically_provisioned_azuredisk_tag_tester.go
Auto-merging pkg/azureutils/azure_disk_utils.go
Auto-merging pkg/azuredisk/controllerserver_v2.go
Auto-merging pkg/azuredisk/controllerserver_test.go
Auto-merging pkg/azuredisk/controllerserver.go
Auto-merging pkg/azureconstants/azure_constants.go
CONFLICT (content): Merge conflict in pkg/azureconstants/azure_constants.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 add tag value delimiter
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-1.29

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants