Skip to content

Commit

Permalink
modified test and generated data
Browse files Browse the repository at this point in the history
  • Loading branch information
laxmikantbpandhare committed Jul 19, 2022
1 parent 8067562 commit 19c4c7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions api/internal/builtins/PatchJson6902Transformer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/krusty/extendedpatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ spec:
`)
}

func TestExtendedPatchGvkSelector(t *testing.T) {
func TestTargetMissingPatchError(t *testing.T) {
th := kusttest_test.MakeHarness(t)
makeCommonFileForExtendedPatchTest(th)
th.WriteK("base", `
Expand Down Expand Up @@ -1253,5 +1253,5 @@ spec:
value: kube-prometheus-stack
`)
err := th.RunWithErr("base", th.MakeDefaultOptions())
assert.Contains(t, err.Error(), "patchesJson6902[0] target not found for ServiceMonitor.v2.monitoring.coreos.com/starboard-exporter.starboard:a=:l= Bailing out.")
assert.Contains(t, err.Error(), "patchesJson6902 target not found for ServiceMonitor.v2.monitoring.coreos.com/starboard-exporter.starboard:a=:l= Bailing out.")
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (p *plugin) Transform(m resmap.ResMap) error {
}

if resources == nil {
return fmt.Errorf("patchesJson6902[0] target not found for %s Bailing out.", p.Target)
return fmt.Errorf("patchesJson6902 target not found for %s Bailing out.", p.Target)
}

for _, res := range resources {
Expand Down

0 comments on commit 19c4c7a

Please sign in to comment.