Skip to content

Commit 968b0ab

Browse files
committed
fix annotation's value
Signed-off-by: Gang Liu <gang.liu@daocloud.io>
1 parent f30b7d6 commit 968b0ab

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

client.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,7 @@ func toAnnotationKey(origin string) string {
312312

313313
// AnnotationWithRelease get the annoation from release by key
314314
func (c *HelmClient) AnnotationWithRelease(rel *release.Release, key string) interface{} {
315-
if v, ok := rel.Config[toAnnotationKey(key)]; !ok {
316-
return ""
317-
} else {
318-
return v.(string)
319-
}
315+
return rel.Config[toAnnotationKey(key)]
320316
}
321317

322318
// Annotation get the Annotation with the key from the release

0 commit comments

Comments
 (0)