mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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
|
pollPeriod time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewControllerRegistryStorage creates a new NewControllerRegistryStorage instance.
|
|
||||||
func NewControllerRegistryStorage(registry ControllerRegistry, podRegistry PodRegistry) apiserver.RESTStorage {
|
func NewControllerRegistryStorage(registry ControllerRegistry, podRegistry PodRegistry) apiserver.RESTStorage {
|
||||||
return &ControllerRegistryStorage{
|
return &ControllerRegistryStorage{
|
||||||
registry: registry,
|
registry: registry,
|
||||||
@ -97,7 +96,7 @@ func (storage *ControllerRegistryStorage) Create(obj interface{}) (<-chan interf
|
|||||||
}), nil
|
}), 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) {
|
func (storage *ControllerRegistryStorage) Update(obj interface{}) (<-chan interface{}, error) {
|
||||||
controller, ok := obj.(api.ReplicationController)
|
controller, ok := obj.(api.ReplicationController)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user