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

dra: auto convert resourceclaim to multus annotions #2

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

cyclinder
Copy link
Collaborator

dra: auto convert resourceclaim to multus annotions

@cyclinder cyclinder force-pushed the dra/annotations2 branch 4 times, most recently from 009c60c to bc3b947 Compare June 3, 2024 10:20
hack/build-go.sh Outdated
@@ -19,7 +19,7 @@ if [ -z "$VERSION" ]; then
fi
set -e
fi
DATE=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" --iso-8601=seconds)
DATE="1234"

Choose a reason for hiding this comment

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

1234 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just for local testing on mac

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

revert

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

revert

@@ -24,7 +24,9 @@ import (
"strings"
Copy link

@weizhoublue weizhoublue Jun 6, 2024

Choose a reason for hiding this comment

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

it possibly need some declaration for changing the original code, owing to license issue
or else, it could add a new file for the new code in the module with entirely new license claim

@@ -75,7 +77,7 @@ func saveScratchNetConf(containerID, dataDir string, netconf []byte) error {

path := filepath.Join(dataDir, containerID)

err := ioutil.WriteFile(path, netconf, 0600)
err := os.WriteFile(path, netconf, 0600)

Choose a reason for hiding this comment

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

does it matter ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have bump Golang version to 1.22, and the ioutil package has been marked deprecated state,

pkg/multus/multus.go Outdated Show resolved Hide resolved
pkg/multus/multus.go Outdated Show resolved Hide resolved
@weizhoublue
Copy link

add unite test

@@ -0,0 +1,59 @@
package spiderpool

Choose a reason for hiding this comment

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

license

@cyclinder cyclinder merged commit 9ba5701 into release-v3 Jun 21, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants