File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
pkg/registry/core/replicationcontroller Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ pkg/registry/core/namespace/storage
136
136
pkg/registry/core/node
137
137
pkg/registry/core/persistentvolume
138
138
pkg/registry/core/persistentvolumeclaim
139
- pkg/registry/core/replicationcontroller
140
139
pkg/registry/core/replicationcontroller/storage
141
140
pkg/registry/core/rest
142
141
pkg/registry/core/secret
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- // Package controller provides Registry interface and it's RESTStorage
17
+ // Package replicationcontroller provides Registry interface and it's RESTStorage
18
18
// implementation for storing ReplicationController api objects.
19
19
package replicationcontroller // import "k8s.io/kubernetes/pkg/registry/core/replicationcontroller"
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ func ControllerToSelectableFields(controller *api.ReplicationController) fields.
170
170
func GetAttrs (obj runtime.Object ) (labels.Set , fields.Set , error ) {
171
171
rc , ok := obj .(* api.ReplicationController )
172
172
if ! ok {
173
- return nil , nil , fmt .Errorf ("given object is not a replication controller. " )
173
+ return nil , nil , fmt .Errorf ("given object is not a replication controller" )
174
174
}
175
175
return labels .Set (rc .ObjectMeta .Labels ), ControllerToSelectableFields (rc ), nil
176
176
}
@@ -190,6 +190,7 @@ type rcStatusStrategy struct {
190
190
rcStrategy
191
191
}
192
192
193
+ // StatusStrategy is the default logic invoked when updating object status.
193
194
var StatusStrategy = rcStatusStrategy {Strategy }
194
195
195
196
func (rcStatusStrategy ) PrepareForUpdate (ctx context.Context , obj , old runtime.Object ) {
You can’t perform that action at this time.
0 commit comments