changes to the fatal message generated
Signed-off-by: Dipankar Das <dipankardas0115@gmail.com> Kubernetes-commit: 50bc46bd8fdc687811b3e4bba6a3d8d0706c8d59
This commit is contained in:
parent
41fdf0ebe7
commit
ee11899e67
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue