Skip to content

Commit

Permalink
Alejandro's feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sim <[email protected]>
  • Loading branch information
Ivan Sim committed Mar 26, 2019
1 parent 4b09829 commit c2f3c52
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/inject/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,14 +623,11 @@ func (conf *ResourceConfig) injectObjectMeta(patch *Patch) {

for k, v := range conf.pod.annotations {
patch.addPodAnnotation(k, v)
}

// append any additional pod annotations to the pod's meta.
// for e.g., annotations that were converted from CLI inject options.
for annotation, value := range conf.pod.annotations {
conf.pod.Meta.Annotations[annotation] = value
// append any additional pod annotations to the pod's meta.
// for e.g., annotations that were converted from CLI inject options.
conf.pod.Meta.Annotations[k] = v
}

}

func (conf *ResourceConfig) getOverride(annotation string) string {
Expand Down

0 comments on commit c2f3c52

Please sign in to comment.