diff --git a/pkg/apis/core/validation/validation.go b/pkg/apis/core/validation/validation.go index c2709e8d82e..d432bd0ae1a 100644 --- a/pkg/apis/core/validation/validation.go +++ b/pkg/apis/core/validation/validation.go @@ -2882,10 +2882,10 @@ func validateHandler(handler commonHandler, fldPath *field.Path) field.ErrorList } if handler.GRPC != nil { if numHandlers > 0 { - allErrors = append(allErrors, field.Forbidden(fldPath.Child("gRPC"), "may not specify more than 1 handler type")) + allErrors = append(allErrors, field.Forbidden(fldPath.Child("grpc"), "may not specify more than 1 handler type")) } else { numHandlers++ - allErrors = append(allErrors, validateGRPCAction(handler.GRPC, fldPath.Child("gRPC"))...) + allErrors = append(allErrors, validateGRPCAction(handler.GRPC, fldPath.Child("grpc"))...) } } if numHandlers == 0 { diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go index 144767c2dab..80c5dd744c1 100644 --- a/staging/src/k8s.io/api/core/v1/types.go +++ b/staging/src/k8s.io/api/core/v1/types.go @@ -2468,7 +2468,7 @@ type ProbeHandler struct { // This is an alpha field and requires enabling GRPCContainerProbe feature gate. // +featureGate=GRPCContainerProbe // +optional - GRPC *GRPCAction `json:"gRPC,omitempty" protobuf:"bytes,4,opt,name=grpc"` + GRPC *GRPCAction `json:"grpc,omitempty" protobuf:"bytes,4,opt,name=grpc"` } // LifecycleHandler defines a specific action that should be taken in a lifecycle