From 8f198e67ca3a7f717823c974fe52791b94a8c5b1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 3 Jun 2018 11:49:18 -0700 Subject: hooks/1.0.0: Fix 'annotation' -> 'annotations' in JSON This typo from 68eb128f (pkg/hooks: Version the hook structure and add 1.0.0 hooks, 2018-04-27, #686) was causing any 'annotations' entries in hook JSON to be silently ignored. Signed-off-by: W. Trevor King Closes: #887 Approved by: rhatdan --- pkg/hooks/1.0.0/when.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/hooks/1.0.0/when.go') diff --git a/pkg/hooks/1.0.0/when.go b/pkg/hooks/1.0.0/when.go index c23223ec0..a4870d0fa 100644 --- a/pkg/hooks/1.0.0/when.go +++ b/pkg/hooks/1.0.0/when.go @@ -10,7 +10,7 @@ import ( // When holds hook-injection conditions. type When struct { Always *bool `json:"always,omitempty"` - Annotations map[string]string `json:"annotation,omitempty"` + Annotations map[string]string `json:"annotations,omitempty"` Commands []string `json:"commands,omitempty"` HasBindMounts *bool `json:"hasBindMounts,omitempty"` -- cgit v1.2.3-54-g00ecf