mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 03:08:15 +00:00
Ensure controller revision data is valid json
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
apinamingtest "k8s.io/apimachinery/pkg/api/apitesting/naming"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/util/intstr"
|
||||
"k8s.io/apimachinery/pkg/util/sets"
|
||||
"k8s.io/kubernetes/pkg/api/legacyscheme"
|
||||
@@ -70,6 +71,7 @@ var typesAllowedTags = map[reflect.Type]bool{
|
||||
reflect.TypeOf(metav1.GroupVersionResource{}): true,
|
||||
reflect.TypeOf(metav1.Status{}): true,
|
||||
reflect.TypeOf(metav1.Condition{}): true,
|
||||
reflect.TypeOf(runtime.RawExtension{}): true,
|
||||
}
|
||||
|
||||
// These fields are limited exceptions to the standard JSON naming structure.
|
||||
|
||||
Reference in New Issue
Block a user