*: initial update to kube 1.8
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
2453222695
commit
d6e819133d
1237 changed files with 84117 additions and 564982 deletions
5
vendor/k8s.io/apimachinery/pkg/runtime/extension.go
generated
vendored
5
vendor/k8s.io/apimachinery/pkg/runtime/extension.go
generated
vendored
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
package runtime
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
)
|
||||
|
@ -25,7 +26,9 @@ func (re *RawExtension) UnmarshalJSON(in []byte) error {
|
|||
if re == nil {
|
||||
return errors.New("runtime.RawExtension: UnmarshalJSON on nil pointer")
|
||||
}
|
||||
re.Raw = append(re.Raw[0:0], in...)
|
||||
if !bytes.Equal(in, []byte("null")) {
|
||||
re.Raw = append(re.Raw[0:0], in...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue