Skip to content

Commit b6d3b23

Browse files
committed
Improve explanation as to why unstructured shouldn't originate from an api type
1 parent 912706f commit b6d3b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/client/applyconfigurations.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func (u *unstructuredApplyConfiguration) IsApplyConfiguration() {}
3030

3131
// ApplyConfigurationFromUnstructured creates a runtime.ApplyConfiguration from an *unstructured.Unstructured object.
3232
//
33-
// Do not use Unstructured objects here that were generated from API objects, as those
34-
// contain zero values.
33+
// Do not use Unstructured objects here that were generated from API objects, as its impossible to tell
34+
// if a zero value was explicitly set.
3535
func ApplyConfigurationFromUnstructured(u *unstructured.Unstructured) runtime.ApplyConfiguration {
3636
return &unstructuredApplyConfiguration{Unstructured: u}
3737
}

0 commit comments

Comments
 (0)