mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Update deps to Kube 1.11.3
This updates the dependencies to Kube 1.11.3 to pull in a fix allowing requestheader auth to be used without normal client auth (which makes things work on clusters that don't enable client auth normally, like EKS).
This commit is contained in:
parent
262493780f
commit
c916572aca
474 changed files with 40067 additions and 18326 deletions
18
vendor/github.com/go-openapi/swag/json.go
generated
vendored
18
vendor/github.com/go-openapi/swag/json.go
generated
vendored
|
|
@ -21,6 +21,7 @@ import (
|
|||
"reflect"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/mailru/easyjson/jlexer"
|
||||
"github.com/mailru/easyjson/jwriter"
|
||||
|
|
@ -34,9 +35,14 @@ var DefaultJSONNameProvider = NewNameProvider()
|
|||
|
||||
const comma = byte(',')
|
||||
|
||||
var closers = map[byte]byte{
|
||||
'{': '}',
|
||||
'[': ']',
|
||||
var atomicClosers atomic.Value
|
||||
|
||||
func init() {
|
||||
atomicClosers.Store(
|
||||
map[byte]byte{
|
||||
'{': '}',
|
||||
'[': ']',
|
||||
})
|
||||
}
|
||||
|
||||
type ejMarshaler interface {
|
||||
|
|
@ -82,10 +88,7 @@ func DynamicJSONToStruct(data interface{}, target interface{}) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := ReadJSON(b, target); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return ReadJSON(b, target)
|
||||
}
|
||||
|
||||
// ConcatJSON concatenates multiple json objects efficiently
|
||||
|
|
@ -110,6 +113,7 @@ func ConcatJSON(blobs ...[]byte) []byte {
|
|||
var opening, closing byte
|
||||
var idx, a int
|
||||
buf := bytes.NewBuffer(nil)
|
||||
closers := atomicClosers.Load().(map[byte]byte)
|
||||
|
||||
for i, b := range blobs[:last+1] {
|
||||
if b == nil || bytes.Equal(b, nullJSON) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue