Update condition code documentation #637
@sophieliu15 @adrianchung please feel free to take a look and lmk if anything's not clear in the condition code documentation. Thank you Sophie for bringing this up!
Will there be more information about which case (i.e., hns instance missing or owner namespace missing) causes this problem when a namespace has this error condition?
all the propagated objects that have an error to update.
I am wondering what's the difference between this code and the CannotUpdateObject above? From the documentation, they seem to be both about problems when updating propagated objects?
Thanks so much for the fix. :)
No, we only look for the hns instance. If it doesn't exist, this condition will be set, no matter the owner namespace exists or not. The two cases here are actually the two possible cases of a missing hns instance.
Yes, they are two conditions triggered by the same error. However, CannotPropagateObject is set on the namespace with the source object and CannotUpdateObject is set on the namespace with the propagated object.
Maybe: "This object contains an object that couldn't be propagated to one or more of its descendants. The condition's affect objects will include a list of the copies that couldn't be updated."
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubernetes-sigs/multi-tenancy/pull/637#pullrequestreview-391055818" title="Approved">adrianludwin</a>, <a href="https://github.com/kubernetes-sigs/multi-tenancy/pull/637#" title="Author self-approved">yiqigao217</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
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
</details>
<!-- META={"approvers":[]} -->
Thanks all, updated!
sophieliu15
yiqigao217
Add documentation on new codes and delete the obsolete codes.
Tested with "make test".
Fixes #622