changes to the fatal message generated

Signed-off-by: Dipankar Das <dipankardas0115@gmail.com>

Kubernetes-commit: 50bc46bd8fdc687811b3e4bba6a3d8d0706c8d59
This commit is contained in:
Dipankar Das 2023-01-11 08:08:25 +05:30 committed by Kubernetes Publisher
parent 41fdf0ebe7
commit ee11899e67
1 changed files with 2 additions and 2 deletions

View File

@ -275,11 +275,11 @@ func setupTestCommon(t *testing.T, compiler ValidatorCompiler, shouldStartInform
features.ValidatingAdmissionPolicy: { features.ValidatingAdmissionPolicy: {
Default: true, PreRelease: featuregate.Alpha}}) Default: true, PreRelease: featuregate.Alpha}})
if err != nil { 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}) err = featureGate.SetFromMap(map[string]bool{string(features.ValidatingAdmissionPolicy): true})
if err != nil { 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() plug, err := NewPlugin()