Skip to content

Commit

Permalink
Fix two bugs revealed by the new e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Berger <alex-berger@gmx.ch>
  • Loading branch information
alex-berger committed Feb 2, 2021
1 parent fef9245 commit 518233b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions config/testdata/post-renderer-kustomize/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ spec:
apiVersion: apps/v1
metadata:
name: mypodinfo
namespace: helm-system
labels:
xxxx: yyyy
patchesJson6902:
Expand All @@ -30,7 +29,6 @@ spec:
version: v1
kind: Deployment
name: mypodinfo
namespace: helm-system
patch:
- op: add
path: /metadata/labels/yyyy
Expand Down
1 change: 0 additions & 1 deletion docs/spec/v2beta1/helmreleases.md
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,6 @@ spec:
apiVersion: apps/v1
metadata:
name: metrics-server
namespace: kube-system
spec:
template:
spec:
Expand Down
2 changes: 1 addition & 1 deletion internal/runner/post_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func newCombinedPostRenderer() combinedPostRenderer {
}
}

func (c combinedPostRenderer) addRenderer(renderer postrender.PostRenderer) {
func (c *combinedPostRenderer) addRenderer(renderer postrender.PostRenderer) {
c.renderers = append(c.renderers, renderer)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/runner/post_renderer_kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (k *postRendererKustomize) Run(renderedManifests *bytes.Buffer) (modifiedMa
}
// add JSON patches
for _, m := range k.spec.PatchesJSON6902 {
patch, err := json.Marshal(m)
patch, err := json.Marshal(m.Patch)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 518233b

Please sign in to comment.