Fixed the error for kubectl edit multiple resources

This commit is contained in:
Janet Kuo
2015-10-20 15:22:54 -07:00
parent 2b5f590935
commit f5adda3d81
3 changed files with 173 additions and 121 deletions

View File

@@ -402,6 +402,10 @@ func (a genericAccessor) Annotations() map[string]string {
}
func (a genericAccessor) SetAnnotations(annotations map[string]string) {
if a.annotations == nil {
emptyAnnotations := make(map[string]string)
a.annotations = &emptyAnnotations
}
*a.annotations = annotations
}