Skip to content

Commit

Permalink
Fix invalid json error which happens when the annotation is not zippe…
Browse files Browse the repository at this point in the history
…d but base64 encoded
  • Loading branch information
baluchicken committed Aug 18, 2020
1 parent 1d06963 commit 474562c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions patch/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (a *Annotator) GetOriginalConfiguration(obj runtime.Object) ([]byte, error)
if http.DetectContentType(decoded) == "application/zip" {
return unZipAnnotation(decoded)
}
return decoded, nil
}

return []byte(original), nil
Expand Down

0 comments on commit 474562c

Please sign in to comment.