@@ -63,7 +63,7 @@ func (a *Annotator) GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
63
63
// Try to base64 decode, and fallback to non-base64 encoded content for backwards compatibility.
64
64
if decoded , err := base64 .StdEncoding .DecodeString (original ); err == nil {
65
65
if http .DetectContentType (decoded ) == "application/zip" {
66
- return UnZipAnnotation (decoded )
66
+ return unZipAnnotation (decoded )
67
67
}
68
68
}
69
69
@@ -86,7 +86,7 @@ func (a *Annotator) SetOriginalConfiguration(obj runtime.Object, original []byte
86
86
annots = map [string ]string {}
87
87
}
88
88
89
- annots [a .key ], err = ZipAndBase64EncodeAnnotation (original )
89
+ annots [a .key ], err = zipAndBase64EncodeAnnotation (original )
90
90
if err != nil {
91
91
return err
92
92
}
@@ -130,7 +130,7 @@ func (a *Annotator) GetModifiedConfiguration(obj runtime.Object, annotate bool)
130
130
}
131
131
132
132
if annotate {
133
- annots [a .key ], err = ZipAndBase64EncodeAnnotation (modified )
133
+ annots [a .key ], err = zipAndBase64EncodeAnnotation (modified )
134
134
if err != nil {
135
135
return nil , err
136
136
}
@@ -168,7 +168,7 @@ func (a *Annotator) SetLastAppliedAnnotation(obj runtime.Object) error {
168
168
return a .SetOriginalConfiguration (obj , modifiedWithoutNulls )
169
169
}
170
170
171
- func ZipAndBase64EncodeAnnotation (original []byte ) (string , error ) {
171
+ func zipAndBase64EncodeAnnotation (original []byte ) (string , error ) {
172
172
// Create a buffer to write our archive to.
173
173
buf := new (bytes.Buffer )
174
174
@@ -193,7 +193,7 @@ func ZipAndBase64EncodeAnnotation(original []byte) (string, error) {
193
193
return base64 .StdEncoding .EncodeToString (buf .Bytes ()), nil
194
194
}
195
195
196
- func UnZipAnnotation (original []byte ) ([]byte , error ) {
196
+ func unZipAnnotation (original []byte ) ([]byte , error ) {
197
197
annotation , err := ioutil .ReadAll (bytes .NewReader (original ))
198
198
if err != nil {
199
199
return nil , err
0 commit comments