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

Rename iscsi to iSCSI #260

Merged

Conversation

alexander-ding
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change

/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
Improve naming consistency and adhere to Go best practices (using all caps when the name contains acronyms).

Which issue(s) this PR fixes:

Fixes #248

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Deferring release notes till version bump.

/cc @mauriciopoppe

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 18, 2022
@@ -30,12 +30,12 @@ Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\iSCSI Target" -Name AllowLoopBa
Restart-Service WinTarget
`

type IscsiSetupConfig struct {
type iSCSISetupConfig struct {
Copy link
Member

Choose a reason for hiding this comment

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

I think this is different in Go, if it starts with uppercase then it's not exported in the package, with this change this becomes private to the package only, is this intended and ok?

Copy link
Member

Choose a reason for hiding this comment

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

I checked that this is just for the tests so I think it's ok to make it private (even better than what it's now)

Copy link
Member

@mauriciopoppe mauriciopoppe left a comment

Choose a reason for hiding this comment

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

I saw this in the logs:

=== RUN   TestISCSI
    utils.go:31: Skipping test
--- SKIP: TestISCSI (0.00s)

I don't think I ever saw these tests running (even before CSI Proxy became GA), looks like this function func shouldRunISCSITests() bool controls running the tests.

Before merging this, would it be possible to enable these tests too?

@alexander-ding
Copy link
Contributor Author

I saw this in the logs:

=== RUN   TestISCSI
    utils.go:31: Skipping test
--- SKIP: TestISCSI (0.00s)

I don't think I ever saw these tests running (even before CSI Proxy became GA), looks like this function func shouldRunISCSITests() bool controls running the tests.

Before merging this, would it be possible to enable these tests too?

I thought the iSCSI tests leave side effects and therefore should be run on clean VMs, so they are controlled by an environment variable. What do we want to do here? We could enable this on GitHub actions easily, but the Prow job runs by executing scripts/run-integration.sh, which unfortunately is also the same script used for local development. This would involve some amount of refactoring that's probably best done in a separate PR. I'll open an issue to track.

@alexander-ding
Copy link
Contributor Author

alexander-ding commented Oct 19, 2022

Sorry about the force-push. Accidentally pushed another commit onto this branch that is not meant for this PR. Had to reset that with a force-push.

@alexander-ding alexander-ding mentioned this pull request Oct 19, 2022
@mauriciopoppe
Copy link
Member

These tests are for an alpha version and I didn't get to see them running, it's good to track it in #263 and someone with experience with this API group can help moving it to beta.

/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 Oct 19, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexander-ding, mauriciopoppe

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Oct 19, 2022
@mauriciopoppe
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 19, 2022
@k8s-ci-robot k8s-ci-robot merged commit bc1eb23 into kubernetes-csi:master Oct 19, 2022
TerryHowe added a commit to TerryHowe/csi-proxy that referenced this pull request Dec 9, 2024
98f2307 Merge pull request kubernetes-csi#260 from TerryHowe/update-csi-driver-version
e9d8712 Merge pull request kubernetes-csi#259 from stmcginnis/deprecated-kind-kube-root
faf79ff Remove --kube-root deprecated kind argument
734c2b9 Merge pull request kubernetes-csi#265 from Rakshith-R/consider-main-branch
f95c855 Merge pull request kubernetes-csi#262 from huww98/golang-toolchain
3c8d966 Treat main branch as equivalent to master branch
e31de52 Merge pull request kubernetes-csi#261 from huww98/golang
fd153a9 Bump golang to 1.23.1
a8b3d05 pull-test.sh: fix "git subtree pull" errors
6b05f0f use new GOTOOLCHAIN env to manage go version
18b6ac6 chore: update CSI driver version to 1.15

git-subtree-dir: release-tools
git-subtree-split: 98f23071d946dd3de3188a7e1f84679067003162
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/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

Rename Iscsi to iSCSI throughout the codebase
3 participants