Skip to content

Commit 20a0f6c

Browse files
authored
Merge master to set-namespace/v0.3 (#823)
1 parent 822a4fa commit 20a0f6c

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

functions/go/set-namespace/transformer/namespace.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ func SetNamespace(rl *fn.ResourceList) (bool, error) {
4141
}
4242

4343
rl.Results = append(rl.Results, result)
44-
rl.Results = append(rl.Results, &fn.Result{
45-
Message: fmt.Sprintf("set image from %s to %s", tc.NamespaceMatcher, tc.NewNamespace),
46-
Field: &fn.Field{
47-
Path: "",
48-
CurrentValue: tc.NamespaceMatcher,
49-
ProposedValue: tc.NewNamespace,
50-
},
51-
File: &fn.File{Path: "test", Index: 0},
52-
Severity: fn.Info,
53-
})
5444
return true, nil
5545
}
5646

tests/set-namespace/ns-unset/.expected/results.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,4 @@ items:
88
exitCode: 0
99
results:
1010
- message: could not find any namespace fields to update. This function requires at least one of Namespace objects or namespace-scoped resources to have their namespace field set.
11-
severity: error
12-
- message: set image from to example-ns
13-
severity: info
14-
field:
15-
currentValue: ""
16-
proposedValue: example-ns
17-
file:
18-
path: test
11+
severity: error

0 commit comments

Comments
 (0)