Skip to content

Commit 8e03a67

Browse files
committed
Run gofmt
1 parent e052771 commit 8e03a67

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api/filters/nameref/nameref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (f Filter) selectReferral(
327327
}
328328
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, true))
329329
if len(candidates) > 1 {
330-
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, false))
330+
candidates = doSieve(candidates, prefixSuffixEquals(f.Referrer, false))
331331
}
332332
if len(candidates) == 1 {
333333
return candidates[0], nil

api/krusty/configmaps_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ metadata:
594594

595595
// Regression test for https://github.com/kubernetes-sigs/kustomize/issues/5047
596596
func TestPrefixSuffix(t *testing.T) {
597-
th := kusttest_test.MakeHarness(t)
597+
th := kusttest_test.MakeHarness(t)
598598
th.WriteF("kustomization.yaml", `
599599
resources:
600600
- a
@@ -647,7 +647,6 @@ resources:
647647
nameSuffix: api
648648
`)
649649

650-
651650
m := th.Run(".", th.MakeDefaultOptions())
652651
th.AssertActualEqualsExpected(m, `
653652
apiVersion: apps/v1
@@ -690,7 +689,7 @@ metadata:
690689

691690
// Regression test for https://github.com/kubernetes-sigs/kustomize/issues/5047
692691
func TestPrefixSuffix2(t *testing.T) {
693-
th := kusttest_test.MakeHarness(t)
692+
th := kusttest_test.MakeHarness(t)
694693
th.WriteF("kustomization.yaml", `
695694
resources:
696695
- a
@@ -734,7 +733,6 @@ configMapGenerator:
734733
- name: "-example-configmap"
735734
`)
736735

737-
738736
m := th.Run(".", th.MakeDefaultOptions())
739737
th.AssertActualEqualsExpected(m, `
740738
apiVersion: apps/v1

api/resource/resource.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ func (r *Resource) DeepCopy() *Resource {
157157
// the resource.
158158
// TODO: move to RNode, use GetMeta to improve performance.
159159
// TODO: make a version of mergeStringMaps that is build-annotation aware
160-
// to avoid repeatedly setting refby and genargs annotations
160+
//
161+
// to avoid repeatedly setting refby and genargs annotations
162+
//
161163
// Must remove the kustomize bit at the end.
162164
func (r *Resource) CopyMergeMetaDataFieldsFrom(other *Resource) error {
163165
if err := r.SetLabels(

0 commit comments

Comments
 (0)