mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Merge pull request #52321 from Mashimiao/factory-tfix
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. small tfix in cmd factory comment Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com> **What this PR does / why we need it**: tfix in cmd factory comment **Release note**: ```release-note NONE ```
This commit is contained in:
commit
f008f147f8
@ -63,7 +63,7 @@ var (
|
|||||||
// The rings are here for a reason. In order for composers to be able to provide alternative factory implementations
|
// The rings are here for a reason. In order for composers to be able to provide alternative factory implementations
|
||||||
// they need to provide low level pieces of *certain* functions so that when the factory calls back into itself
|
// they need to provide low level pieces of *certain* functions so that when the factory calls back into itself
|
||||||
// it uses the custom version of the function. Rather than try to enumerate everything that someone would want to override
|
// it uses the custom version of the function. Rather than try to enumerate everything that someone would want to override
|
||||||
// we split the factory into rings, where each ring can depend on methods an earlier ring, but cannot depend
|
// we split the factory into rings, where each ring can depend on methods in an earlier ring, but cannot depend
|
||||||
// upon peer methods in its own ring.
|
// upon peer methods in its own ring.
|
||||||
// TODO: make the functions interfaces
|
// TODO: make the functions interfaces
|
||||||
// TODO: pass the various interfaces on the factory directly into the command constructors (so the
|
// TODO: pass the various interfaces on the factory directly into the command constructors (so the
|
||||||
@ -224,7 +224,7 @@ type ObjectMappingFactory interface {
|
|||||||
OpenAPISchema() (openapi.Resources, error)
|
OpenAPISchema() (openapi.Resources, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// BuilderFactory holds the second level of factory methods. These functions depend upon ObjectMappingFactory and ClientAccessFactory methods.
|
// BuilderFactory holds the third level of factory methods. These functions depend upon ObjectMappingFactory and ClientAccessFactory methods.
|
||||||
// Generally they depend upon client mapper functions
|
// Generally they depend upon client mapper functions
|
||||||
type BuilderFactory interface {
|
type BuilderFactory interface {
|
||||||
// PrinterForCommand returns the default printer for the command. It requires that certain options
|
// PrinterForCommand returns the default printer for the command. It requires that certain options
|
||||||
|
Loading…
Reference in New Issue
Block a user