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: create or update nodeinfo crd at cns startup for multitenancy #2545

Merged
merged 3 commits into from Jan 25, 2024

Conversation

thatmattlong
Copy link
Contributor

Reason for Change:
CNS will write the vm unique id to the nodeinfo crd (or update it, if one already exists) for the node at startup if swift v2 is enabled. This is required because we can't reliably read the vm unique id from the node.Status.NodeInfo.SystemUniqueID property, as it can be reported by kubelet/cadvisor with the wrong endianess.

Requirements:

Notes:

@thatmattlong thatmattlong added cns Related to CNS. swift-v2 labels Jan 25, 2024
@thatmattlong thatmattlong requested review from a team as code owners January 25, 2024 01:34
cns/service/main.go Outdated Show resolved Hide resolved
aggarwal0009
aggarwal0009 previously approved these changes Jan 25, 2024
Copy link
Contributor

@aggarwal0009 aggarwal0009 left a comment

Choose a reason for hiding this comment

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

LGTM

miguelgoms
miguelgoms previously approved these changes Jan 25, 2024
@thatmattlong thatmattlong added this pull request to the merge queue Jan 25, 2024
Merged via the queue into master with commit 1fc2ba0 Jan 25, 2024
14 checks passed
@thatmattlong thatmattlong deleted the matlong/cns-write-nodeinfo-crd branch January 25, 2024 22:20
alam-tahmid pushed a commit that referenced this pull request Jan 26, 2024
…2545)

* feat: create or update nodeinfo crd at cns startup for multitenancy

* fix: spelling on variable name nodeInfoErr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS. swift-v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants