We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50ea06 commit 3104849Copy full SHA for 3104849
exp/mutators/mutator_test.go
@@ -24,6 +24,7 @@ import (
24
. "github.com/onsi/gomega"
25
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
26
"k8s.io/apimachinery/pkg/runtime"
27
+ "sigs.k8s.io/controller-runtime/pkg/reconcile"
28
)
29
30
func TestApplyMutators(t *testing.T) {
@@ -89,6 +90,16 @@ func TestApplyMutators(t *testing.T) {
89
90
},
91
expectedErr: errors.New("mutator err"),
92
93
+ {
94
+ name: "incompatible is terminal",
95
+ resources: []runtime.RawExtension{},
96
+ mutators: []ResourcesMutator{
97
+ func(_ context.Context, us []*unstructured.Unstructured) error {
98
+ return Incompatible{}
99
+ },
100
101
+ expectedErr: reconcile.TerminalError(Incompatible{}),
102
103
}
104
105
for _, test := range tests {
0 commit comments