-
Notifications
You must be signed in to change notification settings - Fork 213
Consume post install static spec capabilities #744
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
Conversation
d9825a8 to
abafa60
Compare
lib/capability/capability.go
Outdated
| continue | ||
| } | ||
| known[capability] = struct{}{} | ||
| config.Status.Capabilities.KnownCapabilities = append(config.Status.Capabilities.KnownCapabilities, capability) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have reliable locking on this? With the status sync'er running in parallel, I'd expect at least something like building a slice in a local variable, and after completing the local array, slotting it in with:
config.Status.Capabilities.KnownCapabilities = knownCapabilitiesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is old code and will be removed but the question of the need for a lock is valid.
The capabilities reside in get set SyncWork and are set in Update so are protected by the lock there. Just yesterday I added setting CapabilitiesStatus in SyncWorkerStatus also in Update here so it's available to syncStatus here.
|
/retitle Consume post install static spec capabilities |
e850c3d to
999a747
Compare
|
retitle WIP: Consume post install static spec capabilities Get cluster version object earlier in startup needs to land first and unit test fixes in progress. |
711c695 to
662bb9a
Compare
|
/retitle WIP: Consume post install static spec capabilities |
|
/test e2e-agnostic |
|
/retitle Consume post install static spec capabilities |
| } | ||
| actions = client.Actions() | ||
| if len(actions) != 1 { | ||
| if len(actions) != 2 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the second action here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to ClusterVersion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we grow an expectUpdateStatus or some such to enforce that?
Implements initial, postinstall, support of static capabilities per Jira OTA-567.
wking
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-agnostic-upgrade DetailsIn response to this:
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/test-infra repository. |
|
@jottofar: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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/test-infra repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jottofar, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Implements initial, postinstall, support of static capabilities
per Jira OTA-567.