@@ -42,8 +42,8 @@ const (
4242 CritParentInvalid Code = "CritParentInvalid"
4343 CritAncestor Code = "CritAncestor"
4444 HNSMissing Code = "HNSMissing"
45- CannotUpdate Code = "CannotUpdateObject"
4645 CannotPropagate Code = "CannotPropagateObject"
46+ CannotUpdate Code = "CannotUpdateObject"
4747)
4848
4949// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
@@ -104,7 +104,7 @@ type Condition struct {
104104 // shown below, but new values may be added over time. This field is always present in a
105105 // condition.
106106 //
107- // All codes that begin with the prefix `CRIT_ ` indicate that all HNC activities (e.g. propagating
107+ // All codes that begin with the prefix `Crit ` indicate that all HNC activities (e.g. propagating
108108 // objects, updating labels) have been paused in this namespaces. HNC will resume updating the
109109 // namespace once the condition has been resolved. Non-critical conditions typically indicate some
110110 // kind of error that HNC itself can ignore, but likely indicates that the hierarchical structure
@@ -116,17 +116,23 @@ type Condition struct {
116116 //
117117 // Currently, the supported values are:
118118 //
119- // - "CRIT_PARENT_MISSING ": the specified parent is missing
119+ // - "CritParentMissing ": the specified parent is missing
120120 //
121- // - "CRIT_PARENT_INVALID ": the specified parent is invalid (e.g., would cause a cycle)
121+ // - "CritParentInvalid ": the specified parent is invalid (e.g., would cause a cycle)
122122 //
123- // - "CRIT_ANCESTOR ": a critical error exists in an ancestor namespace, so this namespace is no
123+ // - "CritAncestor ": a critical error exists in an ancestor namespace, so this namespace is no
124124 // longer being updated either.
125125 //
126- // - "REQUIRED_CHILD_CONFLICT": this namespace has a required child, but a namespace of the same
127- // name already exists and is not a child of this namespace. Note that the condition is _not_
128- // annotated onto the other namespace; it is considered an error _only_ for the would-be parent
129- // namespace.
126+ // - "HNSMissing": this namespace is an owned namespace (created by reconciling an hns instance),
127+ // but the hns instance is missing in its owner (referenced in its owner annotation) or the owner
128+ // namespace is missing.
129+ //
130+ // - "CannotPropagateObject": this namespace contains an object that couldn't be propagated to
131+ // one or more of its descendants. The condition's affect objects will include a list of the
132+ // copies that couldn't be updated.
133+ //
134+ // - "CannotUpdateObject": this namespace has an error when updating a propagated object from its
135+ // source. The condition's affected object will point to the source object.
130136 Code Code `json:"code"`
131137
132138 // A human-readable description of the condition, if the `code` and `affects` fields are not
0 commit comments