mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
removes a comment on New and a typo fix
This commit is contained in:
parent
bcbdbf6558
commit
f932891428
@ -33,7 +33,6 @@ type ControllerRegistryStorage struct {
|
||||
pollPeriod time.Duration
|
||||
}
|
||||
|
||||
// NewControllerRegistryStorage creates a new NewControllerRegistryStorage instance.
|
||||
func NewControllerRegistryStorage(registry ControllerRegistry, podRegistry PodRegistry) apiserver.RESTStorage {
|
||||
return &ControllerRegistryStorage{
|
||||
registry: registry,
|
||||
@ -97,7 +96,7 @@ func (storage *ControllerRegistryStorage) Create(obj interface{}) (<-chan interf
|
||||
}), nil
|
||||
}
|
||||
|
||||
// Update replaces a given ReplicationController instance with an existing instnace in storage.registry.
|
||||
// Update replaces a given ReplicationController instance with an existing instance in storage.registry.
|
||||
func (storage *ControllerRegistryStorage) Update(obj interface{}) (<-chan interface{}, error) {
|
||||
controller, ok := obj.(api.ReplicationController)
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user