mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 19:47:56 +00:00
fix a small mistake in function getFieldMeta
This commit is contained in:
parent
5ba149e182
commit
c01f6a1e68
@ -104,7 +104,7 @@ func getFieldMeta(s proto.Schema, name string) (apply.FieldMetaImpl, error) {
|
|||||||
if e, found := ext["x-kubernetes-patch-strategy"]; found {
|
if e, found := ext["x-kubernetes-patch-strategy"]; found {
|
||||||
strategy, ok := e.(string)
|
strategy, ok := e.(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
return apply.FieldMetaImpl{}, fmt.Errorf("Expected string for x-kubernetes-patch-strategy by got %T", s)
|
return apply.FieldMetaImpl{}, fmt.Errorf("Expected string for x-kubernetes-patch-strategy by got %T", e)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Take the first strategy if there are substrategies.
|
// Take the first strategy if there are substrategies.
|
||||||
|
Loading…
Reference in New Issue
Block a user