changes to the fatal message generated

Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>
This commit is contained in:
Dipankar Das 2023-01-11 08:08:25 +05:30
parent 526b4b4ce2
commit 50bc46bd8f

View File

@ -252,11 +252,11 @@ func setupTestCommon(t *testing.T, compiler ValidatorCompiler, shouldStartInform
features.ValidatingAdmissionPolicy: {
Default: true, PreRelease: featuregate.Alpha}})
if err != nil {
t.Fatalf("Unable to add featureGate with Release as Alpha")
t.Fatalf("Unable to add feature gate: %v", err)
}
err = featureGate.SetFromMap(map[string]bool{string(features.ValidatingAdmissionPolicy): true})
if err != nil {
t.Fatalf("Unable to Set key ValidateAdmissionPolicy to the Alpha featureGate")
t.Fatalf("Unable to store flag gate: %v", err)
}
plug, err := NewPlugin()