Skip to content

Commit

Permalink
Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlking committed Nov 2, 2023
1 parent cd9224e commit 7479cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/filters/nameref/nameref.go
Expand Up @@ -327,7 +327,7 @@ func (f Filter) selectReferral(
}
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, true))
if len(candidates) > 1 {
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, false))
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, false))
}
if len(candidates) == 1 {
return candidates[0], nil
Expand Down
6 changes: 2 additions & 4 deletions api/krusty/configmaps_test.go
Expand Up @@ -594,7 +594,7 @@ metadata:

// Regression test for https://github.com/kubernetes-sigs/kustomize/issues/5047
func TestPrefixSuffix(t *testing.T) {
th := kusttest_test.MakeHarness(t)
th := kusttest_test.MakeHarness(t)
th.WriteF("kustomization.yaml", `
resources:
- a
Expand Down Expand Up @@ -647,7 +647,6 @@ resources:
nameSuffix: api
`)


m := th.Run(".", th.MakeDefaultOptions())
th.AssertActualEqualsExpected(m, `
apiVersion: apps/v1
Expand Down Expand Up @@ -690,7 +689,7 @@ metadata:

// Regression test for https://github.com/kubernetes-sigs/kustomize/issues/5047
func TestPrefixSuffix2(t *testing.T) {
th := kusttest_test.MakeHarness(t)
th := kusttest_test.MakeHarness(t)
th.WriteF("kustomization.yaml", `
resources:
- a
Expand Down Expand Up @@ -734,7 +733,6 @@ configMapGenerator:
- name: "-example-configmap"
`)


m := th.Run(".", th.MakeDefaultOptions())
th.AssertActualEqualsExpected(m, `
apiVersion: apps/v1
Expand Down

0 comments on commit 7479cb8

Please sign in to comment.