vendor: update kubernetes v1.18.0-beta.1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
4210588d3c
commit
a3e7f68fa5
@ -21,7 +21,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -353,13 +352,7 @@ func RawRuntimeClient() (runtime.RuntimeServiceClient, error) {
|
|||||||
}
|
}
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithContextDialer(
|
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithContextDialer(dialer))
|
||||||
func(ctx context.Context, addr string) (net.Conn, error) {
|
|
||||||
if deadline, ok := ctx.Deadline(); ok {
|
|
||||||
return dialer(addr, time.Until(deadline))
|
|
||||||
}
|
|
||||||
return dialer(addr, 0)
|
|
||||||
}))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to connect cri endpoint")
|
return nil, errors.Wrap(err, "failed to connect cri endpoint")
|
||||||
}
|
}
|
||||||
|
15
vendor.conf
15
vendor.conf
@ -74,14 +74,15 @@ golang.org/x/oauth2 0f29369cfe4552d0e4bcddc57cc7
|
|||||||
golang.org/x/time 9d24e82272b4f38b78bc8cff74fa936d31ccd8ef
|
golang.org/x/time 9d24e82272b4f38b78bc8cff74fa936d31ccd8ef
|
||||||
gopkg.in/inf.v0 d2d2541c53f18d2a059457998ce2876cc8e67cbf # v0.9.1
|
gopkg.in/inf.v0 d2d2541c53f18d2a059457998ce2876cc8e67cbf # v0.9.1
|
||||||
gopkg.in/yaml.v2 53403b58ad1b561927d19068c655246f2db79d48 # v2.2.8
|
gopkg.in/yaml.v2 53403b58ad1b561927d19068c655246f2db79d48 # v2.2.8
|
||||||
k8s.io/api 0952862eca9e889f5aba1dd697ce331d7b126413 # v0.18.0-alpha.1
|
k8s.io/api e6bc7324d7efd1c8ab0e68dd8162a2b500b0ce3b # v0.18.0-beta.1
|
||||||
k8s.io/apimachinery 0ee8b4573e3aecbab8ba0d539f919aa7c53365b2 # v0.18.0-alpha.1
|
k8s.io/apimachinery 2373d029717c4d169463414a6127cd1d0d12680e # v0.18.0-beta.1
|
||||||
k8s.io/apiserver ade7e88e6a1d51246811ce11e80c2c04b19b8e1e # v0.18.0-alpha.1
|
k8s.io/apiserver 9af6eefd238b73bb688c429c32d113d04eeea3a8 # v0.18.0-beta.1
|
||||||
k8s.io/client-go 161ce6706f89eb5d4b15829172b121fed995fa41 # v0.18.0-alpha.1
|
k8s.io/client-go 33a99c0dca04e5e335442262f93df4c3faab201b # v0.18.0-beta.1
|
||||||
k8s.io/cri-api cb37f80103f4d88d4b0cc29542ee6fcfd7c1aa89 # v0.18.0-alpha.1
|
k8s.io/cri-api 3d1680d8d202aa12c5dc5689170c3c03a488d35b # v0.18.0-beta.1
|
||||||
k8s.io/klog 2ca9ad30301bf30a8a6e0fa2110db6b8df699a91 # v1.0.0
|
k8s.io/klog 2ca9ad30301bf30a8a6e0fa2110db6b8df699a91 # v1.0.0
|
||||||
k8s.io/kubernetes ac4079a5cc22ced66c868f6fd26f8e2497765e51 # v1.18.0-alpha.1
|
k8s.io/kubernetes f2d7577e31829664899f1b8e3d3a73de8c5f4029 # v1.18.0-beta.1
|
||||||
k8s.io/utils e782cd3c129fc98ee807f3c889c0f26eb7c9daf5
|
k8s.io/utils 5f6fbceb4c31d35291b2de756aeaae2ddeee3e92
|
||||||
|
sigs.k8s.io/structured-merge-diff/v3 877aee05330847a873a1a8998b40e12a1e0fde25 # v3.0.0
|
||||||
sigs.k8s.io/yaml 9fc95527decd95bb9d28cc2eab08179b2d0f6971 # v1.2.0
|
sigs.k8s.io/yaml 9fc95527decd95bb9d28cc2eab08179b2d0f6971 # v1.2.0
|
||||||
|
|
||||||
# cni dependencies
|
# cni dependencies
|
||||||
|
24
vendor/k8s.io/api/README.md
generated
vendored
24
vendor/k8s.io/api/README.md
generated
vendored
@ -6,6 +6,30 @@ Schema of the external API types that are served by the Kubernetes API server.
|
|||||||
|
|
||||||
This library is the canonical location of the Kubernetes API definition. Most likely interaction with this repository is as a dependency of client-go.
|
This library is the canonical location of the Kubernetes API definition. Most likely interaction with this repository is as a dependency of client-go.
|
||||||
|
|
||||||
|
It is published separately to avoid diamond dependency problems for users who
|
||||||
|
depend on more than one of `k8s.io/client-go`, `k8s.io/apimachinery`,
|
||||||
|
`k8s.io/apiserver`...
|
||||||
|
|
||||||
|
## Recommended Use
|
||||||
|
|
||||||
|
We recommend using the go types in this repo. You may serialize them directly to
|
||||||
|
JSON.
|
||||||
|
|
||||||
|
If you want to store or interact with proto-formatted Kubernetes API objects, we
|
||||||
|
recommend using the "official" serialization stack in `k8s.io/apimachinery`.
|
||||||
|
Directly serializing these types to proto will not result in data that matches
|
||||||
|
the wire format or is compatible with other kubernetes ecosystem tools. The
|
||||||
|
reason is that the wire format includes a magic prefix and an envelope proto.
|
||||||
|
Please see:
|
||||||
|
https://kubernetes.io/docs/reference/using-api/api-concepts/#protobuf-encoding
|
||||||
|
|
||||||
|
For the same reason, we do not recommend embedding these proto objects within
|
||||||
|
your own proto definitions. It is better to store Kubernetes objects as byte
|
||||||
|
arrays, in the wire format, which is self-describing. This permits you to use
|
||||||
|
either JSON or binary (proto) wire formats without code changes. It will be
|
||||||
|
difficult for you to operate on both Custom Resources and built-in types
|
||||||
|
otherwise.
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
Branches track Kubernetes branches and are compatible with that repo.
|
Branches track Kubernetes branches and are compatible with that repo.
|
||||||
|
1922
vendor/k8s.io/api/core/v1/generated.pb.go
generated
vendored
1922
vendor/k8s.io/api/core/v1/generated.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
57
vendor/k8s.io/api/core/v1/generated.proto
generated
vendored
57
vendor/k8s.io/api/core/v1/generated.proto
generated
vendored
@ -455,6 +455,14 @@ message ConfigMap {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
|
// Immutable, if set to true, ensures that data stored in the ConfigMap cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// If not set to true, the field can be modified at any time.
|
||||||
|
// Defaulted to nil.
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
optional bool immutable = 4;
|
||||||
|
|
||||||
// Data contains the configuration data.
|
// Data contains the configuration data.
|
||||||
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
||||||
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
||||||
@ -707,7 +715,7 @@ message Container {
|
|||||||
// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
|
// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
|
||||||
// when it might take a long time to load data or warm a cache, than during steady-state operation.
|
// when it might take a long time to load data or warm a cache, than during steady-state operation.
|
||||||
// This cannot be updated.
|
// This cannot be updated.
|
||||||
// This is an alpha feature enabled by the StartupProbe feature flag.
|
// This is a beta feature enabled by the StartupProbe feature flag.
|
||||||
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
||||||
// +optional
|
// +optional
|
||||||
optional Probe startupProbe = 22;
|
optional Probe startupProbe = 22;
|
||||||
@ -1034,6 +1042,16 @@ message EndpointPort {
|
|||||||
// Default is TCP.
|
// Default is TCP.
|
||||||
// +optional
|
// +optional
|
||||||
optional string protocol = 3;
|
optional string protocol = 3;
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
optional string appProtocol = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointSubset is a group of addresses with a common set of ports. The
|
// EndpointSubset is a group of addresses with a common set of ports. The
|
||||||
@ -1913,7 +1931,6 @@ message LimitRange {
|
|||||||
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
|
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
|
||||||
message LimitRangeItem {
|
message LimitRangeItem {
|
||||||
// Type of resource that this limit applies to.
|
// Type of resource that this limit applies to.
|
||||||
// +optional
|
|
||||||
optional string type = 1;
|
optional string type = 1;
|
||||||
|
|
||||||
// Max usage constraints on this kind by resource name.
|
// Max usage constraints on this kind by resource name.
|
||||||
@ -2455,6 +2472,20 @@ message ObjectFieldSelector {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ObjectReference contains enough information to let you inspect or modify the referred object.
|
// ObjectReference contains enough information to let you inspect or modify the referred object.
|
||||||
|
// ---
|
||||||
|
// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
|
||||||
|
// 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
|
||||||
|
// 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
|
||||||
|
// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
|
||||||
|
// Those cannot be well described when embedded.
|
||||||
|
// 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
|
||||||
|
// 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
|
||||||
|
// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
|
||||||
|
// and the version of the actual struct is irrelevant.
|
||||||
|
// 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
|
||||||
|
// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
|
||||||
|
// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
|
||||||
|
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
message ObjectReference {
|
message ObjectReference {
|
||||||
// Kind of the referent.
|
// Kind of the referent.
|
||||||
@ -3497,8 +3528,7 @@ message PodSpec {
|
|||||||
|
|
||||||
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
||||||
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
||||||
// This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread
|
// This field is only honored by clusters that enable the EvenPodsSpread feature.
|
||||||
// feature.
|
|
||||||
// All topologySpreadConstraints are ANDed.
|
// All topologySpreadConstraints are ANDed.
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=topologyKey
|
// +patchMergeKey=topologyKey
|
||||||
@ -4256,6 +4286,14 @@ message Secret {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
|
// Immutable, if set to true, ensures that data stored in the Secret cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// If not set to true, the field can be modified at any time.
|
||||||
|
// Defaulted to nil.
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
optional bool immutable = 5;
|
||||||
|
|
||||||
// Data contains the secret data. Each key must consist of alphanumeric
|
// Data contains the secret data. Each key must consist of alphanumeric
|
||||||
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
||||||
// base64 encoded string, representing the arbitrary (possibly non-string)
|
// base64 encoded string, representing the arbitrary (possibly non-string)
|
||||||
@ -4581,6 +4619,16 @@ message ServicePort {
|
|||||||
// +optional
|
// +optional
|
||||||
optional string protocol = 2;
|
optional string protocol = 2;
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
optional string appProtocol = 6;
|
||||||
|
|
||||||
// The port that will be exposed by this service.
|
// The port that will be exposed by this service.
|
||||||
optional int32 port = 3;
|
optional int32 port = 3;
|
||||||
|
|
||||||
@ -5271,7 +5319,6 @@ message WindowsSecurityContextOptions {
|
|||||||
// Defaults to the user specified in image metadata if unspecified.
|
// Defaults to the user specified in image metadata if unspecified.
|
||||||
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
||||||
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
||||||
// This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.
|
|
||||||
// +optional
|
// +optional
|
||||||
optional string runAsUserName = 3;
|
optional string runAsUserName = 3;
|
||||||
}
|
}
|
||||||
|
61
vendor/k8s.io/api/core/v1/types.go
generated
vendored
61
vendor/k8s.io/api/core/v1/types.go
generated
vendored
@ -890,6 +890,7 @@ const (
|
|||||||
StorageMediumDefault StorageMedium = "" // use whatever the default is for the node, assume anything we don't explicitly handle is this
|
StorageMediumDefault StorageMedium = "" // use whatever the default is for the node, assume anything we don't explicitly handle is this
|
||||||
StorageMediumMemory StorageMedium = "Memory" // use memory (e.g. tmpfs on linux)
|
StorageMediumMemory StorageMedium = "Memory" // use memory (e.g. tmpfs on linux)
|
||||||
StorageMediumHugePages StorageMedium = "HugePages" // use hugepages
|
StorageMediumHugePages StorageMedium = "HugePages" // use hugepages
|
||||||
|
StorageMediumHugePagesPrefix StorageMedium = "HugePages-" // prefix for full medium notation HugePages-<size>
|
||||||
)
|
)
|
||||||
|
|
||||||
// Protocol defines network protocols supported for things like container ports.
|
// Protocol defines network protocols supported for things like container ports.
|
||||||
@ -2203,7 +2204,7 @@ type Container struct {
|
|||||||
// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
|
// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
|
||||||
// when it might take a long time to load data or warm a cache, than during steady-state operation.
|
// when it might take a long time to load data or warm a cache, than during steady-state operation.
|
||||||
// This cannot be updated.
|
// This cannot be updated.
|
||||||
// This is an alpha feature enabled by the StartupProbe feature flag.
|
// This is a beta feature enabled by the StartupProbe feature flag.
|
||||||
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
||||||
// +optional
|
// +optional
|
||||||
StartupProbe *Probe `json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"`
|
StartupProbe *Probe `json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"`
|
||||||
@ -3038,8 +3039,7 @@ type PodSpec struct {
|
|||||||
Overhead ResourceList `json:"overhead,omitempty" protobuf:"bytes,32,opt,name=overhead"`
|
Overhead ResourceList `json:"overhead,omitempty" protobuf:"bytes,32,opt,name=overhead"`
|
||||||
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
||||||
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
||||||
// This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread
|
// This field is only honored by clusters that enable the EvenPodsSpread feature.
|
||||||
// feature.
|
|
||||||
// All topologySpreadConstraints are ANDed.
|
// All topologySpreadConstraints are ANDed.
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=topologyKey
|
// +patchMergeKey=topologyKey
|
||||||
@ -3990,6 +3990,16 @@ type ServicePort struct {
|
|||||||
// +optional
|
// +optional
|
||||||
Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"`
|
Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,2,opt,name=protocol,casttype=Protocol"`
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,6,opt,name=appProtocol"`
|
||||||
|
|
||||||
// The port that will be exposed by this service.
|
// The port that will be exposed by this service.
|
||||||
Port int32 `json:"port" protobuf:"varint,3,opt,name=port"`
|
Port int32 `json:"port" protobuf:"varint,3,opt,name=port"`
|
||||||
|
|
||||||
@ -4061,6 +4071,7 @@ type ServiceList struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// +genclient
|
// +genclient
|
||||||
|
// +genclient:method=CreateToken,verb=create,subresource=token,input=k8s.io/api/authentication/v1.TokenRequest,result=k8s.io/api/authentication/v1.TokenRequest
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// ServiceAccount binds together:
|
// ServiceAccount binds together:
|
||||||
@ -4204,6 +4215,16 @@ type EndpointPort struct {
|
|||||||
// Default is TCP.
|
// Default is TCP.
|
||||||
// +optional
|
// +optional
|
||||||
Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol,casttype=Protocol"`
|
Protocol Protocol `json:"protocol,omitempty" protobuf:"bytes,3,opt,name=protocol,casttype=Protocol"`
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,opt,name=appProtocol"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
@ -4981,6 +5002,20 @@ type ServiceProxyOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ObjectReference contains enough information to let you inspect or modify the referred object.
|
// ObjectReference contains enough information to let you inspect or modify the referred object.
|
||||||
|
// ---
|
||||||
|
// New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs.
|
||||||
|
// 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage.
|
||||||
|
// 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular
|
||||||
|
// restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted".
|
||||||
|
// Those cannot be well described when embedded.
|
||||||
|
// 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen.
|
||||||
|
// 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity
|
||||||
|
// during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple
|
||||||
|
// and the version of the actual struct is irrelevant.
|
||||||
|
// 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type
|
||||||
|
// will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.
|
||||||
|
// Instead of using this type, create a locally provided and used type that is well-focused on your reference.
|
||||||
|
// For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
type ObjectReference struct {
|
type ObjectReference struct {
|
||||||
// Kind of the referent.
|
// Kind of the referent.
|
||||||
@ -5194,8 +5229,7 @@ const (
|
|||||||
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
|
// LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
|
||||||
type LimitRangeItem struct {
|
type LimitRangeItem struct {
|
||||||
// Type of resource that this limit applies to.
|
// Type of resource that this limit applies to.
|
||||||
// +optional
|
Type LimitType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=LimitType"`
|
||||||
Type LimitType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=LimitType"`
|
|
||||||
// Max usage constraints on this kind by resource name.
|
// Max usage constraints on this kind by resource name.
|
||||||
// +optional
|
// +optional
|
||||||
Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"`
|
Max ResourceList `json:"max,omitempty" protobuf:"bytes,2,rep,name=max,casttype=ResourceList,castkey=ResourceName"`
|
||||||
@ -5424,6 +5458,14 @@ type Secret struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
|
// Immutable, if set to true, ensures that data stored in the Secret cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// If not set to true, the field can be modified at any time.
|
||||||
|
// Defaulted to nil.
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
Immutable *bool `json:"immutable,omitempty" protobuf:"varint,5,opt,name=immutable"`
|
||||||
|
|
||||||
// Data contains the secret data. Each key must consist of alphanumeric
|
// Data contains the secret data. Each key must consist of alphanumeric
|
||||||
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
||||||
// base64 encoded string, representing the arbitrary (possibly non-string)
|
// base64 encoded string, representing the arbitrary (possibly non-string)
|
||||||
@ -5557,6 +5599,14 @@ type ConfigMap struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
|
// Immutable, if set to true, ensures that data stored in the ConfigMap cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// If not set to true, the field can be modified at any time.
|
||||||
|
// Defaulted to nil.
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
Immutable *bool `json:"immutable,omitempty" protobuf:"varint,4,opt,name=immutable"`
|
||||||
|
|
||||||
// Data contains the configuration data.
|
// Data contains the configuration data.
|
||||||
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
||||||
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
||||||
@ -5808,7 +5858,6 @@ type WindowsSecurityContextOptions struct {
|
|||||||
// Defaults to the user specified in image metadata if unspecified.
|
// Defaults to the user specified in image metadata if unspecified.
|
||||||
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
||||||
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
||||||
// This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.
|
|
||||||
// +optional
|
// +optional
|
||||||
RunAsUserName *string `json:"runAsUserName,omitempty" protobuf:"bytes,3,opt,name=runAsUserName"`
|
RunAsUserName *string `json:"runAsUserName,omitempty" protobuf:"bytes,3,opt,name=runAsUserName"`
|
||||||
}
|
}
|
||||||
|
10
vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go
generated
vendored
10
vendor/k8s.io/api/core/v1/types_swagger_doc_generated.go
generated
vendored
@ -252,6 +252,7 @@ func (ComponentStatusList) SwaggerDoc() map[string]string {
|
|||||||
var map_ConfigMap = map[string]string{
|
var map_ConfigMap = map[string]string{
|
||||||
"": "ConfigMap holds configuration data for pods to consume.",
|
"": "ConfigMap holds configuration data for pods to consume.",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
|
"immutable": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.",
|
||||||
"data": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.",
|
"data": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.",
|
||||||
"binaryData": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.",
|
"binaryData": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.",
|
||||||
}
|
}
|
||||||
@ -338,7 +339,7 @@ var map_Container = map[string]string{
|
|||||||
"volumeDevices": "volumeDevices is the list of block devices to be used by the container. This is a beta feature.",
|
"volumeDevices": "volumeDevices is the list of block devices to be used by the container. This is a beta feature.",
|
||||||
"livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"livenessProbe": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"readinessProbe": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"readinessProbe": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"startupProbe": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
"startupProbe": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is a beta feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
|
||||||
"lifecycle": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.",
|
"lifecycle": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.",
|
||||||
"terminationMessagePath": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.",
|
"terminationMessagePath": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.",
|
||||||
"terminationMessagePolicy": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.",
|
"terminationMessagePolicy": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.",
|
||||||
@ -505,6 +506,7 @@ var map_EndpointPort = map[string]string{
|
|||||||
"name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
"name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||||
"port": "The port number of the endpoint.",
|
"port": "The port number of the endpoint.",
|
||||||
"protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
"protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
||||||
|
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (EndpointPort) SwaggerDoc() map[string]string {
|
func (EndpointPort) SwaggerDoc() map[string]string {
|
||||||
@ -1631,7 +1633,7 @@ var map_PodSpec = map[string]string{
|
|||||||
"enableServiceLinks": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.",
|
"enableServiceLinks": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.",
|
||||||
"preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.",
|
"preemptionPolicy": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.",
|
||||||
"overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature.",
|
"overhead": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature.",
|
||||||
"topologySpreadConstraints": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread feature. All topologySpreadConstraints are ANDed.",
|
"topologySpreadConstraints": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. This field is only honored by clusters that enable the EvenPodsSpread feature. All topologySpreadConstraints are ANDed.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (PodSpec) SwaggerDoc() map[string]string {
|
func (PodSpec) SwaggerDoc() map[string]string {
|
||||||
@ -2015,6 +2017,7 @@ func (ScopedResourceSelectorRequirement) SwaggerDoc() map[string]string {
|
|||||||
var map_Secret = map[string]string{
|
var map_Secret = map[string]string{
|
||||||
"": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.",
|
"": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
|
"immutable": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil. This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.",
|
||||||
"data": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4",
|
"data": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4",
|
||||||
"stringData": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.",
|
"stringData": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.",
|
||||||
"type": "Used to facilitate programmatic handling of secret data.",
|
"type": "Used to facilitate programmatic handling of secret data.",
|
||||||
@ -2170,6 +2173,7 @@ var map_ServicePort = map[string]string{
|
|||||||
"": "ServicePort contains information on service's port.",
|
"": "ServicePort contains information on service's port.",
|
||||||
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
||||||
"protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
"protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
||||||
|
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
||||||
"port": "The port that will be exposed by this service.",
|
"port": "The port that will be exposed by this service.",
|
||||||
"targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
|
"targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
|
||||||
"nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
|
"nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
|
||||||
@ -2458,7 +2462,7 @@ var map_WindowsSecurityContextOptions = map[string]string{
|
|||||||
"": "WindowsSecurityContextOptions contain Windows-specific options and credentials.",
|
"": "WindowsSecurityContextOptions contain Windows-specific options and credentials.",
|
||||||
"gmsaCredentialSpecName": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.",
|
"gmsaCredentialSpecName": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.",
|
||||||
"gmsaCredentialSpec": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.",
|
"gmsaCredentialSpec": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.",
|
||||||
"runAsUserName": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.",
|
"runAsUserName": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (WindowsSecurityContextOptions) SwaggerDoc() map[string]string {
|
func (WindowsSecurityContextOptions) SwaggerDoc() map[string]string {
|
||||||
|
28
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go
generated
vendored
28
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go
generated
vendored
@ -519,6 +519,11 @@ func (in *ConfigMap) DeepCopyInto(out *ConfigMap) {
|
|||||||
*out = *in
|
*out = *in
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
|
if in.Immutable != nil {
|
||||||
|
in, out := &in.Immutable, &out.Immutable
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Data != nil {
|
if in.Data != nil {
|
||||||
in, out := &in.Data, &out.Data
|
in, out := &in.Data, &out.Data
|
||||||
*out = make(map[string]string, len(*in))
|
*out = make(map[string]string, len(*in))
|
||||||
@ -1091,6 +1096,11 @@ func (in *EndpointAddress) DeepCopy() *EndpointAddress {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
|
func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.AppProtocol != nil {
|
||||||
|
in, out := &in.AppProtocol, &out.AppProtocol
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1124,7 +1134,9 @@ func (in *EndpointSubset) DeepCopyInto(out *EndpointSubset) {
|
|||||||
if in.Ports != nil {
|
if in.Ports != nil {
|
||||||
in, out := &in.Ports, &out.Ports
|
in, out := &in.Ports, &out.Ports
|
||||||
*out = make([]EndpointPort, len(*in))
|
*out = make([]EndpointPort, len(*in))
|
||||||
copy(*out, *in)
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -4663,6 +4675,11 @@ func (in *Secret) DeepCopyInto(out *Secret) {
|
|||||||
*out = *in
|
*out = *in
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
|
if in.Immutable != nil {
|
||||||
|
in, out := &in.Immutable, &out.Immutable
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Data != nil {
|
if in.Data != nil {
|
||||||
in, out := &in.Data, &out.Data
|
in, out := &in.Data, &out.Data
|
||||||
*out = make(map[string][]byte, len(*in))
|
*out = make(map[string][]byte, len(*in))
|
||||||
@ -5112,6 +5129,11 @@ func (in *ServiceList) DeepCopyObject() runtime.Object {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *ServicePort) DeepCopyInto(out *ServicePort) {
|
func (in *ServicePort) DeepCopyInto(out *ServicePort) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.AppProtocol != nil {
|
||||||
|
in, out := &in.AppProtocol, &out.AppProtocol
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
out.TargetPort = in.TargetPort
|
out.TargetPort = in.TargetPort
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -5157,7 +5179,9 @@ func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec) {
|
|||||||
if in.Ports != nil {
|
if in.Ports != nil {
|
||||||
in, out := &in.Ports, &out.Ports
|
in, out := &in.Ports, &out.Ports
|
||||||
*out = make([]ServicePort, len(*in))
|
*out = make([]ServicePort, len(*in))
|
||||||
copy(*out, *in)
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if in.Selector != nil {
|
if in.Selector != nil {
|
||||||
in, out := &in.Selector, &out.Selector
|
in, out := &in.Selector, &out.Selector
|
||||||
|
6
vendor/k8s.io/api/go.mod
generated
vendored
6
vendor/k8s.io/api/go.mod
generated
vendored
@ -5,13 +5,13 @@ module k8s.io/api
|
|||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery v0.18.0-beta.1
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
||||||
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
||||||
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-beta.1
|
||||||
)
|
)
|
||||||
|
19
vendor/k8s.io/apimachinery/go.mod
generated
vendored
19
vendor/k8s.io/apimachinery/go.mod
generated
vendored
@ -7,33 +7,34 @@ go 1.13
|
|||||||
require (
|
require (
|
||||||
github.com/davecgh/go-spew v1.1.1
|
github.com/davecgh/go-spew v1.1.1
|
||||||
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
|
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
|
||||||
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e
|
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153
|
||||||
github.com/evanphx/json-patch v4.2.0+incompatible
|
github.com/evanphx/json-patch v4.2.0+incompatible
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
||||||
github.com/golang/protobuf v1.3.2
|
github.com/golang/protobuf v1.3.2
|
||||||
github.com/google/go-cmp v0.3.0
|
github.com/google/go-cmp v0.3.0
|
||||||
github.com/google/gofuzz v1.0.0
|
github.com/google/gofuzz v1.1.0
|
||||||
github.com/google/uuid v1.1.1
|
github.com/google/uuid v1.1.1
|
||||||
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
|
github.com/googleapis/gnostic v0.1.0
|
||||||
github.com/hashicorp/golang-lru v0.5.1
|
github.com/hashicorp/golang-lru v0.5.1
|
||||||
github.com/json-iterator/go v1.1.8
|
github.com/json-iterator/go v1.1.8
|
||||||
github.com/kr/pretty v0.1.0 // indirect
|
github.com/kr/pretty v0.1.0 // indirect
|
||||||
github.com/modern-go/reflect2 v1.0.1
|
github.com/modern-go/reflect2 v1.0.1
|
||||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
|
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
|
||||||
github.com/onsi/ginkgo v1.10.1 // indirect
|
github.com/onsi/ginkgo v1.11.0 // indirect
|
||||||
github.com/onsi/gomega v1.7.0 // indirect
|
github.com/onsi/gomega v1.7.0 // indirect
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
||||||
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 // indirect
|
golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7 // indirect
|
||||||
golang.org/x/text v0.3.2 // indirect
|
golang.org/x/text v0.3.2 // indirect
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
||||||
gopkg.in/inf.v0 v0.9.1
|
gopkg.in/inf.v0 v0.9.1
|
||||||
gopkg.in/yaml.v2 v2.2.4
|
gopkg.in/yaml.v2 v2.2.8
|
||||||
k8s.io/klog v1.0.0
|
k8s.io/klog v1.0.0
|
||||||
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
|
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
|
||||||
sigs.k8s.io/yaml v1.1.0
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200207200219-5e70324e7c1c
|
||||||
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
|
2
vendor/k8s.io/apimachinery/pkg/api/resource/generated.pb.go
generated
vendored
2
vendor/k8s.io/apimachinery/pkg/api/resource/generated.pb.go
generated
vendored
@ -36,7 +36,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func (m *Quantity) Reset() { *m = Quantity{} }
|
func (m *Quantity) Reset() { *m = Quantity{} }
|
||||||
func (*Quantity) ProtoMessage() {}
|
func (*Quantity) ProtoMessage() {}
|
||||||
|
4
vendor/k8s.io/apimachinery/pkg/api/resource/math.go
generated
vendored
4
vendor/k8s.io/apimachinery/pkg/api/resource/math.go
generated
vendored
@ -39,10 +39,6 @@ var (
|
|||||||
// Commonly needed inf.Dec values-- treat as read only!
|
// Commonly needed inf.Dec values-- treat as read only!
|
||||||
decZero = inf.NewDec(0, 0)
|
decZero = inf.NewDec(0, 0)
|
||||||
decOne = inf.NewDec(1, 0)
|
decOne = inf.NewDec(1, 0)
|
||||||
decMinusOne = inf.NewDec(-1, 0)
|
|
||||||
decThousand = inf.NewDec(1000, 0)
|
|
||||||
dec1024 = inf.NewDec(1024, 0)
|
|
||||||
decMinus1024 = inf.NewDec(-1024, 0)
|
|
||||||
|
|
||||||
// Largest (in magnitude) number allowed.
|
// Largest (in magnitude) number allowed.
|
||||||
maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64
|
maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64
|
||||||
|
5
vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go
generated
vendored
5
vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go
generated
vendored
@ -634,6 +634,11 @@ func (q Quantity) MarshalJSON() ([]byte, error) {
|
|||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ToUnstructured implements the value.UnstructuredConverter interface.
|
||||||
|
func (q Quantity) ToUnstructured() interface{} {
|
||||||
|
return q.String()
|
||||||
|
}
|
||||||
|
|
||||||
// UnmarshalJSON implements the json.Unmarshaller interface.
|
// UnmarshalJSON implements the json.Unmarshaller interface.
|
||||||
// TODO: Remove support for leading/trailing whitespace
|
// TODO: Remove support for leading/trailing whitespace
|
||||||
func (q *Quantity) UnmarshalJSON(value []byte) error {
|
func (q *Quantity) UnmarshalJSON(value []byte) error {
|
||||||
|
5
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
generated
vendored
5
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/duration.go
generated
vendored
@ -49,6 +49,11 @@ func (d Duration) MarshalJSON() ([]byte, error) {
|
|||||||
return json.Marshal(d.Duration.String())
|
return json.Marshal(d.Duration.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ToUnstructured implements the value.UnstructuredConverter interface.
|
||||||
|
func (d Duration) ToUnstructured() interface{} {
|
||||||
|
return d.Duration.String()
|
||||||
|
}
|
||||||
|
|
||||||
// OpenAPISchemaType is used by the kube-openapi generator when constructing
|
// OpenAPISchemaType is used by the kube-openapi generator when constructing
|
||||||
// the OpenAPI spec of this type.
|
// the OpenAPI spec of this type.
|
||||||
//
|
//
|
||||||
|
56
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go
generated
vendored
56
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go
generated
vendored
@ -47,7 +47,7 @@ var _ = time.Kitchen
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func (m *APIGroup) Reset() { *m = APIGroup{} }
|
func (m *APIGroup) Reset() { *m = APIGroup{} }
|
||||||
func (*APIGroup) ProtoMessage() {}
|
func (*APIGroup) ProtoMessage() {}
|
||||||
@ -11004,6 +11004,7 @@ func (m *WatchEvent) Unmarshal(dAtA []byte) error {
|
|||||||
func skipGenerated(dAtA []byte) (n int, err error) {
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
depth := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -11035,10 +11036,8 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iNdEx, nil
|
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
return iNdEx, nil
|
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -11059,55 +11058,30 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
return 0, ErrInvalidLengthGenerated
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 3:
|
case 3:
|
||||||
for {
|
depth++
|
||||||
var innerWire uint64
|
|
||||||
var start int = iNdEx
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return 0, ErrIntOverflowGenerated
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return 0, io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
innerWire |= (uint64(b) & 0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
innerWireType := int(innerWire & 0x7)
|
|
||||||
if innerWireType == 4 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
next, err := skipGenerated(dAtA[start:])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
iNdEx = start + next
|
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 4:
|
case 4:
|
||||||
return iNdEx, nil
|
if depth == 0 {
|
||||||
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
||||||
|
}
|
||||||
|
depth--
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
return iNdEx, nil
|
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
panic("unreachable")
|
if depth == 0 {
|
||||||
|
return iNdEx, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
||||||
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
||||||
)
|
)
|
||||||
|
10
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
generated
vendored
10
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
generated
vendored
@ -153,6 +153,16 @@ func (t Time) MarshalJSON() ([]byte, error) {
|
|||||||
return buf, nil
|
return buf, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ToUnstructured implements the value.UnstructuredConverter interface.
|
||||||
|
func (t Time) ToUnstructured() interface{} {
|
||||||
|
if t.IsZero() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
buf := make([]byte, 0, len(time.RFC3339))
|
||||||
|
buf = t.UTC().AppendFormat(buf, time.RFC3339)
|
||||||
|
return string(buf)
|
||||||
|
}
|
||||||
|
|
||||||
// OpenAPISchemaType is used by the kube-openapi generator when constructing
|
// OpenAPISchemaType is used by the kube-openapi generator when constructing
|
||||||
// the OpenAPI spec of this type.
|
// the OpenAPI spec of this type.
|
||||||
//
|
//
|
||||||
|
56
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go
generated
vendored
56
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/generated.pb.go
generated
vendored
@ -42,7 +42,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} }
|
func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} }
|
||||||
func (*PartialObjectMetadataList) ProtoMessage() {}
|
func (*PartialObjectMetadataList) ProtoMessage() {}
|
||||||
@ -332,6 +332,7 @@ func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error {
|
|||||||
func skipGenerated(dAtA []byte) (n int, err error) {
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
depth := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -363,10 +364,8 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iNdEx, nil
|
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
return iNdEx, nil
|
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -387,55 +386,30 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
return 0, ErrInvalidLengthGenerated
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 3:
|
case 3:
|
||||||
for {
|
depth++
|
||||||
var innerWire uint64
|
|
||||||
var start int = iNdEx
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return 0, ErrIntOverflowGenerated
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return 0, io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
innerWire |= (uint64(b) & 0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
innerWireType := int(innerWire & 0x7)
|
|
||||||
if innerWireType == 4 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
next, err := skipGenerated(dAtA[start:])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
iNdEx = start + next
|
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 4:
|
case 4:
|
||||||
return iNdEx, nil
|
if depth == 0 {
|
||||||
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
||||||
|
}
|
||||||
|
depth--
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
return iNdEx, nil
|
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
panic("unreachable")
|
if depth == 0 {
|
||||||
|
return iNdEx, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
||||||
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
||||||
)
|
)
|
||||||
|
30
vendor/k8s.io/apimachinery/pkg/conversion/converter.go
generated
vendored
30
vendor/k8s.io/apimachinery/pkg/conversion/converter.go
generated
vendored
@ -138,10 +138,6 @@ type Scope interface {
|
|||||||
// parameters, you'll run out of stack space before anything useful happens.
|
// parameters, you'll run out of stack space before anything useful happens.
|
||||||
Convert(src, dest interface{}, flags FieldMatchingFlags) error
|
Convert(src, dest interface{}, flags FieldMatchingFlags) error
|
||||||
|
|
||||||
// DefaultConvert performs the default conversion, without calling a conversion func
|
|
||||||
// on the current stack frame. This makes it safe to call from a conversion func.
|
|
||||||
DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error
|
|
||||||
|
|
||||||
// SrcTags and DestTags contain the struct tags that src and dest had, respectively.
|
// SrcTags and DestTags contain the struct tags that src and dest had, respectively.
|
||||||
// If the enclosing object was not a struct, then these will contain no tags, of course.
|
// If the enclosing object was not a struct, then these will contain no tags, of course.
|
||||||
SrcTag() reflect.StructTag
|
SrcTag() reflect.StructTag
|
||||||
@ -274,12 +270,6 @@ func (s *scope) Convert(src, dest interface{}, flags FieldMatchingFlags) error {
|
|||||||
return s.converter.Convert(src, dest, flags, s.meta)
|
return s.converter.Convert(src, dest, flags, s.meta)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultConvert continues a conversion, performing a default conversion (no conversion func)
|
|
||||||
// for the current stack frame.
|
|
||||||
func (s *scope) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags) error {
|
|
||||||
return s.converter.DefaultConvert(src, dest, flags, s.meta)
|
|
||||||
}
|
|
||||||
|
|
||||||
// SrcTag returns the tag of the struct containing the current source item, if any.
|
// SrcTag returns the tag of the struct containing the current source item, if any.
|
||||||
func (s *scope) SrcTag() reflect.StructTag {
|
func (s *scope) SrcTag() reflect.StructTag {
|
||||||
return s.srcStack.top().tag
|
return s.srcStack.top().tag
|
||||||
@ -432,18 +422,6 @@ func (c *Converter) Convert(src, dest interface{}, flags FieldMatchingFlags, met
|
|||||||
return c.doConversion(src, dest, flags, meta, c.convert)
|
return c.doConversion(src, dest, flags, meta, c.convert)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultConvert will translate src to dest if it knows how. Both must be pointers.
|
|
||||||
// No conversion func is used. If the default copying mechanism
|
|
||||||
// doesn't work on this type pair, an error will be returned.
|
|
||||||
// Read the comments on the various FieldMatchingFlags constants to understand
|
|
||||||
// what the 'flags' parameter does.
|
|
||||||
// 'meta' is given to allow you to pass information to conversion functions,
|
|
||||||
// it is not used by DefaultConvert() other than storing it in the scope.
|
|
||||||
// Not safe for objects with cyclic references!
|
|
||||||
func (c *Converter) DefaultConvert(src, dest interface{}, flags FieldMatchingFlags, meta *Meta) error {
|
|
||||||
return c.doConversion(src, dest, flags, meta, c.defaultConvert)
|
|
||||||
}
|
|
||||||
|
|
||||||
type conversionFunc func(sv, dv reflect.Value, scope *scope) error
|
type conversionFunc func(sv, dv reflect.Value, scope *scope) error
|
||||||
|
|
||||||
func (c *Converter) doConversion(src, dest interface{}, flags FieldMatchingFlags, meta *Meta, f conversionFunc) error {
|
func (c *Converter) doConversion(src, dest interface{}, flags FieldMatchingFlags, meta *Meta, f conversionFunc) error {
|
||||||
@ -523,14 +501,6 @@ func (c *Converter) convert(sv, dv reflect.Value, scope *scope) error {
|
|||||||
return c.callUntyped(sv, dv, f, scope)
|
return c.callUntyped(sv, dv, f, scope)
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.defaultConvert(sv, dv, scope)
|
|
||||||
}
|
|
||||||
|
|
||||||
// defaultConvert recursively copies sv into dv. no conversion function is called
|
|
||||||
// for the current stack frame (but conversion functions may be called for nested objects)
|
|
||||||
func (c *Converter) defaultConvert(sv, dv reflect.Value, scope *scope) error {
|
|
||||||
dt, st := dv.Type(), sv.Type()
|
|
||||||
|
|
||||||
if !dv.CanSet() {
|
if !dv.CanSet() {
|
||||||
return scope.errorf("Cannot set dest. (Tried to deep copy something with unexported fields?)")
|
return scope.errorf("Cannot set dest. (Tried to deep copy something with unexported fields?)")
|
||||||
}
|
}
|
||||||
|
122
vendor/k8s.io/apimachinery/pkg/runtime/converter.go
generated
vendored
122
vendor/k8s.io/apimachinery/pkg/runtime/converter.go
generated
vendored
@ -17,7 +17,6 @@ limitations under the License.
|
|||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
encodingjson "encoding/json"
|
encodingjson "encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
@ -32,6 +31,7 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/conversion"
|
"k8s.io/apimachinery/pkg/conversion"
|
||||||
"k8s.io/apimachinery/pkg/util/json"
|
"k8s.io/apimachinery/pkg/util/json"
|
||||||
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
|
||||||
|
"sigs.k8s.io/structured-merge-diff/v3/value"
|
||||||
|
|
||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
)
|
)
|
||||||
@ -68,13 +68,8 @@ func newFieldsCache() *fieldsCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
marshalerType = reflect.TypeOf(new(encodingjson.Marshaler)).Elem()
|
|
||||||
unmarshalerType = reflect.TypeOf(new(encodingjson.Unmarshaler)).Elem()
|
|
||||||
mapStringInterfaceType = reflect.TypeOf(map[string]interface{}{})
|
mapStringInterfaceType = reflect.TypeOf(map[string]interface{}{})
|
||||||
stringType = reflect.TypeOf(string(""))
|
stringType = reflect.TypeOf(string(""))
|
||||||
int64Type = reflect.TypeOf(int64(0))
|
|
||||||
float64Type = reflect.TypeOf(float64(0))
|
|
||||||
boolType = reflect.TypeOf(bool(false))
|
|
||||||
fieldCache = newFieldsCache()
|
fieldCache = newFieldsCache()
|
||||||
|
|
||||||
// DefaultUnstructuredConverter performs unstructured to Go typed object conversions.
|
// DefaultUnstructuredConverter performs unstructured to Go typed object conversions.
|
||||||
@ -208,13 +203,9 @@ func fromUnstructured(sv, dv reflect.Value) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the object has a custom JSON marshaller/unmarshaller.
|
// Check if the object has a custom JSON marshaller/unmarshaller.
|
||||||
if reflect.PtrTo(dt).Implements(unmarshalerType) {
|
entry := value.TypeReflectEntryOf(dv.Type())
|
||||||
data, err := json.Marshal(sv.Interface())
|
if entry.CanConvertFromUnstructured() {
|
||||||
if err != nil {
|
return entry.FromUnstructured(sv, dv)
|
||||||
return fmt.Errorf("error encoding %s to json: %v", st.String(), err)
|
|
||||||
}
|
|
||||||
unmarshaler := dv.Addr().Interface().(encodingjson.Unmarshaler)
|
|
||||||
return unmarshaler.UnmarshalJSON(data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch dt.Kind() {
|
switch dt.Kind() {
|
||||||
@ -256,6 +247,7 @@ func fieldInfoFromField(structType reflect.Type, field int) *fieldInfo {
|
|||||||
for i := range items {
|
for i := range items {
|
||||||
if items[i] == "omitempty" {
|
if items[i] == "omitempty" {
|
||||||
info.omitempty = true
|
info.omitempty = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -483,112 +475,28 @@ func toUnstructuredViaJSON(obj interface{}, u *map[string]interface{}) error {
|
|||||||
return json.Unmarshal(data, u)
|
return json.Unmarshal(data, u)
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
|
||||||
nullBytes = []byte("null")
|
|
||||||
trueBytes = []byte("true")
|
|
||||||
falseBytes = []byte("false")
|
|
||||||
)
|
|
||||||
|
|
||||||
func getMarshaler(v reflect.Value) (encodingjson.Marshaler, bool) {
|
|
||||||
// Check value receivers if v is not a pointer and pointer receivers if v is a pointer
|
|
||||||
if v.Type().Implements(marshalerType) {
|
|
||||||
return v.Interface().(encodingjson.Marshaler), true
|
|
||||||
}
|
|
||||||
// Check pointer receivers if v is not a pointer
|
|
||||||
if v.Kind() != reflect.Ptr && v.CanAddr() {
|
|
||||||
v = v.Addr()
|
|
||||||
if v.Type().Implements(marshalerType) {
|
|
||||||
return v.Interface().(encodingjson.Marshaler), true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nil, false
|
|
||||||
}
|
|
||||||
|
|
||||||
func toUnstructured(sv, dv reflect.Value) error {
|
func toUnstructured(sv, dv reflect.Value) error {
|
||||||
// Check if the object has a custom JSON marshaller/unmarshaller.
|
// Check if the object has a custom string converter.
|
||||||
if marshaler, ok := getMarshaler(sv); ok {
|
entry := value.TypeReflectEntryOf(sv.Type())
|
||||||
if sv.Kind() == reflect.Ptr && sv.IsNil() {
|
if entry.CanConvertToUnstructured() {
|
||||||
// We're done - we don't need to store anything.
|
v, err := entry.ToUnstructured(sv)
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
data, err := marshaler.MarshalJSON()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch {
|
if v != nil {
|
||||||
case len(data) == 0:
|
dv.Set(reflect.ValueOf(v))
|
||||||
return fmt.Errorf("error decoding from json: empty value")
|
|
||||||
|
|
||||||
case bytes.Equal(data, nullBytes):
|
|
||||||
// We're done - we don't need to store anything.
|
|
||||||
|
|
||||||
case bytes.Equal(data, trueBytes):
|
|
||||||
dv.Set(reflect.ValueOf(true))
|
|
||||||
|
|
||||||
case bytes.Equal(data, falseBytes):
|
|
||||||
dv.Set(reflect.ValueOf(false))
|
|
||||||
|
|
||||||
case data[0] == '"':
|
|
||||||
var result string
|
|
||||||
err := json.Unmarshal(data, &result)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("error decoding string from json: %v", err)
|
|
||||||
}
|
}
|
||||||
dv.Set(reflect.ValueOf(result))
|
|
||||||
|
|
||||||
case data[0] == '{':
|
|
||||||
result := make(map[string]interface{})
|
|
||||||
err := json.Unmarshal(data, &result)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("error decoding object from json: %v", err)
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(result))
|
|
||||||
|
|
||||||
case data[0] == '[':
|
|
||||||
result := make([]interface{}, 0)
|
|
||||||
err := json.Unmarshal(data, &result)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("error decoding array from json: %v", err)
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(result))
|
|
||||||
|
|
||||||
default:
|
|
||||||
var (
|
|
||||||
resultInt int64
|
|
||||||
resultFloat float64
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
if err = json.Unmarshal(data, &resultInt); err == nil {
|
|
||||||
dv.Set(reflect.ValueOf(resultInt))
|
|
||||||
} else if err = json.Unmarshal(data, &resultFloat); err == nil {
|
|
||||||
dv.Set(reflect.ValueOf(resultFloat))
|
|
||||||
} else {
|
|
||||||
return fmt.Errorf("error decoding number from json: %v", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
st := sv.Type()
|
||||||
st, dt := sv.Type(), dv.Type()
|
|
||||||
switch st.Kind() {
|
switch st.Kind() {
|
||||||
case reflect.String:
|
case reflect.String:
|
||||||
if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 {
|
|
||||||
dv.Set(reflect.New(stringType))
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(sv.String()))
|
dv.Set(reflect.ValueOf(sv.String()))
|
||||||
return nil
|
return nil
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 {
|
|
||||||
dv.Set(reflect.New(boolType))
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(sv.Bool()))
|
dv.Set(reflect.ValueOf(sv.Bool()))
|
||||||
return nil
|
return nil
|
||||||
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
||||||
if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 {
|
|
||||||
dv.Set(reflect.New(int64Type))
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(sv.Int()))
|
dv.Set(reflect.ValueOf(sv.Int()))
|
||||||
return nil
|
return nil
|
||||||
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
|
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
|
||||||
@ -596,15 +504,9 @@ func toUnstructured(sv, dv reflect.Value) error {
|
|||||||
if uVal > math.MaxInt64 {
|
if uVal > math.MaxInt64 {
|
||||||
return fmt.Errorf("unsigned value %d does not fit into int64 (overflow)", uVal)
|
return fmt.Errorf("unsigned value %d does not fit into int64 (overflow)", uVal)
|
||||||
}
|
}
|
||||||
if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 {
|
|
||||||
dv.Set(reflect.New(int64Type))
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(int64(uVal)))
|
dv.Set(reflect.ValueOf(int64(uVal)))
|
||||||
return nil
|
return nil
|
||||||
case reflect.Float32, reflect.Float64:
|
case reflect.Float32, reflect.Float64:
|
||||||
if dt.Kind() == reflect.Interface && dv.NumMethod() == 0 {
|
|
||||||
dv.Set(reflect.New(float64Type))
|
|
||||||
}
|
|
||||||
dv.Set(reflect.ValueOf(sv.Float()))
|
dv.Set(reflect.ValueOf(sv.Float()))
|
||||||
return nil
|
return nil
|
||||||
case reflect.Map:
|
case reflect.Map:
|
||||||
|
56
vendor/k8s.io/apimachinery/pkg/runtime/generated.pb.go
generated
vendored
56
vendor/k8s.io/apimachinery/pkg/runtime/generated.pb.go
generated
vendored
@ -40,7 +40,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func (m *RawExtension) Reset() { *m = RawExtension{} }
|
func (m *RawExtension) Reset() { *m = RawExtension{} }
|
||||||
func (*RawExtension) ProtoMessage() {}
|
func (*RawExtension) ProtoMessage() {}
|
||||||
@ -772,6 +772,7 @@ func (m *Unknown) Unmarshal(dAtA []byte) error {
|
|||||||
func skipGenerated(dAtA []byte) (n int, err error) {
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
depth := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -803,10 +804,8 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iNdEx, nil
|
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
return iNdEx, nil
|
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -827,55 +826,30 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
return 0, ErrInvalidLengthGenerated
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 3:
|
case 3:
|
||||||
for {
|
depth++
|
||||||
var innerWire uint64
|
|
||||||
var start int = iNdEx
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return 0, ErrIntOverflowGenerated
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return 0, io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
innerWire |= (uint64(b) & 0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
innerWireType := int(innerWire & 0x7)
|
|
||||||
if innerWireType == 4 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
next, err := skipGenerated(dAtA[start:])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
iNdEx = start + next
|
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 4:
|
case 4:
|
||||||
return iNdEx, nil
|
if depth == 0 {
|
||||||
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
||||||
|
}
|
||||||
|
depth--
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
return iNdEx, nil
|
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
panic("unreachable")
|
if depth == 0 {
|
||||||
|
return iNdEx, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
||||||
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
||||||
)
|
)
|
||||||
|
2
vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go
generated
vendored
2
vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.pb.go
generated
vendored
@ -36,7 +36,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.proto", fileDescriptor_0462724132518e0d)
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/schema/generated.proto", fileDescriptor_0462724132518e0d)
|
||||||
|
8
vendor/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go
generated
vendored
8
vendor/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go
generated
vendored
@ -123,15 +123,11 @@ func negotiateProtocol(clientProtocols, serverProtocols []string) string {
|
|||||||
func Handshake(req *http.Request, w http.ResponseWriter, serverProtocols []string) (string, error) {
|
func Handshake(req *http.Request, w http.ResponseWriter, serverProtocols []string) (string, error) {
|
||||||
clientProtocols := req.Header[http.CanonicalHeaderKey(HeaderProtocolVersion)]
|
clientProtocols := req.Header[http.CanonicalHeaderKey(HeaderProtocolVersion)]
|
||||||
if len(clientProtocols) == 0 {
|
if len(clientProtocols) == 0 {
|
||||||
// Kube 1.0 clients didn't support subprotocol negotiation.
|
return "", fmt.Errorf("unable to upgrade: %s is required", HeaderProtocolVersion)
|
||||||
// TODO require clientProtocols once Kube 1.0 is no longer supported
|
|
||||||
return "", nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(serverProtocols) == 0 {
|
if len(serverProtocols) == 0 {
|
||||||
// Kube 1.0 servers didn't support subprotocol negotiation. This is mainly for testing.
|
panic(fmt.Errorf("unable to upgrade: serverProtocols is required"))
|
||||||
// TODO require serverProtocols once Kube 1.0 is no longer supported
|
|
||||||
return "", nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
negotiatedProtocol := negotiateProtocol(clientProtocols, serverProtocols)
|
negotiatedProtocol := negotiateProtocol(clientProtocols, serverProtocols)
|
||||||
|
56
vendor/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go
generated
vendored
56
vendor/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go
generated
vendored
@ -38,7 +38,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
func (m *IntOrString) Reset() { *m = IntOrString{} }
|
func (m *IntOrString) Reset() { *m = IntOrString{} }
|
||||||
func (*IntOrString) ProtoMessage() {}
|
func (*IntOrString) ProtoMessage() {}
|
||||||
@ -289,6 +289,7 @@ func (m *IntOrString) Unmarshal(dAtA []byte) error {
|
|||||||
func skipGenerated(dAtA []byte) (n int, err error) {
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
depth := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -320,10 +321,8 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iNdEx, nil
|
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
return iNdEx, nil
|
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -344,55 +343,30 @@ func skipGenerated(dAtA []byte) (n int, err error) {
|
|||||||
return 0, ErrInvalidLengthGenerated
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 3:
|
case 3:
|
||||||
for {
|
depth++
|
||||||
var innerWire uint64
|
|
||||||
var start int = iNdEx
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return 0, ErrIntOverflowGenerated
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return 0, io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
innerWire |= (uint64(b) & 0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
innerWireType := int(innerWire & 0x7)
|
|
||||||
if innerWireType == 4 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
next, err := skipGenerated(dAtA[start:])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
iNdEx = start + next
|
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthGenerated
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 4:
|
case 4:
|
||||||
return iNdEx, nil
|
if depth == 0 {
|
||||||
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
||||||
|
}
|
||||||
|
depth--
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
return iNdEx, nil
|
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthGenerated
|
||||||
}
|
}
|
||||||
panic("unreachable")
|
if depth == 0 {
|
||||||
|
return iNdEx, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
||||||
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
||||||
)
|
)
|
||||||
|
3
vendor/k8s.io/apimachinery/pkg/util/intstr/intstr.go
generated
vendored
3
vendor/k8s.io/apimachinery/pkg/util/intstr/intstr.go
generated
vendored
@ -97,7 +97,8 @@ func (intstr *IntOrString) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// IntValue returns the IntVal if type Int, or if
|
// IntValue returns the IntVal if type Int, or if
|
||||||
// it is a String, will attempt a conversion to int.
|
// it is a String, will attempt a conversion to int,
|
||||||
|
// returning 0 if a parsing error occurs.
|
||||||
func (intstr *IntOrString) IntValue() int {
|
func (intstr *IntOrString) IntValue() int {
|
||||||
if intstr.Type == String {
|
if intstr.Type == String {
|
||||||
i, _ := strconv.Atoi(intstr.StrVal)
|
i, _ := strconv.Atoi(intstr.StrVal)
|
||||||
|
40
vendor/k8s.io/apiserver/go.mod
generated
vendored
40
vendor/k8s.io/apiserver/go.mod
generated
vendored
@ -17,11 +17,11 @@ require (
|
|||||||
github.com/evanphx/json-patch v4.2.0+incompatible
|
github.com/evanphx/json-patch v4.2.0+incompatible
|
||||||
github.com/go-openapi/jsonreference v0.19.3 // indirect
|
github.com/go-openapi/jsonreference v0.19.3 // indirect
|
||||||
github.com/go-openapi/spec v0.19.3
|
github.com/go-openapi/spec v0.19.3
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/google/go-cmp v0.3.0
|
github.com/google/go-cmp v0.3.0
|
||||||
github.com/google/gofuzz v1.0.0
|
github.com/google/gofuzz v1.1.0
|
||||||
github.com/google/uuid v1.1.1
|
github.com/google/uuid v1.1.1
|
||||||
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
|
github.com/googleapis/gnostic v0.1.0
|
||||||
github.com/gorilla/websocket v1.4.0 // indirect
|
github.com/gorilla/websocket v1.4.0 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
|
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
|
||||||
github.com/hashicorp/golang-lru v0.5.1
|
github.com/hashicorp/golang-lru v0.5.1
|
||||||
@ -30,37 +30,37 @@ require (
|
|||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021 // indirect
|
github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021 // indirect
|
||||||
github.com/prometheus/client_golang v1.0.0
|
github.com/prometheus/client_golang v1.0.0
|
||||||
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
|
github.com/prometheus/client_model v0.2.0
|
||||||
github.com/sirupsen/logrus v1.4.2 // indirect
|
github.com/sirupsen/logrus v1.4.2 // indirect
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
|
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
|
||||||
go.uber.org/zap v1.10.0
|
go.uber.org/zap v1.10.0
|
||||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586
|
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
|
||||||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
||||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
|
||||||
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 // indirect
|
google.golang.org/grpc v1.26.0
|
||||||
google.golang.org/grpc v1.23.1
|
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0
|
gopkg.in/natefinch/lumberjack.v2 v2.0.0
|
||||||
gopkg.in/square/go-jose.v2 v2.2.2
|
gopkg.in/square/go-jose.v2 v2.2.2
|
||||||
gopkg.in/yaml.v2 v2.2.4
|
gopkg.in/yaml.v2 v2.2.8
|
||||||
gotest.tools v2.2.0+incompatible // indirect
|
gotest.tools v2.2.0+incompatible // indirect
|
||||||
k8s.io/api v0.18.0-alpha.1
|
k8s.io/api v0.18.0-beta.1
|
||||||
k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery v0.18.0-beta.1
|
||||||
k8s.io/client-go v0.18.0-alpha.1
|
k8s.io/client-go v0.18.0-beta.1
|
||||||
k8s.io/component-base v0.18.0-alpha.1
|
k8s.io/component-base v0.18.0-beta.1
|
||||||
k8s.io/klog v1.0.0
|
k8s.io/klog v1.0.0
|
||||||
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
|
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
|
||||||
k8s.io/utils v0.0.0-20191114184206-e782cd3c129f
|
k8s.io/utils v0.0.0-20200117235808-5f6fbceb4c31
|
||||||
sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06
|
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.5
|
||||||
sigs.k8s.io/yaml v1.1.0
|
sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200207200219-5e70324e7c1c
|
||||||
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
||||||
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
||||||
k8s.io/api => k8s.io/api v0.18.0-alpha.1
|
k8s.io/api => k8s.io/api v0.18.0-beta.1
|
||||||
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-beta.1
|
||||||
k8s.io/client-go => k8s.io/client-go v0.18.0-alpha.1
|
k8s.io/client-go => k8s.io/client-go v0.18.0-beta.1
|
||||||
k8s.io/component-base => k8s.io/component-base v0.18.0-alpha.1
|
k8s.io/component-base => k8s.io/component-base v0.18.0-beta.1
|
||||||
)
|
)
|
||||||
|
12
vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go
generated
vendored
12
vendor/k8s.io/apiserver/pkg/server/httplog/httplog.go
generated
vendored
@ -158,9 +158,17 @@ func (rl *respLogger) Log() {
|
|||||||
latency := time.Since(rl.startTime)
|
latency := time.Since(rl.startTime)
|
||||||
if klog.V(3) {
|
if klog.V(3) {
|
||||||
if !rl.hijacked {
|
if !rl.hijacked {
|
||||||
klog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) %v [%s %s]%v%v", rl.req.Method, rl.req.RequestURI, latency, rl.status, rl.req.UserAgent(), rl.req.RemoteAddr, rl.statusStack, rl.addedInfo))
|
klog.InfoDepth(1, fmt.Sprintf("verb=%q URI=%q latency=%v resp=%v UserAgent=%q srcIP=%q: %v%v",
|
||||||
|
rl.req.Method, rl.req.RequestURI,
|
||||||
|
latency, rl.status,
|
||||||
|
rl.req.UserAgent(), rl.req.RemoteAddr,
|
||||||
|
rl.statusStack, rl.addedInfo,
|
||||||
|
))
|
||||||
} else {
|
} else {
|
||||||
klog.InfoDepth(1, fmt.Sprintf("%s %s: (%v) hijacked [%s %s]", rl.req.Method, rl.req.RequestURI, latency, rl.req.UserAgent(), rl.req.RemoteAddr))
|
klog.InfoDepth(1, fmt.Sprintf("verb=%q URI=%q latency=%v UserAgent=%q srcIP=%q: hijacked",
|
||||||
|
rl.req.Method, rl.req.RequestURI,
|
||||||
|
latency, rl.req.UserAgent(), rl.req.RemoteAddr,
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
20
vendor/k8s.io/client-go/go.mod
generated
vendored
20
vendor/k8s.io/client-go/go.mod
generated
vendored
@ -10,34 +10,34 @@ require (
|
|||||||
github.com/Azure/go-autorest/autorest/adal v0.5.0
|
github.com/Azure/go-autorest/autorest/adal v0.5.0
|
||||||
github.com/davecgh/go-spew v1.1.1
|
github.com/davecgh/go-spew v1.1.1
|
||||||
github.com/evanphx/json-patch v4.2.0+incompatible
|
github.com/evanphx/json-patch v4.2.0+incompatible
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
||||||
github.com/golang/protobuf v1.3.2
|
github.com/golang/protobuf v1.3.2
|
||||||
github.com/google/btree v1.0.0 // indirect
|
github.com/google/btree v1.0.0 // indirect
|
||||||
github.com/google/gofuzz v1.0.0
|
github.com/google/gofuzz v1.1.0
|
||||||
github.com/google/uuid v1.1.1
|
github.com/google/uuid v1.1.1
|
||||||
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
|
github.com/googleapis/gnostic v0.1.0
|
||||||
github.com/gophercloud/gophercloud v0.1.0
|
github.com/gophercloud/gophercloud v0.1.0
|
||||||
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
|
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
|
||||||
github.com/imdario/mergo v0.3.5
|
github.com/imdario/mergo v0.3.5
|
||||||
github.com/peterbourgon/diskv v2.0.1+incompatible
|
github.com/peterbourgon/diskv v2.0.1+incompatible
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586
|
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
|
||||||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
||||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
||||||
google.golang.org/appengine v1.5.0 // indirect
|
google.golang.org/appengine v1.5.0 // indirect
|
||||||
k8s.io/api v0.18.0-alpha.1
|
k8s.io/api v0.18.0-beta.1
|
||||||
k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery v0.18.0-beta.1
|
||||||
k8s.io/klog v1.0.0
|
k8s.io/klog v1.0.0
|
||||||
k8s.io/utils v0.0.0-20191114184206-e782cd3c129f
|
k8s.io/utils v0.0.0-20200117235808-5f6fbceb4c31
|
||||||
sigs.k8s.io/yaml v1.1.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
golang.org/x/sys => golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // pinned to release-branch.go1.13
|
||||||
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
||||||
k8s.io/api => k8s.io/api v0.18.0-alpha.1
|
k8s.io/api => k8s.io/api v0.18.0-beta.1
|
||||||
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-alpha.1
|
k8s.io/apimachinery => k8s.io/apimachinery v0.18.0-beta.1
|
||||||
)
|
)
|
||||||
|
125
vendor/k8s.io/client-go/rest/request.go
generated
vendored
125
vendor/k8s.io/client-go/rest/request.go
generated
vendored
@ -30,6 +30,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"golang.org/x/net/http2"
|
"golang.org/x/net/http2"
|
||||||
@ -51,6 +52,9 @@ var (
|
|||||||
// throttled (via the provided rateLimiter) for more than longThrottleLatency will
|
// throttled (via the provided rateLimiter) for more than longThrottleLatency will
|
||||||
// be logged.
|
// be logged.
|
||||||
longThrottleLatency = 50 * time.Millisecond
|
longThrottleLatency = 50 * time.Millisecond
|
||||||
|
|
||||||
|
// extraLongThrottleLatency defines the threshold for logging requests at log level 2.
|
||||||
|
extraLongThrottleLatency = 1 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
// HTTPClient is an interface for testing a request object.
|
// HTTPClient is an interface for testing a request object.
|
||||||
@ -61,8 +65,8 @@ type HTTPClient interface {
|
|||||||
// ResponseWrapper is an interface for getting a response.
|
// ResponseWrapper is an interface for getting a response.
|
||||||
// The response may be either accessed as a raw data (the whole output is put into memory) or as a stream.
|
// The response may be either accessed as a raw data (the whole output is put into memory) or as a stream.
|
||||||
type ResponseWrapper interface {
|
type ResponseWrapper interface {
|
||||||
DoRaw() ([]byte, error)
|
DoRaw(context.Context) ([]byte, error)
|
||||||
Stream() (io.ReadCloser, error)
|
Stream(context.Context) (io.ReadCloser, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// RequestConstructionError is returned when there's an error assembling a request.
|
// RequestConstructionError is returned when there's an error assembling a request.
|
||||||
@ -104,9 +108,6 @@ type Request struct {
|
|||||||
// output
|
// output
|
||||||
err error
|
err error
|
||||||
body io.Reader
|
body io.Reader
|
||||||
|
|
||||||
// This is only used for per-request timeouts, deadlines, and cancellations.
|
|
||||||
ctx context.Context
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRequest creates a new request helper object for accessing runtime.Objects on a server.
|
// NewRequest creates a new request helper object for accessing runtime.Objects on a server.
|
||||||
@ -438,13 +439,6 @@ func (r *Request) Body(obj interface{}) *Request {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// Context adds a context to the request. Contexts are only used for
|
|
||||||
// timeouts, deadlines, and cancellations.
|
|
||||||
func (r *Request) Context(ctx context.Context) *Request {
|
|
||||||
r.ctx = ctx
|
|
||||||
return r
|
|
||||||
}
|
|
||||||
|
|
||||||
// URL returns the current working URL.
|
// URL returns the current working URL.
|
||||||
func (r *Request) URL() *url.URL {
|
func (r *Request) URL() *url.URL {
|
||||||
p := r.pathPrefix
|
p := r.pathPrefix
|
||||||
@ -548,29 +542,56 @@ func (r Request) finalURLTemplate() url.URL {
|
|||||||
return *url
|
return *url
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Request) tryThrottle() error {
|
func (r *Request) tryThrottle(ctx context.Context) error {
|
||||||
if r.rateLimiter == nil {
|
if r.rateLimiter == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
var err error
|
|
||||||
if r.ctx != nil {
|
|
||||||
err = r.rateLimiter.Wait(r.ctx)
|
|
||||||
} else {
|
|
||||||
r.rateLimiter.Accept()
|
|
||||||
}
|
|
||||||
|
|
||||||
if latency := time.Since(now); latency > longThrottleLatency {
|
err := r.rateLimiter.Wait(ctx)
|
||||||
|
|
||||||
|
latency := time.Since(now)
|
||||||
|
if latency > longThrottleLatency {
|
||||||
klog.V(3).Infof("Throttling request took %v, request: %s:%s", latency, r.verb, r.URL().String())
|
klog.V(3).Infof("Throttling request took %v, request: %s:%s", latency, r.verb, r.URL().String())
|
||||||
}
|
}
|
||||||
|
if latency > extraLongThrottleLatency {
|
||||||
|
globalThrottledLogger.Log(2, fmt.Sprintf("Throttling request took %v, request: %s:%s", latency, r.verb, r.URL().String()))
|
||||||
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type throttledLogger struct {
|
||||||
|
logTimeLock sync.RWMutex
|
||||||
|
lastLogTime time.Time
|
||||||
|
minLogInterval time.Duration
|
||||||
|
}
|
||||||
|
|
||||||
|
var globalThrottledLogger = &throttledLogger{
|
||||||
|
minLogInterval: 1 * time.Second,
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b *throttledLogger) Log(level klog.Level, message string) {
|
||||||
|
if bool(klog.V(level)) {
|
||||||
|
if func() bool {
|
||||||
|
b.logTimeLock.RLock()
|
||||||
|
defer b.logTimeLock.RUnlock()
|
||||||
|
return time.Since(b.lastLogTime) > b.minLogInterval
|
||||||
|
}() {
|
||||||
|
b.logTimeLock.Lock()
|
||||||
|
defer b.logTimeLock.Unlock()
|
||||||
|
if time.Since(b.lastLogTime) > b.minLogInterval {
|
||||||
|
klog.V(level).Info(message)
|
||||||
|
b.lastLogTime = time.Now()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Watch attempts to begin watching the requested location.
|
// Watch attempts to begin watching the requested location.
|
||||||
// Returns a watch.Interface, or an error.
|
// Returns a watch.Interface, or an error.
|
||||||
func (r *Request) Watch() (watch.Interface, error) {
|
func (r *Request) Watch(ctx context.Context) (watch.Interface, error) {
|
||||||
// We specifically don't want to rate limit watches, so we
|
// We specifically don't want to rate limit watches, so we
|
||||||
// don't use r.rateLimiter here.
|
// don't use r.rateLimiter here.
|
||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
@ -582,9 +603,7 @@ func (r *Request) Watch() (watch.Interface, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if r.ctx != nil {
|
req = req.WithContext(ctx)
|
||||||
req = req.WithContext(r.ctx)
|
|
||||||
}
|
|
||||||
req.Header = r.headers
|
req.Header = r.headers
|
||||||
client := r.c.Client
|
client := r.c.Client
|
||||||
if client == nil {
|
if client == nil {
|
||||||
@ -659,12 +678,12 @@ func updateURLMetrics(req *Request, resp *http.Response, err error) {
|
|||||||
// Returns io.ReadCloser which could be used for streaming of the response, or an error
|
// Returns io.ReadCloser which could be used for streaming of the response, or an error
|
||||||
// Any non-2xx http status code causes an error. If we get a non-2xx code, we try to convert the body into an APIStatus object.
|
// Any non-2xx http status code causes an error. If we get a non-2xx code, we try to convert the body into an APIStatus object.
|
||||||
// If we can, we return that as an error. Otherwise, we create an error that lists the http status and the content of the response.
|
// If we can, we return that as an error. Otherwise, we create an error that lists the http status and the content of the response.
|
||||||
func (r *Request) Stream() (io.ReadCloser, error) {
|
func (r *Request) Stream(ctx context.Context) (io.ReadCloser, error) {
|
||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return nil, r.err
|
return nil, r.err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := r.tryThrottle(); err != nil {
|
if err := r.tryThrottle(ctx); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -676,9 +695,7 @@ func (r *Request) Stream() (io.ReadCloser, error) {
|
|||||||
if r.body != nil {
|
if r.body != nil {
|
||||||
req.Body = ioutil.NopCloser(r.body)
|
req.Body = ioutil.NopCloser(r.body)
|
||||||
}
|
}
|
||||||
if r.ctx != nil {
|
req = req.WithContext(ctx)
|
||||||
req = req.WithContext(r.ctx)
|
|
||||||
}
|
|
||||||
req.Header = r.headers
|
req.Header = r.headers
|
||||||
client := r.c.Client
|
client := r.c.Client
|
||||||
if client == nil {
|
if client == nil {
|
||||||
@ -746,7 +763,7 @@ func (r *Request) requestPreflightCheck() error {
|
|||||||
// received. It handles retry behavior and up front validation of requests. It will invoke
|
// received. It handles retry behavior and up front validation of requests. It will invoke
|
||||||
// fn at most once. It will return an error if a problem occurred prior to connecting to the
|
// fn at most once. It will return an error if a problem occurred prior to connecting to the
|
||||||
// server - the provided function is responsible for handling server errors.
|
// server - the provided function is responsible for handling server errors.
|
||||||
func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
func (r *Request) request(ctx context.Context, fn func(*http.Request, *http.Response)) error {
|
||||||
//Metrics for total request latency
|
//Metrics for total request latency
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
defer func() {
|
defer func() {
|
||||||
@ -767,26 +784,30 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
|||||||
client = http.DefaultClient
|
client = http.DefaultClient
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Throttle the first try before setting up the timeout configured on the
|
||||||
|
// client. We don't want a throttled client to return timeouts to callers
|
||||||
|
// before it makes a single request.
|
||||||
|
if err := r.tryThrottle(ctx); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
if r.timeout > 0 {
|
||||||
|
var cancel context.CancelFunc
|
||||||
|
ctx, cancel = context.WithTimeout(ctx, r.timeout)
|
||||||
|
defer cancel()
|
||||||
|
}
|
||||||
|
|
||||||
// Right now we make about ten retry attempts if we get a Retry-After response.
|
// Right now we make about ten retry attempts if we get a Retry-After response.
|
||||||
maxRetries := 10
|
maxRetries := 10
|
||||||
retries := 0
|
retries := 0
|
||||||
for {
|
for {
|
||||||
|
|
||||||
url := r.URL().String()
|
url := r.URL().String()
|
||||||
req, err := http.NewRequest(r.verb, url, r.body)
|
req, err := http.NewRequest(r.verb, url, r.body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if r.timeout > 0 {
|
req = req.WithContext(ctx)
|
||||||
if r.ctx == nil {
|
|
||||||
r.ctx = context.Background()
|
|
||||||
}
|
|
||||||
var cancelFn context.CancelFunc
|
|
||||||
r.ctx, cancelFn = context.WithTimeout(r.ctx, r.timeout)
|
|
||||||
defer cancelFn()
|
|
||||||
}
|
|
||||||
if r.ctx != nil {
|
|
||||||
req = req.WithContext(r.ctx)
|
|
||||||
}
|
|
||||||
req.Header = r.headers
|
req.Header = r.headers
|
||||||
|
|
||||||
r.backoff.Sleep(r.backoff.CalculateBackoff(r.URL()))
|
r.backoff.Sleep(r.backoff.CalculateBackoff(r.URL()))
|
||||||
@ -794,7 +815,7 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
|||||||
// We are retrying the request that we already send to apiserver
|
// We are retrying the request that we already send to apiserver
|
||||||
// at least once before.
|
// at least once before.
|
||||||
// This request should also be throttled with the client-internal rate limiter.
|
// This request should also be throttled with the client-internal rate limiter.
|
||||||
if err := r.tryThrottle(); err != nil {
|
if err := r.tryThrottle(ctx); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -806,7 +827,7 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
|||||||
r.backoff.UpdateBackoff(r.URL(), err, resp.StatusCode)
|
r.backoff.UpdateBackoff(r.URL(), err, resp.StatusCode)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// "Connection reset by peer", "Connection refused" or "apiserver is shutting down" are usually a transient errors.
|
// "Connection reset by peer" or "apiserver is shutting down" are usually a transient errors.
|
||||||
// Thus in case of "GET" operations, we simply retry it.
|
// Thus in case of "GET" operations, we simply retry it.
|
||||||
// We are not automatically retrying "write" operations, as
|
// We are not automatically retrying "write" operations, as
|
||||||
// they are not idempotent.
|
// they are not idempotent.
|
||||||
@ -814,7 +835,7 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// For connection errors and apiserver shutdown errors retry.
|
// For connection errors and apiserver shutdown errors retry.
|
||||||
if net.IsConnectionReset(err) || net.IsConnectionRefused(err) {
|
if net.IsConnectionReset(err) {
|
||||||
// For the purpose of retry, we set the artificial "retry-after" response.
|
// For the purpose of retry, we set the artificial "retry-after" response.
|
||||||
// TODO: Should we clean the original response if it exists?
|
// TODO: Should we clean the original response if it exists?
|
||||||
resp = &http.Response{
|
resp = &http.Response{
|
||||||
@ -869,13 +890,9 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error {
|
|||||||
// Error type:
|
// Error type:
|
||||||
// * If the server responds with a status: *errors.StatusError or *errors.UnexpectedObjectError
|
// * If the server responds with a status: *errors.StatusError or *errors.UnexpectedObjectError
|
||||||
// * http.Client.Do errors are returned directly.
|
// * http.Client.Do errors are returned directly.
|
||||||
func (r *Request) Do() Result {
|
func (r *Request) Do(ctx context.Context) Result {
|
||||||
if err := r.tryThrottle(); err != nil {
|
|
||||||
return Result{err: err}
|
|
||||||
}
|
|
||||||
|
|
||||||
var result Result
|
var result Result
|
||||||
err := r.request(func(req *http.Request, resp *http.Response) {
|
err := r.request(ctx, func(req *http.Request, resp *http.Response) {
|
||||||
result = r.transformResponse(resp, req)
|
result = r.transformResponse(resp, req)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -885,13 +902,9 @@ func (r *Request) Do() Result {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DoRaw executes the request but does not process the response body.
|
// DoRaw executes the request but does not process the response body.
|
||||||
func (r *Request) DoRaw() ([]byte, error) {
|
func (r *Request) DoRaw(ctx context.Context) ([]byte, error) {
|
||||||
if err := r.tryThrottle(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
var result Result
|
var result Result
|
||||||
err := r.request(func(req *http.Request, resp *http.Response) {
|
err := r.request(ctx, func(req *http.Request, resp *http.Response) {
|
||||||
result.body, result.err = ioutil.ReadAll(resp.Body)
|
result.body, result.err = ioutil.ReadAll(resp.Body)
|
||||||
glogBody("Response Body", result.body)
|
glogBody("Response Body", result.body)
|
||||||
if resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent {
|
if resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent {
|
||||||
|
10
vendor/k8s.io/client-go/util/connrotation/connrotation.go
generated
vendored
10
vendor/k8s.io/client-go/util/connrotation/connrotation.go
generated
vendored
@ -77,11 +77,6 @@ func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.
|
|||||||
|
|
||||||
closable := &closableConn{Conn: conn}
|
closable := &closableConn{Conn: conn}
|
||||||
|
|
||||||
// Start tracking the connection
|
|
||||||
d.mu.Lock()
|
|
||||||
d.conns[closable] = struct{}{}
|
|
||||||
d.mu.Unlock()
|
|
||||||
|
|
||||||
// When the connection is closed, remove it from the map. This will
|
// When the connection is closed, remove it from the map. This will
|
||||||
// be no-op if the connection isn't in the map, e.g. if CloseAll()
|
// be no-op if the connection isn't in the map, e.g. if CloseAll()
|
||||||
// is called.
|
// is called.
|
||||||
@ -91,6 +86,11 @@ func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.
|
|||||||
d.mu.Unlock()
|
d.mu.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start tracking the connection
|
||||||
|
d.mu.Lock()
|
||||||
|
d.conns[closable] = struct{}{}
|
||||||
|
d.mu.Unlock()
|
||||||
|
|
||||||
return closable, nil
|
return closable, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
11
vendor/k8s.io/cri-api/go.mod
generated
vendored
11
vendor/k8s.io/cri-api/go.mod
generated
vendored
@ -6,17 +6,16 @@ go 1.13
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/golang/protobuf v1.3.2 // indirect
|
github.com/google/go-cmp v0.3.0 // indirect
|
||||||
github.com/kr/pretty v0.1.0 // indirect
|
github.com/kr/pretty v0.1.0 // indirect
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 // indirect
|
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9 // indirect
|
||||||
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456 // indirect
|
golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7 // indirect
|
||||||
golang.org/x/text v0.3.2 // indirect
|
golang.org/x/text v0.3.2 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 // indirect
|
google.golang.org/grpc v1.26.0
|
||||||
google.golang.org/grpc v1.23.1
|
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
||||||
gopkg.in/yaml.v2 v2.2.4 // indirect
|
gopkg.in/yaml.v2 v2.2.8 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
|
729
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.pb.go
generated
vendored
729
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.pb.go
generated
vendored
@ -44,7 +44,7 @@ var _ = math.Inf
|
|||||||
// is compatible with the proto package it is being compiled against.
|
// is compatible with the proto package it is being compiled against.
|
||||||
// A compilation error at this line likely means your copy of the
|
// A compilation error at this line likely means your copy of the
|
||||||
// proto package needs to be updated.
|
// proto package needs to be updated.
|
||||||
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||||
|
|
||||||
type Protocol int32
|
type Protocol int32
|
||||||
|
|
||||||
@ -124,18 +124,27 @@ const (
|
|||||||
// For example, a container with a PID namespace of NODE expects to view
|
// For example, a container with a PID namespace of NODE expects to view
|
||||||
// all of the processes on the host running the kubelet.
|
// all of the processes on the host running the kubelet.
|
||||||
NamespaceMode_NODE NamespaceMode = 2
|
NamespaceMode_NODE NamespaceMode = 2
|
||||||
|
// TARGET targets the namespace of another container. When this is specified,
|
||||||
|
// a target_id must be specified in NamespaceOption and refer to a container
|
||||||
|
// previously created with NamespaceMode CONTAINER. This containers namespace
|
||||||
|
// will be made to match that of container target_id.
|
||||||
|
// For example, a container with a PID namespace of TARGET expects to view
|
||||||
|
// all of the processes that container target_id can view.
|
||||||
|
NamespaceMode_TARGET NamespaceMode = 3
|
||||||
)
|
)
|
||||||
|
|
||||||
var NamespaceMode_name = map[int32]string{
|
var NamespaceMode_name = map[int32]string{
|
||||||
0: "POD",
|
0: "POD",
|
||||||
1: "CONTAINER",
|
1: "CONTAINER",
|
||||||
2: "NODE",
|
2: "NODE",
|
||||||
|
3: "TARGET",
|
||||||
}
|
}
|
||||||
|
|
||||||
var NamespaceMode_value = map[string]int32{
|
var NamespaceMode_value = map[string]int32{
|
||||||
"POD": 0,
|
"POD": 0,
|
||||||
"CONTAINER": 1,
|
"CONTAINER": 1,
|
||||||
"NODE": 2,
|
"NODE": 2,
|
||||||
|
"TARGET": 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x NamespaceMode) String() string {
|
func (x NamespaceMode) String() string {
|
||||||
@ -557,12 +566,16 @@ type NamespaceOption struct {
|
|||||||
// PID namespace for this container/sandbox.
|
// PID namespace for this container/sandbox.
|
||||||
// Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
|
// Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
|
||||||
// The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
|
// The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
|
||||||
// Namespaces currently set by the kubelet: POD, CONTAINER, NODE
|
// Namespaces currently set by the kubelet: POD, CONTAINER, NODE, TARGET
|
||||||
Pid NamespaceMode `protobuf:"varint,2,opt,name=pid,proto3,enum=runtime.v1alpha2.NamespaceMode" json:"pid,omitempty"`
|
Pid NamespaceMode `protobuf:"varint,2,opt,name=pid,proto3,enum=runtime.v1alpha2.NamespaceMode" json:"pid,omitempty"`
|
||||||
// IPC namespace for this container/sandbox.
|
// IPC namespace for this container/sandbox.
|
||||||
// Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
|
// Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
|
||||||
// Namespaces currently set by the kubelet: POD, NODE
|
// Namespaces currently set by the kubelet: POD, NODE
|
||||||
Ipc NamespaceMode `protobuf:"varint,3,opt,name=ipc,proto3,enum=runtime.v1alpha2.NamespaceMode" json:"ipc,omitempty"`
|
Ipc NamespaceMode `protobuf:"varint,3,opt,name=ipc,proto3,enum=runtime.v1alpha2.NamespaceMode" json:"ipc,omitempty"`
|
||||||
|
// Target Container ID for NamespaceMode of TARGET. This container must have been
|
||||||
|
// previously created in the same pod. It is not possible to specify different targets
|
||||||
|
// for each namespace.
|
||||||
|
TargetId string `protobuf:"bytes,4,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
@ -620,6 +633,13 @@ func (m *NamespaceOption) GetIpc() NamespaceMode {
|
|||||||
return NamespaceMode_POD
|
return NamespaceMode_POD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *NamespaceOption) GetTargetId() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.TargetId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
// Int64Value is the wrapper of int64.
|
// Int64Value is the wrapper of int64.
|
||||||
type Int64Value struct {
|
type Int64Value struct {
|
||||||
// The value.
|
// The value.
|
||||||
@ -6912,309 +6932,310 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
||||||
|
|
||||||
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
||||||
// 4821 bytes of a gzipped FileDescriptorProto
|
// 4845 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5c, 0xcd, 0x6f, 0x1b, 0x49,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5c, 0xcd, 0x73, 0x1b, 0x47,
|
||||||
0x76, 0x17, 0xbf, 0x24, 0xf2, 0x51, 0xa4, 0xa8, 0xb2, 0x6c, 0xd1, 0xf4, 0x58, 0xb6, 0xda, 0xe3,
|
0x76, 0x27, 0xbe, 0x48, 0xe0, 0x81, 0x00, 0xc1, 0x16, 0x25, 0x42, 0x90, 0x45, 0x89, 0x23, 0xeb,
|
||||||
0xcf, 0x19, 0xcb, 0x63, 0xcd, 0xac, 0x27, 0xb6, 0x67, 0x6d, 0xd3, 0x92, 0x6c, 0x33, 0x6b, 0x53,
|
0xd3, 0x16, 0x65, 0xd1, 0x5e, 0x39, 0x92, 0x6c, 0x49, 0x10, 0x49, 0x49, 0xc8, 0x4a, 0x20, 0x32,
|
||||||
0x4c, 0x53, 0x9a, 0x8f, 0x9d, 0x01, 0x7a, 0x5b, 0xec, 0x12, 0xd5, 0x6b, 0xb2, 0xbb, 0xa7, 0xbb,
|
0x20, 0xfd, 0xb1, 0x76, 0xd5, 0xec, 0x10, 0xd3, 0x04, 0x67, 0x05, 0xcc, 0x8c, 0x67, 0x06, 0x92,
|
||||||
0x69, 0x5b, 0x1b, 0x20, 0x58, 0x60, 0x91, 0x3d, 0xe4, 0x94, 0x73, 0x8e, 0x9b, 0x43, 0x0e, 0xb9,
|
0xb8, 0xa9, 0x4a, 0x6d, 0xd5, 0x56, 0xf6, 0x90, 0x53, 0xce, 0x39, 0x6e, 0x0e, 0x39, 0xe4, 0x9c,
|
||||||
0x05, 0x08, 0x72, 0xc8, 0x69, 0x83, 0x1c, 0xf6, 0x12, 0x20, 0xa7, 0x4d, 0x82, 0x5c, 0x32, 0x93,
|
0xca, 0x21, 0xa7, 0x4d, 0xe5, 0xb0, 0x97, 0x54, 0x72, 0xda, 0x24, 0x95, 0x4b, 0xec, 0x24, 0x97,
|
||||||
0xe4, 0x12, 0x20, 0x41, 0xfe, 0x80, 0x1c, 0x82, 0xfa, 0xea, 0xef, 0xe6, 0x87, 0xc7, 0xbb, 0x33,
|
0x54, 0x25, 0x95, 0x3f, 0x20, 0x87, 0x54, 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 0x3a, 0xd8, 0x26, 0x32, 0xf5, 0xcc, 0xf9, 0x1c, 0x31,
|
||||||
0x88, 0x89, 0xbc, 0x89, 0x1a, 0x50, 0x74, 0xb0, 0x6a, 0xf7, 0x8e, 0xb0, 0x53, 0xcf, 0xd2, 0x47,
|
0x91, 0x37, 0x51, 0x03, 0x8a, 0x0e, 0x56, 0xed, 0xde, 0x11, 0x76, 0xea, 0x59, 0xfa, 0xc8, 0x6b,
|
||||||
0x5e, 0x9b, 0x48, 0x99, 0x96, 0xab, 0x9b, 0x86, 0x53, 0xcf, 0x31, 0x29, 0xde, 0x94, 0x7e, 0x91,
|
0x13, 0x29, 0xd3, 0x72, 0x75, 0xd3, 0x70, 0xea, 0x39, 0x26, 0xc5, 0x9b, 0xd2, 0xcf, 0x33, 0x50,
|
||||||
0x81, 0x72, 0xc7, 0xb4, 0xdd, 0x67, 0xaa, 0x65, 0xe9, 0x46, 0x1f, 0xdd, 0x82, 0x22, 0xf5, 0x65,
|
0xee, 0x98, 0xb6, 0xfb, 0x4c, 0xb5, 0x2c, 0xdd, 0xe8, 0xa3, 0x5b, 0x50, 0xa4, 0xbe, 0xec, 0x99,
|
||||||
0xcf, 0x1c, 0x50, 0x1f, 0x54, 0x37, 0x1b, 0x1b, 0xd1, 0x61, 0xd9, 0xe8, 0x70, 0x0e, 0xd9, 0xe3,
|
0x03, 0xea, 0x83, 0xea, 0x66, 0x63, 0x23, 0x3a, 0x2c, 0x1b, 0x1d, 0xce, 0x21, 0x7b, 0xbc, 0xe8,
|
||||||
0x45, 0x17, 0xa1, 0xda, 0x33, 0x0d, 0x57, 0xd5, 0x0d, 0x6c, 0x2b, 0x96, 0x69, 0xbb, 0xd4, 0x45,
|
0x22, 0x54, 0x7b, 0xa6, 0xe1, 0xaa, 0xba, 0x81, 0x6d, 0xc5, 0x32, 0x6d, 0x97, 0xba, 0xa8, 0x20,
|
||||||
0x05, 0xb9, 0xe2, 0x51, 0x49, 0x2f, 0xe8, 0x0c, 0x94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, 0x8a, 0x72, 0x95, 0x93, 0x65, 0x46,
|
||||||
0x33, 0x2a, 0xda, 0x86, 0xb2, 0x65, 0x9b, 0x96, 0xda, 0x57, 0x89, 0x1f, 0xeb, 0x05, 0xea, 0x2a,
|
0x45, 0xdb, 0x50, 0xb6, 0x6c, 0xd3, 0x52, 0xfb, 0x2a, 0xf1, 0x63, 0xbd, 0x40, 0x5d, 0x25, 0xc5,
|
||||||
0x29, 0xee, 0x2a, 0x6a, 0x76, 0xc7, 0xe7, 0x94, 0x83, 0x62, 0xd2, 0x5f, 0x65, 0x60, 0x89, 0x04,
|
0x5d, 0x45, 0xcd, 0xee, 0xf8, 0x9c, 0x72, 0x50, 0x4c, 0xfa, 0x87, 0x0c, 0x2c, 0x91, 0xe0, 0x71,
|
||||||
0x8f, 0x63, 0xa9, 0x3d, 0xbc, 0x4b, 0x87, 0x04, 0xdd, 0x86, 0x05, 0x03, 0xbb, 0x2f, 0x4d, 0xfb,
|
0x2c, 0xb5, 0x87, 0x77, 0xe9, 0x90, 0xa0, 0xdb, 0xb0, 0x60, 0x60, 0xf7, 0xa5, 0x69, 0x3f, 0xe7,
|
||||||
0x39, 0x1f, 0x80, 0x73, 0x71, 0xad, 0x9e, 0xcc, 0x33, 0x53, 0xc3, 0xb2, 0xe0, 0x47, 0x37, 0x21,
|
0x03, 0x70, 0x2e, 0xae, 0xd5, 0x93, 0x79, 0x66, 0x6a, 0x58, 0x16, 0xfc, 0xe8, 0x26, 0xe4, 0x2c,
|
||||||
0x67, 0xe9, 0x1a, 0x7d, 0xe1, 0x29, 0xc4, 0x08, 0x2f, 0x11, 0xd1, 0xad, 0x1e, 0xf5, 0xc3, 0x34,
|
0x5d, 0xa3, 0x2f, 0x3c, 0x85, 0x18, 0xe1, 0x25, 0x22, 0xba, 0xd5, 0xa3, 0x7e, 0x98, 0x46, 0x44,
|
||||||
0x22, 0xba, 0xd5, 0x93, 0x24, 0x80, 0x96, 0xe1, 0xde, 0xfa, 0xe0, 0x63,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a9, 0x38,
|
||||||
0x77, 0xb9, 0x1c, 0xf3, 0x60, 0x65, 0x10, 0xa4, 0x35, 0x1e, 0x00, 0x8a, 0x33, 0xcd, 0xe4, 0xd3,
|
0x78, 0x40, 0x4b, 0x1e, 0x5e, 0x7e, 0x7e, 0x6f, 0x9c, 0x1a, 0x66, 0x09, 0x0b, 0xed, 0x2e, 0x97,
|
||||||
0x2e, 0xc9, 0x85, 0x64, 0xaf, 0x9d, 0xb0, 0x4e, 0x1f, 0x52, 0x33, 0xa6, 0x89, 0x15, 0x66, 0xb0,
|
0x63, 0x1e, 0xac, 0x0c, 0x82, 0xb4, 0xc6, 0x03, 0x40, 0x71, 0xa6, 0x99, 0x7c, 0xda, 0x25, 0xb9,
|
||||||
0xcc, 0x25, 0xa4, 0xff, 0xce, 0x01, 0xf8, 0x0f, 0x7f, 0x87, 0x92, 0xe0, 0x03, 0x2f, 0x01, 0xb1,
|
0x90, 0x6c, 0xc4, 0x13, 0xd6, 0xe9, 0x43, 0x6a, 0xc6, 0x34, 0xb1, 0xc2, 0x0c, 0x96, 0xb9, 0x84,
|
||||||
0x52, 0xf2, 0xca, 0x38, 0xc5, 0x89, 0xa9, 0x67, 0x37, 0x9c, 0x7a, 0x58, 0x51, 0x79, 0x7d, 0xac,
|
0xf4, 0xdf, 0x39, 0x00, 0xff, 0xe1, 0xef, 0x50, 0x12, 0x7c, 0xe0, 0x25, 0x20, 0x56, 0x4a, 0x5e,
|
||||||
0x9a, 0x99, 0x93, 0xce, 0xc2, 0x77, 0x2d, 0xe9, 0x3c, 0x85, 0x53, 0xd1, 0x20, 0xe2, 0x19, 0x67,
|
0x19, 0xa7, 0x38, 0x31, 0xf5, 0xec, 0x86, 0x53, 0x0f, 0x2b, 0x2a, 0xaf, 0x8f, 0x55, 0x33, 0x73,
|
||||||
0x13, 0x0a, 0xba, 0x8b, 0x87, 0x0c, 0x98, 0x4a, 0xdc, 0xf4, 0x06, 0x84, 0x18, 0xab, 0xb4, 0x0e,
|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 0x47, 0xe8, 0x1c, 0x94, 0x7b, 0xd6, 0xc8, 0xc1, 0xae, 0x42, 0xfe, 0xd0, 0xf5, 0xb6, 0x24,
|
||||||
0x0c, 0x0f, 0x29, 0x3c, 0x72, 0x34, 0xea, 0x63, 0x4b, 0xed, 0x63, 0x66, 0x9a, 0x58, 0x28, 0x13,
|
0x03, 0x23, 0x6d, 0x59, 0x23, 0x27, 0xc0, 0x30, 0x24, 0xfe, 0x5f, 0x08, 0x32, 0x3c, 0xc3, 0x43,
|
||||||
0xe0, 0x91, 0x27, 0x9c, 0x91, 0x9a, 0x29, 0x57, 0x8f, 0x82, 0x4d, 0x47, 0x7a, 0x08, 0x95, 0x10,
|
0x0a, 0x8f, 0x1c, 0x8d, 0xfa, 0xd8, 0x52, 0xfb, 0x98, 0x99, 0x26, 0x16, 0xca, 0x04, 0x78, 0xe4,
|
||||||
0x03, 0xf1, 0x17, 0x55, 0xeb, 0xe8, 0x3f, 0x11, 0x03, 0x57, 0x24, 0x84, 0xae, 0xfe, 0x13, 0x0a,
|
0x09, 0x67, 0xa4, 0x66, 0xca, 0xd5, 0xa3, 0x60, 0xd3, 0x91, 0x1e, 0x42, 0x25, 0xc4, 0x40, 0xfc,
|
||||||
0x0e, 0xd1, 0xee, 0xa8, 0x23, 0xf3, 0x32, 0x6b, 0x48, 0x2a, 0x54, 0x42, 0x18, 0x0c, 0xd9, 0x0e,
|
0x45, 0xd5, 0x3a, 0xfa, 0x8f, 0xc5, 0xc0, 0x15, 0x09, 0xa1, 0xab, 0xff, 0x98, 0x82, 0x43, 0xb4,
|
||||||
0x53, 0xb0, 0x85, 0x6f, 0x87, 0xc9, 0x6f, 0x42, 0xb3, 0xcd, 0x81, 0x18, 0x57, 0xfa, 0x9b, 0xd0,
|
0x3b, 0xea, 0xc8, 0xbc, 0xcc, 0x1a, 0x92, 0x0a, 0x95, 0x10, 0x06, 0x43, 0xb6, 0xc3, 0x14, 0x6c,
|
||||||
0xdc, 0x63, 0x4b, 0x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, 0x03, 0x58, 0x8c, 0xf4, 0x9a, 0x82, 0x07, 0xf9, 0xd6, 0xca, 0x21, 0x89,
|
||||||
0xdf, 0x08, 0x92, 0x56, 0xf8, 0x66, 0x48, 0xda, 0xe2, 0x8c, 0x48, 0xda, 0x25, 0x9a, 0x4b, 0x45,
|
0x08, 0x6e, 0x93, 0x8d, 0xe1, 0x36, 0x89, 0x48, 0x5a, 0xee, 0x8d, 0x22, 0x69, 0xf9, 0x37, 0x82,
|
||||||
0xef, 0x14, 0xb4, 0x60, 0x13, 0xa7, 0xe2, 0xf5, 0x61, 0x08, 0xd8, 0x3e, 0x82, 0xb8, 0x2d, 0xcc,
|
0xa4, 0x15, 0xbe, 0x1d, 0x92, 0xb6, 0x38, 0x23, 0x92, 0x76, 0x89, 0xe6, 0x52, 0xd1, 0x3b, 0x05,
|
||||||
0x82, 0xb8, 0x15, 0x53, 0x11, 0x37, 0x12, 0x75, 0x96, 0xa5, 0xda, 0x43, 0xd3, 0x16, 0x90, 0x1a,
|
0x2d, 0xd8, 0xc4, 0xa9, 0x78, 0x7d, 0x18, 0x02, 0xd3, 0x8f, 0x20, 0x6e, 0x0b, 0xb3, 0x20, 0x6e,
|
||||||
0xaf, 0x21, 0x97, 0x04, 0x9d, 0xc3, 0x69, 0xa9, 0xe0, 0x1b, 0xa4, 0x81, 0x6f, 0xe8, 0x3c, 0x2c,
|
0xc5, 0x54, 0xc4, 0x8d, 0x44, 0x9d, 0x65, 0xa9, 0xf6, 0xd0, 0xb4, 0x05, 0xa4, 0xc6, 0x6b, 0xc8,
|
||||||
0x1a, 0xa6, 0x62, 0xe0, 0x97, 0x0a, 0x89, 0x05, 0xa7, 0x5e, 0x66, 0x81, 0x61, 0x98, 0x6d, 0xfc,
|
0x25, 0x41, 0xe7, 0x70, 0x5a, 0x2a, 0xf8, 0x06, 0x69, 0xe0, 0x1b, 0x3a, 0x0f, 0x8b, 0x86, 0xa9,
|
||||||
0xb2, 0x43, 0x28, 0x68, 0x1d, 0x16, 0x87, 0xaa, 0xf3, 0x1c, 0x6b, 0x54, 0x95, 0x53, 0xaf, 0xd0,
|
0x18, 0xf8, 0xa5, 0x42, 0x62, 0xc1, 0xa9, 0x97, 0x59, 0x60, 0x18, 0x66, 0x1b, 0xbf, 0xec, 0x10,
|
||||||
0x20, 0x2e, 0x33, 0x1a, 0xd1, 0xe1, 0xa0, 0x8b, 0xe0, 0xbd, 0x24, 0x67, 0xaa, 0x52, 0xa6, 0x8a,
|
0x0a, 0x5a, 0x87, 0xc5, 0xa1, 0xea, 0x3c, 0xc7, 0x1a, 0x55, 0xe5, 0xd4, 0x2b, 0x34, 0x88, 0xcb,
|
||||||
0xa0, 0x52, 0x36, 0xe9, 0x6f, 0x33, 0xb0, 0x12, 0x0e, 0x73, 0x0e, 0xca, 0x3c, 0x86, 0x92, 0x2d,
|
0x8c, 0x46, 0x74, 0x38, 0xe8, 0x22, 0x78, 0x2f, 0xc9, 0x99, 0xaa, 0x94, 0xa9, 0x22, 0xa8, 0x94,
|
||||||
0xf2, 0x2a, 0x0f, 0xed, 0xab, 0x29, 0xdb, 0x80, 0x78, 0x22, 0x96, 0x7d, 0x59, 0xf4, 0xc3, 0x54,
|
0x4d, 0xfa, 0x9b, 0x0c, 0xac, 0x84, 0xc3, 0x9c, 0x83, 0x32, 0x8f, 0xa1, 0x64, 0x8b, 0xbc, 0xca,
|
||||||
0x2c, 0xf0, 0xc6, 0x24, 0x7d, 0x93, 0xd0, 0x40, 0xc9, 0x86, 0x73, 0x9f, 0xe8, 0x86, 0x66, 0xbe,
|
0x43, 0xfb, 0x6a, 0xca, 0x36, 0x20, 0x9e, 0x88, 0x65, 0x5f, 0x16, 0xfd, 0x20, 0x15, 0x0b, 0xbc,
|
||||||
0x74, 0x52, 0x67, 0x69, 0x42, 0xac, 0x64, 0x52, 0x62, 0xa5, 0x67, 0x63, 0x0d, 0x1b, 0xae, 0xae,
|
0x31, 0x49, 0xdf, 0x24, 0x34, 0x50, 0xb2, 0xe1, 0xdc, 0xa7, 0xba, 0xa1, 0x99, 0x2f, 0x9d, 0xd4,
|
||||||
0x0e, 0x14, 0xc7, 0xc2, 0x3d, 0x81, 0x49, 0xf8, 0x64, 0xb2, 0x92, 0x49, 0xbf, 0xcc, 0xc0, 0xa9,
|
0x59, 0x9a, 0x10, 0x2b, 0x99, 0x94, 0x58, 0xe9, 0xd9, 0x58, 0xc3, 0x86, 0xab, 0xab, 0x03, 0xc5,
|
||||||
0x68, 0xa7, 0xdc, 0x67, 0xad, 0xb8, 0xcf, 0xde, 0x89, 0xbf, 0x63, 0x54, 0x38, 0xd1, 0x6b, 0x5f,
|
0xb1, 0x70, 0x4f, 0x60, 0x12, 0x3e, 0x99, 0xac, 0x64, 0xd2, 0x2f, 0x32, 0x70, 0x2a, 0xda, 0x29,
|
||||||
0xa4, 0x7a, 0xed, 0xe6, 0x64, 0x8d, 0x13, 0xfd, 0xf6, 0x97, 0x19, 0x38, 0x9d, 0x6a, 0x46, 0x64,
|
0xf7, 0x59, 0x2b, 0xee, 0xb3, 0x77, 0xe2, 0xef, 0x18, 0x15, 0x4e, 0xf4, 0xda, 0x97, 0xa9, 0x5e,
|
||||||
0x25, 0xcc, 0x44, 0x57, 0x42, 0xbe, 0x8a, 0xf6, 0xcc, 0x91, 0xe1, 0x06, 0x56, 0xd1, 0x2d, 0x7a,
|
0xbb, 0x39, 0x59, 0xe3, 0x44, 0xbf, 0xfd, 0x65, 0x06, 0x4e, 0xa7, 0x9a, 0x11, 0x59, 0x09, 0x33,
|
||||||
0x88, 0xc3, 0x96, 0x2b, 0x65, 0xa8, 0xbe, 0xd2, 0x87, 0xa3, 0x21, 0x5f, 0x46, 0x89, 0xba, 0x67,
|
0xd1, 0x95, 0x90, 0xaf, 0xa2, 0x3d, 0x73, 0x64, 0xb8, 0x81, 0x55, 0x74, 0x8b, 0x9e, 0xf0, 0xb0,
|
||||||
0x8c, 0xf2, 0x1a, 0xeb, 0xa8, 0xd4, 0x84, 0x65, 0xcf, 0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xcf, 0x1c, 0x0e, 0x55, 0x43,
|
||||||
0x26, 0x83, 0x47, 0xb6, 0xff, 0xba, 0x41, 0xd1, 0x5e, 0x9a, 0xd5, 0x4b, 0x32, 0x70, 0xd2, 0xb6,
|
0x13, 0x27, 0x87, 0xbc, 0x49, 0xfc, 0xa7, 0xda, 0x7d, 0xe2, 0x76, 0x42, 0xa6, 0xbf, 0xc9, 0xe0,
|
||||||
0x6e, 0xa3, 0x0d, 0xc8, 0x63, 0xe3, 0x85, 0x28, 0x87, 0x13, 0x4e, 0x0f, 0x45, 0x35, 0x27, 0x53,
|
0x91, 0xed, 0xbf, 0x6e, 0x50, 0xb4, 0x97, 0x66, 0xf5, 0x92, 0x0c, 0x9c, 0xb4, 0xad, 0xdb, 0x68,
|
||||||
0x3e, 0x74, 0x03, 0xe6, 0x87, 0x24, 0x2c, 0x04, 0x10, 0xb0, 0x9a, 0x72, 0x88, 0x26, 0x73, 0x36,
|
0x03, 0xf2, 0xd8, 0x78, 0x21, 0xca, 0xe1, 0x84, 0xa3, 0x45, 0x51, 0xcd, 0xc9, 0x94, 0x0f, 0xdd,
|
||||||
0xb4, 0x09, 0x0b, 0x1a, 0x1d, 0x27, 0x51, 0xc4, 0xd4, 0x13, 0x30, 0x64, 0xca, 0x20, 0x0b, 0x46,
|
0x80, 0xf9, 0x21, 0x09, 0x0b, 0x01, 0x04, 0xac, 0xa6, 0x9c, 0xb0, 0xc9, 0x9c, 0x0d, 0x6d, 0xc2,
|
||||||
0xb4, 0xe3, 0x15, 0xfb, 0xa5, 0xb4, 0x2a, 0x3d, 0x32, 0x14, 0x89, 0x15, 0xff, 0x5e, 0xb8, 0xe2,
|
0x82, 0x46, 0xc7, 0x49, 0x14, 0x31, 0xf5, 0x04, 0x0c, 0x99, 0x32, 0xc8, 0x82, 0x11, 0xed, 0x78,
|
||||||
0x07, 0xaa, 0x6b, 0x73, 0xb2, 0xae, 0xf1, 0x65, 0xff, 0x69, 0x28, 0x0e, 0xcc, 0x3e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xfb, 0x0c, 0xd3, 0x0a, 0xc6, 0x22, 0xcf, 0xac, 0x77,
|
0x63, 0xf4, 0x26, 0xae, 0x85, 0xed, 0xf0, 0x5a, 0xc8, 0xd6, 0xd5, 0x77, 0xc7, 0x69, 0x19, 0xbb,
|
||||||
0x01, 0xbc, 0x24, 0x22, 0x80, 0xad, 0x33, 0x63, 0xde, 0x51, 0x0e, 0xb0, 0x13, 0xb5, 0xa1, 0xa1,
|
0x0a, 0x7e, 0x97, 0x2b, 0xc4, 0x3e, 0xc3, 0xb4, 0x82, 0xb1, 0xc8, 0x33, 0xeb, 0x5d, 0x00, 0x2f,
|
||||||
0xf1, 0xcf, 0xe8, 0xa6, 0xcb, 0x8f, 0x29, 0x07, 0x74, 0xff, 0x57, 0x08, 0xe4, 0x97, 0x94, 0xb3,
|
0x89, 0x08, 0x60, 0xeb, 0xcc, 0x98, 0x77, 0x94, 0x03, 0xec, 0x44, 0x6d, 0x68, 0x68, 0xfc, 0x33,
|
||||||
0xa7, 0xfb, 0x31, 0xd8, 0x75, 0xc6, 0x28, 0xbe, 0x15, 0x46, 0x5d, 0x5f, 0x33, 0xea, 0x62, 0xa0,
|
0xba, 0xe9, 0xf2, 0x63, 0xca, 0x01, 0xdd, 0xff, 0x15, 0x02, 0xf9, 0x25, 0xe5, 0xec, 0xe9, 0x7e,
|
||||||
0x2b, 0xad, 0x5c, 0x54, 0x9b, 0x3f, 0x66, 0x58, 0x57, 0x89, 0x53, 0x9a, 0x74, 0x67, 0x70, 0xa8,
|
0x0c, 0x76, 0x9d, 0x31, 0x8a, 0x6f, 0x85, 0x51, 0xd7, 0xd7, 0x8c, 0xba, 0x18, 0xe8, 0x4a, 0x2b,
|
||||||
0x1b, 0xba, 0x73, 0xc4, 0x9e, 0xcf, 0xb3, 0x9d, 0x81, 0x20, 0x35, 0x29, 0xda, 0x84, 0x5f, 0xe9,
|
0x17, 0xd5, 0xe6, 0x8f, 0x19, 0xd6, 0x55, 0xe2, 0x94, 0x26, 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 0x3c, 0xcb, 0x23, 0xa0, 0xbb, 0x50, 0x38, 0x74, 0x04, 0x64, 0x94,
|
||||||
0x60, 0x8d, 0x9f, 0x61, 0xe5, 0xd2, 0xaa, 0x85, 0xfd, 0xe0, 0x41, 0x38, 0x11, 0x60, 0x37, 0x44,
|
0x08, 0xa0, 0x27, 0x19, 0x22, 0xe7, 0x0f, 0x9d, 0x96, 0x86, 0x3e, 0x02, 0x18, 0x39, 0x58, 0xe3,
|
||||||
0xee, 0x41, 0x59, 0x37, 0x4c, 0x0d, 0xd3, 0xc3, 0x49, 0x8d, 0xa3, 0x4a, 0x13, 0xc4, 0x81, 0x49,
|
0x67, 0x58, 0xb9, 0xb4, 0x6a, 0x61, 0x3f, 0x78, 0x10, 0x4e, 0x04, 0xd8, 0x0d, 0x91, 0x7b, 0x50,
|
||||||
0xec, 0x3b, 0x58, 0x93, 0x30, 0x5f, 0x0b, 0x85, 0x7f, 0x79, 0xa0, 0xb4, 0x61, 0x99, 0x25, 0xad,
|
0xd6, 0x0d, 0x53, 0xc3, 0xf4, 0x70, 0x52, 0xe3, 0xa8, 0xd2, 0x04, 0x71, 0x60, 0x12, 0xfb, 0x0e,
|
||||||
0x43, 0xcf, 0x70, 0x11, 0xb1, 0xeb, 0xe3, 0xde, 0x8e, 0x7a, 0x4b, 0xae, 0xe9, 0xbc, 0xb4, 0x11,
|
0xd6, 0x24, 0xcc, 0xd7, 0x42, 0xe1, 0x5f, 0x1e, 0x28, 0x6d, 0x58, 0x66, 0x49, 0xeb, 0xd0, 0x33,
|
||||||
0xa2, 0xd2, 0x1d, 0x38, 0x19, 0xda, 0x21, 0xcd, 0xb0, 0x65, 0x91, 0x3a, 0x11, 0xa0, 0xc4, 0x0f,
|
0x5c, 0x44, 0xec, 0xfa, 0xb8, 0xb7, 0xa3, 0xde, 0x92, 0x6b, 0x3a, 0x2f, 0x6d, 0x84, 0xa8, 0x74,
|
||||||
0x67, 0x0e, 0x43, 0x88, 0x68, 0x9e, 0x04, 0x43, 0x38, 0x0c, 0x86, 0x70, 0xa4, 0xcf, 0xe1, 0x74,
|
0x07, 0x4e, 0x86, 0x76, 0x48, 0x33, 0x6c, 0x59, 0xa4, 0x4e, 0x04, 0x28, 0xf1, 0xc3, 0x99, 0xc3,
|
||||||
0x08, 0xd1, 0x09, 0x59, 0x74, 0x2f, 0x52, 0xb9, 0x5d, 0x9a, 0xa4, 0x35, 0x52, 0xc2, 0xfd, 0x6f,
|
0x10, 0x22, 0x9a, 0x27, 0xc1, 0x10, 0x0e, 0x83, 0x21, 0x1c, 0xe9, 0x0b, 0x38, 0x1d, 0x42, 0x74,
|
||||||
0x06, 0x56, 0x92, 0x18, 0x5e, 0x13, 0x71, 0xfc, 0x51, 0xca, 0xb5, 0xc1, 0xdb, 0xd3, 0x99, 0xf5,
|
0x42, 0x16, 0xdd, 0x8b, 0x54, 0x6e, 0x97, 0x26, 0x69, 0x8d, 0x94, 0x70, 0xff, 0x9b, 0x81, 0x95,
|
||||||
0x5b, 0x41, 0x6b, 0xf7, 0xa0, 0x91, 0xe4, 0xcf, 0xf8, 0x28, 0xe5, 0x66, 0x19, 0xa5, 0x9f, 0xe7,
|
0x24, 0x86, 0xd7, 0x44, 0x1c, 0x7f, 0x98, 0x72, 0x6d, 0xf0, 0xf6, 0x74, 0x66, 0xfd, 0x46, 0xd0,
|
||||||
0x02, 0xc8, 0x7b, 0xd3, 0x75, 0x6d, 0xfd, 0x60, 0x44, 0x42, 0xfe, 0x8d, 0xa3, 0x59, 0x2d, 0x0f,
|
0xda, 0x3d, 0x68, 0x24, 0xf9, 0x33, 0x3e, 0x4a, 0xb9, 0x59, 0x46, 0xe9, 0x67, 0xb9, 0x00, 0xf2,
|
||||||
0x97, 0x61, 0xae, 0xbd, 0x39, 0x46, 0xdc, 0xb7, 0x23, 0x11, 0x9b, 0xf9, 0x34, 0x8c, 0xcd, 0x30,
|
0xde, 0x74, 0x5d, 0x5b, 0x3f, 0x18, 0x91, 0x90, 0x7f, 0xe3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xed, 0x24, 0x7c, 0x23, 0x90, 0xe4, 0xc0, 0xe4, 0x7b, 0xe0, 0xd2, 0x1c,
|
||||||
0xe1, 0xb2, 0x43, 0x72, 0x44, 0x24, 0xde, 0x6c, 0xa0, 0xc1, 0x1d, 0xba, 0x86, 0x90, 0x14, 0xdc,
|
0x3a, 0x82, 0xa5, 0xc8, 0x55, 0x05, 0x94, 0x20, 0x9e, 0x7c, 0x27, 0xa3, 0x71, 0x75, 0x0a, 0xce,
|
||||||
0x49, 0x97, 0x1f, 0x1a, 0x97, 0x27, 0xf2, 0x05, 0x9d, 0x16, 0xb9, 0x94, 0x90, 0xe4, 0xb4, 0xe4,
|
0x70, 0x44, 0x04, 0xaf, 0x26, 0x24, 0x47, 0x44, 0xc2, 0xc5, 0x87, 0xe4, 0x88, 0x48, 0xbc, 0xe5,
|
||||||
0x4b, 0x0f, 0x8d, 0xab, 0x53, 0x70, 0x46, 0xa3, 0xc0, 0x3f, 0xe2, 0x4c, 0x8b, 0x82, 0xd8, 0x81,
|
0x40, 0x83, 0x3b, 0x74, 0x25, 0x21, 0x29, 0xb8, 0x93, 0x2e, 0x42, 0x34, 0x2e, 0x4f, 0xe4, 0x0b,
|
||||||
0x7c, 0x5a, 0x14, 0xc4, 0x4f, 0x4b, 0x79, 0x14, 0x44, 0x8e, 0x26, 0xaf, 0x4c, 0x71, 0x94, 0x92,
|
0x3a, 0x2d, 0x72, 0x41, 0x21, 0xc9, 0x69, 0xc9, 0x17, 0x20, 0x1a, 0x57, 0xa7, 0xe0, 0x8c, 0x46,
|
||||||
0x1e, 0x05, 0xc9, 0x87, 0x2e, 0xd2, 0x1c, 0xfa, 0x59, 0x06, 0xea, 0x69, 0xc7, 0x14, 0x28, 0xa1,
|
0x81, 0x7f, 0xdc, 0x99, 0x16, 0x05, 0xb1, 0xc3, 0xf9, 0xb4, 0x28, 0x88, 0x9f, 0x9c, 0xf2, 0x28,
|
||||||
0xbe, 0x9b, 0x70, 0xb2, 0xd2, 0xd8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, 0x54, 0x00, 0x25, 0xa0, 0x10, 0xa1, 0xb3, 0x8b,
|
||||||
0x2b, 0x38, 0x29, 0x22, 0x55, 0xef, 0xe5, 0x89, 0x5b, 0x97, 0xf4, 0x49, 0x91, 0xbc, 0x39, 0x62,
|
0xc6, 0xf9, 0x74, 0x06, 0x4f, 0xdd, 0x97, 0xec, 0xdf, 0x98, 0x70, 0xc0, 0x1f, 0xbd, 0x9d, 0xfc,
|
||||||
0x41, 0x12, 0xdf, 0x3c, 0x25, 0x05, 0x49, 0xea, 0x96, 0x35, 0x29, 0x48, 0xd2, 0xf7, 0x63, 0xd2,
|
0xe9, 0x77, 0xf8, 0x7c, 0xa1, 0x71, 0x71, 0x02, 0x57, 0x70, 0x52, 0x44, 0x2a, 0xe0, 0xcb, 0x13,
|
||||||
0x1c, 0x72, 0xe1, 0x44, 0x02, 0x54, 0x86, 0xde, 0x4d, 0x0b, 0xf2, 0x24, 0xdc, 0xae, 0x71, 0x7d,
|
0xb7, 0x31, 0xe9, 0x93, 0x22, 0x79, 0xa3, 0xc4, 0x82, 0x24, 0xbe, 0x91, 0x4a, 0x0a, 0x92, 0xd4,
|
||||||
0x4a, 0xee, 0xe0, 0xe0, 0xf3, 0x49, 0x7f, 0x2e, 0x1d, 0x3f, 0x4a, 0x1d, 0xfc, 0xe8, 0x14, 0xdf,
|
0xed, 0x6b, 0x52, 0x90, 0xa4, 0xef, 0xcd, 0xa4, 0x39, 0xe4, 0xc2, 0x89, 0x04, 0xd8, 0x0c, 0xbd,
|
||||||
0xfc, 0xd7, 0x1c, 0x2c, 0x32, 0x18, 0x94, 0x57, 0x30, 0x9f, 0x01, 0xf8, 0x27, 0x10, 0xe8, 0x42,
|
0x9b, 0x16, 0xe4, 0x49, 0x18, 0x5e, 0xe3, 0xfa, 0x94, 0xdc, 0xc1, 0xc1, 0xe7, 0x93, 0xfe, 0x5c,
|
||||||
0xb2, 0x4f, 0x42, 0xa7, 0x34, 0x8d, 0xb7, 0xc7, 0x33,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x78, 0xa9, 0x3e, 0x09, 0x43, 0x51,
|
||||||
0xeb, 0xb5, 0xcc, 0xbf, 0x7d, 0xbd, 0x96, 0xf9, 0xd3, 0x7f, 0x5f, 0x9b, 0xfb, 0x61, 0x51, 0x48,
|
0xd2, 0xdc, 0xc3, 0x4b, 0xbf, 0xfc, 0x7a, 0x2d, 0xf3, 0xcf, 0x5f, 0xaf, 0xcd, 0xfd, 0xe4, 0x9b,
|
||||||
0x1f, 0xcc, 0xd3, 0xff, 0x31, 0xf4, 0xfe, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe8, 0xc0, 0x76,
|
0xb5, 0xcc, 0x2f, 0xbf, 0x59, 0xcb, 0xfc, 0xe3, 0x37, 0x6b, 0x99, 0x7f, 0xfb, 0x66, 0x2d, 0xf3,
|
||||||
0xe9, 0x29, 0x4a, 0x00, 0x00,
|
0xa7, 0xff, 0xbe, 0x36, 0xf7, 0x83, 0xa2, 0x90, 0x3e, 0x98, 0xa7, 0xff, 0x8c, 0xe8, 0xfd, 0xff,
|
||||||
|
0x0f, 0x00, 0x00, 0xff, 0xff, 0x02, 0xff, 0x47, 0x1a, 0x52, 0x4a, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
@ -8639,6 +8660,13 @@ func (m *NamespaceOption) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
_ = i
|
_ = i
|
||||||
var l int
|
var l int
|
||||||
_ = l
|
_ = l
|
||||||
|
if len(m.TargetId) > 0 {
|
||||||
|
i -= len(m.TargetId)
|
||||||
|
copy(dAtA[i:], m.TargetId)
|
||||||
|
i = encodeVarintApi(dAtA, i, uint64(len(m.TargetId)))
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x22
|
||||||
|
}
|
||||||
if m.Ipc != 0 {
|
if m.Ipc != 0 {
|
||||||
i = encodeVarintApi(dAtA, i, uint64(m.Ipc))
|
i = encodeVarintApi(dAtA, i, uint64(m.Ipc))
|
||||||
i--
|
i--
|
||||||
@ -13554,6 +13582,10 @@ func (m *NamespaceOption) Size() (n int) {
|
|||||||
if m.Ipc != 0 {
|
if m.Ipc != 0 {
|
||||||
n += 1 + sovApi(uint64(m.Ipc))
|
n += 1 + sovApi(uint64(m.Ipc))
|
||||||
}
|
}
|
||||||
|
l = len(m.TargetId)
|
||||||
|
if l > 0 {
|
||||||
|
n += 1 + l + sovApi(uint64(l))
|
||||||
|
}
|
||||||
return n
|
return n
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15615,6 +15647,7 @@ func (this *NamespaceOption) String() string {
|
|||||||
`Network:` + fmt.Sprintf("%v", this.Network) + `,`,
|
`Network:` + fmt.Sprintf("%v", this.Network) + `,`,
|
||||||
`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
|
`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
|
||||||
`Ipc:` + fmt.Sprintf("%v", this.Ipc) + `,`,
|
`Ipc:` + fmt.Sprintf("%v", this.Ipc) + `,`,
|
||||||
|
`TargetId:` + fmt.Sprintf("%v", this.TargetId) + `,`,
|
||||||
`}`,
|
`}`,
|
||||||
}, "")
|
}, "")
|
||||||
return s
|
return s
|
||||||
@ -17866,6 +17899,38 @@ func (m *NamespaceOption) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case 4:
|
||||||
|
if wireType != 2 {
|
||||||
|
return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType)
|
||||||
|
}
|
||||||
|
var stringLen uint64
|
||||||
|
for shift := uint(0); ; shift += 7 {
|
||||||
|
if shift >= 64 {
|
||||||
|
return ErrIntOverflowApi
|
||||||
|
}
|
||||||
|
if iNdEx >= l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
b := dAtA[iNdEx]
|
||||||
|
iNdEx++
|
||||||
|
stringLen |= uint64(b&0x7F) << shift
|
||||||
|
if b < 0x80 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
intStringLen := int(stringLen)
|
||||||
|
if intStringLen < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
postIndex := iNdEx + intStringLen
|
||||||
|
if postIndex < 0 {
|
||||||
|
return ErrInvalidLengthApi
|
||||||
|
}
|
||||||
|
if postIndex > l {
|
||||||
|
return io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
m.TargetId = string(dAtA[iNdEx:postIndex])
|
||||||
|
iNdEx = postIndex
|
||||||
default:
|
default:
|
||||||
iNdEx = preIndex
|
iNdEx = preIndex
|
||||||
skippy, err := skipApi(dAtA[iNdEx:])
|
skippy, err := skipApi(dAtA[iNdEx:])
|
||||||
@ -33001,6 +33066,7 @@ func (m *ReopenContainerLogResponse) Unmarshal(dAtA []byte) error {
|
|||||||
func skipApi(dAtA []byte) (n int, err error) {
|
func skipApi(dAtA []byte) (n int, err error) {
|
||||||
l := len(dAtA)
|
l := len(dAtA)
|
||||||
iNdEx := 0
|
iNdEx := 0
|
||||||
|
depth := 0
|
||||||
for iNdEx < l {
|
for iNdEx < l {
|
||||||
var wire uint64
|
var wire uint64
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -33032,10 +33098,8 @@ func skipApi(dAtA []byte) (n int, err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return iNdEx, nil
|
|
||||||
case 1:
|
case 1:
|
||||||
iNdEx += 8
|
iNdEx += 8
|
||||||
return iNdEx, nil
|
|
||||||
case 2:
|
case 2:
|
||||||
var length int
|
var length int
|
||||||
for shift := uint(0); ; shift += 7 {
|
for shift := uint(0); ; shift += 7 {
|
||||||
@ -33056,55 +33120,30 @@ func skipApi(dAtA []byte) (n int, err error) {
|
|||||||
return 0, ErrInvalidLengthApi
|
return 0, ErrInvalidLengthApi
|
||||||
}
|
}
|
||||||
iNdEx += length
|
iNdEx += length
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthApi
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 3:
|
case 3:
|
||||||
for {
|
depth++
|
||||||
var innerWire uint64
|
|
||||||
var start int = iNdEx
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return 0, ErrIntOverflowApi
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return 0, io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
innerWire |= (uint64(b) & 0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
innerWireType := int(innerWire & 0x7)
|
|
||||||
if innerWireType == 4 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
next, err := skipApi(dAtA[start:])
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
iNdEx = start + next
|
|
||||||
if iNdEx < 0 {
|
|
||||||
return 0, ErrInvalidLengthApi
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return iNdEx, nil
|
|
||||||
case 4:
|
case 4:
|
||||||
return iNdEx, nil
|
if depth == 0 {
|
||||||
|
return 0, ErrUnexpectedEndOfGroupApi
|
||||||
|
}
|
||||||
|
depth--
|
||||||
case 5:
|
case 5:
|
||||||
iNdEx += 4
|
iNdEx += 4
|
||||||
return iNdEx, nil
|
|
||||||
default:
|
default:
|
||||||
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
||||||
}
|
}
|
||||||
|
if iNdEx < 0 {
|
||||||
|
return 0, ErrInvalidLengthApi
|
||||||
}
|
}
|
||||||
panic("unreachable")
|
if depth == 0 {
|
||||||
|
return iNdEx, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, io.ErrUnexpectedEOF
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
|
||||||
ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
|
ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
|
||||||
|
ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
|
||||||
)
|
)
|
||||||
|
13
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
generated
vendored
13
vendor/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
generated
vendored
@ -216,6 +216,13 @@ enum NamespaceMode {
|
|||||||
// For example, a container with a PID namespace of NODE expects to view
|
// For example, a container with a PID namespace of NODE expects to view
|
||||||
// all of the processes on the host running the kubelet.
|
// all of the processes on the host running the kubelet.
|
||||||
NODE = 2;
|
NODE = 2;
|
||||||
|
// TARGET targets the namespace of another container. When this is specified,
|
||||||
|
// a target_id must be specified in NamespaceOption and refer to a container
|
||||||
|
// previously created with NamespaceMode CONTAINER. This containers namespace
|
||||||
|
// will be made to match that of container target_id.
|
||||||
|
// For example, a container with a PID namespace of TARGET expects to view
|
||||||
|
// all of the processes that container target_id can view.
|
||||||
|
TARGET = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NamespaceOption provides options for Linux namespaces.
|
// NamespaceOption provides options for Linux namespaces.
|
||||||
@ -227,12 +234,16 @@ message NamespaceOption {
|
|||||||
// PID namespace for this container/sandbox.
|
// PID namespace for this container/sandbox.
|
||||||
// Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
|
// Note: The CRI default is POD, but the v1.PodSpec default is CONTAINER.
|
||||||
// The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
|
// The kubelet's runtime manager will set this to CONTAINER explicitly for v1 pods.
|
||||||
// Namespaces currently set by the kubelet: POD, CONTAINER, NODE
|
// Namespaces currently set by the kubelet: POD, CONTAINER, NODE, TARGET
|
||||||
NamespaceMode pid = 2;
|
NamespaceMode pid = 2;
|
||||||
// IPC namespace for this container/sandbox.
|
// IPC namespace for this container/sandbox.
|
||||||
// Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
|
// Note: There is currently no way to set CONTAINER scoped IPC in the Kubernetes API.
|
||||||
// Namespaces currently set by the kubelet: POD, NODE
|
// Namespaces currently set by the kubelet: POD, NODE
|
||||||
NamespaceMode ipc = 3;
|
NamespaceMode ipc = 3;
|
||||||
|
// Target Container ID for NamespaceMode of TARGET. This container must have been
|
||||||
|
// previously created in the same pod. It is not possible to specify different targets
|
||||||
|
// for each namespace.
|
||||||
|
string target_id = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Int64Value is the wrapper of int64.
|
// Int64Value is the wrapper of int64.
|
||||||
|
112
vendor/k8s.io/kubernetes/go.mod
generated
vendored
112
vendor/k8s.io/kubernetes/go.mod
generated
vendored
@ -20,14 +20,15 @@ require (
|
|||||||
github.com/Rican7/retry v0.1.0 // indirect
|
github.com/Rican7/retry v0.1.0 // indirect
|
||||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
|
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
|
||||||
github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7 // indirect
|
github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7 // indirect
|
||||||
github.com/aws/aws-sdk-go v1.16.26
|
github.com/aws/aws-sdk-go v1.28.2
|
||||||
github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798
|
github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798
|
||||||
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
|
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
|
||||||
github.com/blang/semver v3.5.0+incompatible
|
github.com/blang/semver v3.5.0+incompatible
|
||||||
github.com/boltdb/bolt v1.3.1 // indirect
|
github.com/boltdb/bolt v1.3.1 // indirect
|
||||||
github.com/caddyserver/caddy v1.0.3
|
github.com/caddyserver/caddy v1.0.3
|
||||||
github.com/cespare/prettybench v0.0.0-20150116022406-03b8cfe5406c
|
github.com/cespare/prettybench v0.0.0-20150116022406-03b8cfe5406c
|
||||||
github.com/checkpoint-restore/go-criu v0.0.0-20190109184317-bdb7599cd87b // indirect
|
github.com/checkpoint-restore/go-criu v0.0.0-20181120144056-17b0214f6c48 // indirect
|
||||||
|
github.com/cilium/ebpf v0.0.0-20191025125908-95b36a581eed // indirect
|
||||||
github.com/client9/misspell v0.3.4
|
github.com/client9/misspell v0.3.4
|
||||||
github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
|
github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
|
||||||
github.com/codegangsta/negroni v1.0.0 // indirect
|
github.com/codegangsta/negroni v1.0.0 // indirect
|
||||||
@ -36,7 +37,7 @@ require (
|
|||||||
github.com/containerd/containerd v1.0.2 // indirect
|
github.com/containerd/containerd v1.0.2 // indirect
|
||||||
github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20 // indirect
|
github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20 // indirect
|
||||||
github.com/containernetworking/cni v0.7.1
|
github.com/containernetworking/cni v0.7.1
|
||||||
github.com/coredns/corefile-migration v1.0.4
|
github.com/coredns/corefile-migration v1.0.6
|
||||||
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
||||||
github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea
|
github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea
|
||||||
github.com/cpuguy83/go-md2man v1.0.10
|
github.com/cpuguy83/go-md2man v1.0.10
|
||||||
@ -46,8 +47,8 @@ require (
|
|||||||
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
|
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
|
||||||
github.com/docker/go-connections v0.3.0
|
github.com/docker/go-connections v0.3.0
|
||||||
github.com/docker/go-units v0.4.0
|
github.com/docker/go-units v0.4.0
|
||||||
github.com/docker/libnetwork v0.8.0-dev.2.0.20190624125649-f0e46a78ea34
|
github.com/docker/libnetwork v0.8.0-dev.2.0.20190925143933-c8a5fca4a652
|
||||||
github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e
|
github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153
|
||||||
github.com/emicklei/go-restful v2.9.5+incompatible
|
github.com/emicklei/go-restful v2.9.5+incompatible
|
||||||
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
|
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
|
||||||
github.com/evanphx/json-patch v4.2.0+incompatible
|
github.com/evanphx/json-patch v4.2.0+incompatible
|
||||||
@ -60,14 +61,14 @@ require (
|
|||||||
github.com/go-openapi/validate v0.19.5
|
github.com/go-openapi/validate v0.19.5
|
||||||
github.com/go-ozzo/ozzo-validation v3.5.0+incompatible // indirect
|
github.com/go-ozzo/ozzo-validation v3.5.0+incompatible // indirect
|
||||||
github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f // indirect
|
github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f // indirect
|
||||||
github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf v1.3.1
|
||||||
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
||||||
github.com/golang/mock v1.2.0
|
github.com/golang/mock v1.3.1
|
||||||
github.com/google/cadvisor v0.35.0
|
github.com/google/cadvisor v0.35.0
|
||||||
github.com/google/go-cmp v0.3.0
|
github.com/google/go-cmp v0.3.0
|
||||||
github.com/google/gofuzz v1.0.0
|
github.com/google/gofuzz v1.1.0
|
||||||
github.com/google/uuid v1.1.1
|
github.com/google/uuid v1.1.1
|
||||||
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
|
github.com/googleapis/gnostic v0.1.0
|
||||||
github.com/gorilla/context v1.1.1 // indirect
|
github.com/gorilla/context v1.1.1 // indirect
|
||||||
github.com/gorilla/mux v1.7.0 // indirect
|
github.com/gorilla/mux v1.7.0 // indirect
|
||||||
github.com/hashicorp/golang-lru v0.5.1
|
github.com/hashicorp/golang-lru v0.5.1
|
||||||
@ -84,27 +85,27 @@ require (
|
|||||||
github.com/mindprince/gonvml v0.0.0-20190828220739-9ebdce4bb989 // indirect
|
github.com/mindprince/gonvml v0.0.0-20190828220739-9ebdce4bb989 // indirect
|
||||||
github.com/mistifyio/go-zfs v2.1.1+incompatible // indirect
|
github.com/mistifyio/go-zfs v2.1.1+incompatible // indirect
|
||||||
github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb // indirect
|
github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb // indirect
|
||||||
github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c // indirect
|
github.com/morikuni/aec v1.0.0 // indirect
|
||||||
github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618 // indirect
|
github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618 // indirect
|
||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
||||||
github.com/mvdan/xurls v1.1.0
|
github.com/mvdan/xurls v1.1.0
|
||||||
github.com/onsi/ginkgo v1.10.1
|
github.com/onsi/ginkgo v1.11.0
|
||||||
github.com/onsi/gomega v1.7.0
|
github.com/onsi/gomega v1.7.0
|
||||||
github.com/opencontainers/go-digest v1.0.0-rc1
|
github.com/opencontainers/go-digest v1.0.0-rc1
|
||||||
github.com/opencontainers/image-spec v1.0.1 // indirect
|
github.com/opencontainers/image-spec v1.0.1 // indirect
|
||||||
github.com/opencontainers/runc v1.0.0-rc9
|
github.com/opencontainers/runc v1.0.0-rc10
|
||||||
github.com/opencontainers/runtime-spec v1.0.0 // indirect
|
github.com/opencontainers/runtime-spec v1.0.0 // indirect
|
||||||
github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52
|
github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52
|
||||||
github.com/pkg/errors v0.8.1
|
github.com/pkg/errors v0.8.1
|
||||||
github.com/pmezard/go-difflib v1.0.0
|
github.com/pmezard/go-difflib v1.0.0
|
||||||
github.com/pquerna/ffjson v0.0.0-20180717144149-af8b230fcd20 // indirect
|
github.com/pquerna/ffjson v0.0.0-20180717144149-af8b230fcd20 // indirect
|
||||||
github.com/prometheus/client_golang v1.0.0
|
github.com/prometheus/client_golang v1.0.0
|
||||||
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
|
github.com/prometheus/client_model v0.2.0
|
||||||
github.com/prometheus/common v0.4.1
|
github.com/prometheus/common v0.4.1
|
||||||
github.com/quobyte/api v0.1.2
|
github.com/quobyte/api v0.1.2
|
||||||
github.com/robfig/cron v1.1.0
|
github.com/robfig/cron v1.1.0
|
||||||
github.com/seccomp/libseccomp-golang v0.9.1 // indirect
|
github.com/seccomp/libseccomp-golang v0.9.1 // indirect
|
||||||
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
|
github.com/smartystreets/goconvey v1.6.4 // indirect
|
||||||
github.com/spf13/afero v1.2.2
|
github.com/spf13/afero v1.2.2
|
||||||
github.com/spf13/cobra v0.0.5
|
github.com/spf13/cobra v0.0.5
|
||||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||||
@ -119,19 +120,20 @@ require (
|
|||||||
github.com/vishvananda/netns v0.0.0-20171111001504-be1fbeda1936 // indirect
|
github.com/vishvananda/netns v0.0.0-20171111001504-be1fbeda1936 // indirect
|
||||||
github.com/vmware/govmomi v0.20.3
|
github.com/vmware/govmomi v0.20.3
|
||||||
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
|
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
|
||||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586
|
golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
|
||||||
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
|
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
|
||||||
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
golang.org/x/net v0.0.0-20191004110552-13f9640d40b9
|
||||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||||
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456
|
golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7
|
||||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
||||||
golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72
|
golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72
|
||||||
gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485
|
gonum.org/v1/gonum v0.6.2
|
||||||
|
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
|
||||||
google.golang.org/api v0.6.1-0.20190607001116-5213b8090861
|
google.golang.org/api v0.6.1-0.20190607001116-5213b8090861
|
||||||
google.golang.org/grpc v1.23.1
|
google.golang.org/grpc v1.26.0
|
||||||
gopkg.in/gcfg.v1 v1.2.0
|
gopkg.in/gcfg.v1 v1.2.0
|
||||||
gopkg.in/square/go-jose.v2 v2.2.2
|
gopkg.in/square/go-jose.v2 v2.2.2
|
||||||
gopkg.in/yaml.v2 v2.2.4
|
gopkg.in/yaml.v2 v2.2.8
|
||||||
gotest.tools v2.2.0+incompatible
|
gotest.tools v2.2.0+incompatible
|
||||||
gotest.tools/gotestsum v0.3.5
|
gotest.tools/gotestsum v0.3.5
|
||||||
honnef.co/go/tools v0.0.1-2019.2.2
|
honnef.co/go/tools v0.0.1-2019.2.2
|
||||||
@ -147,12 +149,12 @@ require (
|
|||||||
k8s.io/component-base v0.0.0
|
k8s.io/component-base v0.0.0
|
||||||
k8s.io/cri-api v0.0.0
|
k8s.io/cri-api v0.0.0
|
||||||
k8s.io/csi-translation-lib v0.0.0
|
k8s.io/csi-translation-lib v0.0.0
|
||||||
k8s.io/gengo v0.0.0-20190822140433-26a664648505
|
k8s.io/gengo v0.0.0-20200114144118-36b2048a9120
|
||||||
k8s.io/heapster v1.2.0-beta.1
|
k8s.io/heapster v1.2.0-beta.1
|
||||||
k8s.io/klog v1.0.0
|
k8s.io/klog v1.0.0
|
||||||
k8s.io/kube-aggregator v0.0.0
|
k8s.io/kube-aggregator v0.0.0
|
||||||
k8s.io/kube-controller-manager v0.0.0
|
k8s.io/kube-controller-manager v0.0.0
|
||||||
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
|
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
|
||||||
k8s.io/kube-proxy v0.0.0
|
k8s.io/kube-proxy v0.0.0
|
||||||
k8s.io/kube-scheduler v0.0.0
|
k8s.io/kube-scheduler v0.0.0
|
||||||
k8s.io/kubectl v0.0.0
|
k8s.io/kubectl v0.0.0
|
||||||
@ -162,9 +164,9 @@ require (
|
|||||||
k8s.io/repo-infra v0.0.1-alpha.1
|
k8s.io/repo-infra v0.0.1-alpha.1
|
||||||
k8s.io/sample-apiserver v0.0.0
|
k8s.io/sample-apiserver v0.0.0
|
||||||
k8s.io/system-validators v1.0.4
|
k8s.io/system-validators v1.0.4
|
||||||
k8s.io/utils v0.0.0-20191114184206-e782cd3c129f
|
k8s.io/utils v0.0.0-20200117235808-5f6fbceb4c31
|
||||||
sigs.k8s.io/kustomize v2.0.3+incompatible
|
sigs.k8s.io/kustomize v2.0.3+incompatible
|
||||||
sigs.k8s.io/yaml v1.1.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
@ -194,6 +196,7 @@ replace (
|
|||||||
github.com/Rican7/retry => github.com/Rican7/retry v0.1.0
|
github.com/Rican7/retry => github.com/Rican7/retry v0.1.0
|
||||||
github.com/StackExchange/wmi => github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6
|
github.com/StackExchange/wmi => github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6
|
||||||
github.com/agnivade/levenshtein => github.com/agnivade/levenshtein v1.0.1
|
github.com/agnivade/levenshtein => github.com/agnivade/levenshtein v1.0.1
|
||||||
|
github.com/ajstarks/svgo => github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af
|
||||||
github.com/alecthomas/template => github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
|
github.com/alecthomas/template => github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc
|
||||||
github.com/alecthomas/units => github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
|
github.com/alecthomas/units => github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf
|
||||||
github.com/andreyvit/diff => github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
|
github.com/andreyvit/diff => github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
|
||||||
@ -202,7 +205,7 @@ replace (
|
|||||||
github.com/armon/consul-api => github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6
|
github.com/armon/consul-api => github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6
|
||||||
github.com/asaskevich/govalidator => github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
|
github.com/asaskevich/govalidator => github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
|
||||||
github.com/auth0/go-jwt-middleware => github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7
|
github.com/auth0/go-jwt-middleware => github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7
|
||||||
github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.16.26
|
github.com/aws/aws-sdk-go => github.com/aws/aws-sdk-go v1.28.2
|
||||||
github.com/bazelbuild/bazel-gazelle => github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798
|
github.com/bazelbuild/bazel-gazelle => github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798
|
||||||
github.com/bazelbuild/buildtools => github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
|
github.com/bazelbuild/buildtools => github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89
|
||||||
github.com/bazelbuild/rules_go => github.com/bazelbuild/rules_go v0.0.0-20190719190356-6dae44dc5cab
|
github.com/bazelbuild/rules_go => github.com/bazelbuild/rules_go v0.0.0-20190719190356-6dae44dc5cab
|
||||||
@ -214,10 +217,12 @@ replace (
|
|||||||
github.com/bradfitz/go-smtpd => github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625
|
github.com/bradfitz/go-smtpd => github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625
|
||||||
github.com/caddyserver/caddy => github.com/caddyserver/caddy v1.0.3
|
github.com/caddyserver/caddy => github.com/caddyserver/caddy v1.0.3
|
||||||
github.com/cenkalti/backoff => github.com/cenkalti/backoff v2.1.1+incompatible
|
github.com/cenkalti/backoff => github.com/cenkalti/backoff v2.1.1+incompatible
|
||||||
|
github.com/census-instrumentation/opencensus-proto => github.com/census-instrumentation/opencensus-proto v0.2.1
|
||||||
github.com/cespare/prettybench => github.com/cespare/prettybench v0.0.0-20150116022406-03b8cfe5406c
|
github.com/cespare/prettybench => github.com/cespare/prettybench v0.0.0-20150116022406-03b8cfe5406c
|
||||||
github.com/chai2010/gettext-go => github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5
|
github.com/chai2010/gettext-go => github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5
|
||||||
github.com/checkpoint-restore/go-criu => github.com/checkpoint-restore/go-criu v0.0.0-20190109184317-bdb7599cd87b
|
github.com/checkpoint-restore/go-criu => github.com/checkpoint-restore/go-criu v0.0.0-20181120144056-17b0214f6c48 // 17b0214f6c48 is the SHA for git tag 3.11
|
||||||
github.com/cheekybits/genny => github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9
|
github.com/cheekybits/genny => github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9
|
||||||
|
github.com/cilium/ebpf => github.com/cilium/ebpf v0.0.0-20191025125908-95b36a581eed
|
||||||
github.com/client9/misspell => github.com/client9/misspell v0.3.4
|
github.com/client9/misspell => github.com/client9/misspell v0.3.4
|
||||||
github.com/clusterhq/flocker-go => github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
|
github.com/clusterhq/flocker-go => github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313
|
||||||
github.com/cockroachdb/datadriven => github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
|
github.com/cockroachdb/datadriven => github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa
|
||||||
@ -227,13 +232,13 @@ replace (
|
|||||||
github.com/containerd/containerd => github.com/containerd/containerd v1.0.2
|
github.com/containerd/containerd => github.com/containerd/containerd v1.0.2
|
||||||
github.com/containerd/typeurl => github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20
|
github.com/containerd/typeurl => github.com/containerd/typeurl v0.0.0-20190228175220-2a93cfde8c20
|
||||||
github.com/containernetworking/cni => github.com/containernetworking/cni v0.7.1
|
github.com/containernetworking/cni => github.com/containernetworking/cni v0.7.1
|
||||||
github.com/coredns/corefile-migration => github.com/coredns/corefile-migration v1.0.4
|
github.com/coredns/corefile-migration => github.com/coredns/corefile-migration v1.0.6
|
||||||
github.com/coreos/etcd => github.com/coreos/etcd v3.3.10+incompatible
|
github.com/coreos/etcd => github.com/coreos/etcd v3.3.10+incompatible
|
||||||
github.com/coreos/go-etcd => github.com/coreos/go-etcd v2.0.0+incompatible
|
github.com/coreos/go-etcd => github.com/coreos/go-etcd v2.0.0+incompatible
|
||||||
github.com/coreos/go-oidc => github.com/coreos/go-oidc v2.1.0+incompatible
|
github.com/coreos/go-oidc => github.com/coreos/go-oidc v2.1.0+incompatible
|
||||||
github.com/coreos/go-semver => github.com/coreos/go-semver v0.3.0
|
github.com/coreos/go-semver => github.com/coreos/go-semver v0.3.0
|
||||||
github.com/coreos/go-systemd => github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
github.com/coreos/go-systemd => github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
|
||||||
github.com/coreos/pkg => github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea
|
github.com/coreos/pkg => github.com/coreos/pkg v0.0.0-20180108230652-97fdf19511ea // 97fdf19511ea is the SHA for git tag v4
|
||||||
github.com/cpuguy83/go-md2man => github.com/cpuguy83/go-md2man v1.0.10
|
github.com/cpuguy83/go-md2man => github.com/cpuguy83/go-md2man v1.0.10
|
||||||
github.com/creack/pty => github.com/creack/pty v1.1.7
|
github.com/creack/pty => github.com/creack/pty v1.1.7
|
||||||
github.com/cyphar/filepath-securejoin => github.com/cyphar/filepath-securejoin v0.2.2
|
github.com/cyphar/filepath-securejoin => github.com/cyphar/filepath-securejoin v0.2.2
|
||||||
@ -245,17 +250,20 @@ replace (
|
|||||||
github.com/docker/docker => github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
|
github.com/docker/docker => github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0
|
||||||
github.com/docker/go-connections => github.com/docker/go-connections v0.3.0
|
github.com/docker/go-connections => github.com/docker/go-connections v0.3.0
|
||||||
github.com/docker/go-units => github.com/docker/go-units v0.4.0
|
github.com/docker/go-units => github.com/docker/go-units v0.4.0
|
||||||
github.com/docker/libnetwork => github.com/docker/libnetwork v0.8.0-dev.2.0.20190624125649-f0e46a78ea34
|
github.com/docker/libnetwork => github.com/docker/libnetwork v0.8.0-dev.2.0.20190925143933-c8a5fca4a652
|
||||||
github.com/docker/spdystream => github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
|
github.com/docker/spdystream => github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
|
||||||
github.com/dustin/go-humanize => github.com/dustin/go-humanize v1.0.0
|
github.com/dustin/go-humanize => github.com/dustin/go-humanize v1.0.0
|
||||||
github.com/elazarl/goproxy => github.com/elazarl/goproxy v0.0.0-20170405201442-c4fc26588b6e
|
github.com/elazarl/goproxy => github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 // 947c36da3153 is the SHA for git tag v1.11
|
||||||
github.com/emicklei/go-restful => github.com/emicklei/go-restful v2.9.5+incompatible
|
github.com/emicklei/go-restful => github.com/emicklei/go-restful v2.9.5+incompatible
|
||||||
|
github.com/envoyproxy/go-control-plane => github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473
|
||||||
|
github.com/envoyproxy/protoc-gen-validate => github.com/envoyproxy/protoc-gen-validate v0.1.0
|
||||||
github.com/euank/go-kmsg-parser => github.com/euank/go-kmsg-parser v2.0.0+incompatible
|
github.com/euank/go-kmsg-parser => github.com/euank/go-kmsg-parser v2.0.0+incompatible
|
||||||
github.com/evanphx/json-patch => github.com/evanphx/json-patch v4.2.0+incompatible
|
github.com/evanphx/json-patch => github.com/evanphx/json-patch v4.2.0+incompatible
|
||||||
github.com/exponent-io/jsonpath => github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d
|
github.com/exponent-io/jsonpath => github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d
|
||||||
github.com/fatih/camelcase => github.com/fatih/camelcase v1.0.0
|
github.com/fatih/camelcase => github.com/fatih/camelcase v1.0.0
|
||||||
github.com/fatih/color => github.com/fatih/color v1.7.0
|
github.com/fatih/color => github.com/fatih/color v1.7.0
|
||||||
github.com/flynn/go-shlex => github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568
|
github.com/flynn/go-shlex => github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568
|
||||||
|
github.com/fogleman/gg => github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90
|
||||||
github.com/fsnotify/fsnotify => github.com/fsnotify/fsnotify v1.4.7
|
github.com/fsnotify/fsnotify => github.com/fsnotify/fsnotify v1.4.7
|
||||||
github.com/ghodss/yaml => github.com/ghodss/yaml v1.0.0
|
github.com/ghodss/yaml => github.com/ghodss/yaml v1.0.0
|
||||||
github.com/gliderlabs/ssh => github.com/gliderlabs/ssh v0.1.1
|
github.com/gliderlabs/ssh => github.com/gliderlabs/ssh v0.1.1
|
||||||
@ -290,10 +298,11 @@ replace (
|
|||||||
github.com/go-toolsmith/typep => github.com/go-toolsmith/typep v1.0.0
|
github.com/go-toolsmith/typep => github.com/go-toolsmith/typep v1.0.0
|
||||||
github.com/gobwas/glob => github.com/gobwas/glob v0.2.3
|
github.com/gobwas/glob => github.com/gobwas/glob v0.2.3
|
||||||
github.com/godbus/dbus => github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f
|
github.com/godbus/dbus => github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f
|
||||||
github.com/gogo/protobuf => github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
|
github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.1
|
||||||
|
github.com/golang/freetype => github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
|
||||||
github.com/golang/glog => github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
|
github.com/golang/glog => github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
|
||||||
github.com/golang/groupcache => github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
github.com/golang/groupcache => github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
|
||||||
github.com/golang/mock => github.com/golang/mock v1.2.0
|
github.com/golang/mock => github.com/golang/mock v1.3.1
|
||||||
github.com/golang/protobuf => github.com/golang/protobuf v1.3.2
|
github.com/golang/protobuf => github.com/golang/protobuf v1.3.2
|
||||||
github.com/golangci/check => github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
|
github.com/golangci/check => github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2
|
||||||
github.com/golangci/dupl => github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a
|
github.com/golangci/dupl => github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a
|
||||||
@ -320,13 +329,13 @@ replace (
|
|||||||
github.com/google/go-cmp => github.com/google/go-cmp v0.3.0
|
github.com/google/go-cmp => github.com/google/go-cmp v0.3.0
|
||||||
github.com/google/go-github => github.com/google/go-github v17.0.0+incompatible
|
github.com/google/go-github => github.com/google/go-github v17.0.0+incompatible
|
||||||
github.com/google/go-querystring => github.com/google/go-querystring v1.0.0
|
github.com/google/go-querystring => github.com/google/go-querystring v1.0.0
|
||||||
github.com/google/gofuzz => github.com/google/gofuzz v1.0.0
|
github.com/google/gofuzz => github.com/google/gofuzz v1.1.0
|
||||||
github.com/google/martian => github.com/google/martian v2.1.0+incompatible
|
github.com/google/martian => github.com/google/martian v2.1.0+incompatible
|
||||||
github.com/google/pprof => github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
|
github.com/google/pprof => github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57
|
||||||
github.com/google/renameio => github.com/google/renameio v0.1.0
|
github.com/google/renameio => github.com/google/renameio v0.1.0
|
||||||
github.com/google/uuid => github.com/google/uuid v1.1.1
|
github.com/google/uuid => github.com/google/uuid v1.1.1
|
||||||
github.com/googleapis/gax-go/v2 => github.com/googleapis/gax-go/v2 v2.0.4
|
github.com/googleapis/gax-go/v2 => github.com/googleapis/gax-go/v2 v2.0.4
|
||||||
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d
|
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.1.0
|
||||||
github.com/gophercloud/gophercloud => github.com/gophercloud/gophercloud v0.1.0
|
github.com/gophercloud/gophercloud => github.com/gophercloud/gophercloud v0.1.0
|
||||||
github.com/gopherjs/gopherjs => github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
|
github.com/gopherjs/gopherjs => github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
|
||||||
github.com/gorilla/context => github.com/gorilla/context v1.1.1
|
github.com/gorilla/context => github.com/gorilla/context v1.1.1
|
||||||
@ -353,6 +362,7 @@ replace (
|
|||||||
github.com/jstemmer/go-junit-report => github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024
|
github.com/jstemmer/go-junit-report => github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024
|
||||||
github.com/jtolds/gls => github.com/jtolds/gls v4.20.0+incompatible
|
github.com/jtolds/gls => github.com/jtolds/gls v4.20.0+incompatible
|
||||||
github.com/julienschmidt/httprouter => github.com/julienschmidt/httprouter v1.2.0
|
github.com/julienschmidt/httprouter => github.com/julienschmidt/httprouter v1.2.0
|
||||||
|
github.com/jung-kurt/gofpdf => github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5
|
||||||
github.com/karrick/godirwalk => github.com/karrick/godirwalk v1.7.5
|
github.com/karrick/godirwalk => github.com/karrick/godirwalk v1.7.5
|
||||||
github.com/kisielk/errcheck => github.com/kisielk/errcheck v1.2.0
|
github.com/kisielk/errcheck => github.com/kisielk/errcheck v1.2.0
|
||||||
github.com/kisielk/gotool => github.com/kisielk/gotool v1.0.0
|
github.com/kisielk/gotool => github.com/kisielk/gotool v1.0.0
|
||||||
@ -394,7 +404,7 @@ replace (
|
|||||||
github.com/modern-go/concurrent => github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
|
github.com/modern-go/concurrent => github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
|
||||||
github.com/modern-go/reflect2 => github.com/modern-go/reflect2 v1.0.1
|
github.com/modern-go/reflect2 => github.com/modern-go/reflect2 v1.0.1
|
||||||
github.com/mohae/deepcopy => github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb
|
github.com/mohae/deepcopy => github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb
|
||||||
github.com/morikuni/aec => github.com/morikuni/aec v0.0.0-20170113033406-39771216ff4c
|
github.com/morikuni/aec => github.com/morikuni/aec v1.0.0
|
||||||
github.com/mozilla/tls-observatory => github.com/mozilla/tls-observatory v0.0.0-20180409132520-8791a200eb40
|
github.com/mozilla/tls-observatory => github.com/mozilla/tls-observatory v0.0.0-20180409132520-8791a200eb40
|
||||||
github.com/mrunalp/fileutils => github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618
|
github.com/mrunalp/fileutils => github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618
|
||||||
github.com/munnerz/goautoneg => github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
github.com/munnerz/goautoneg => github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
||||||
@ -405,11 +415,11 @@ replace (
|
|||||||
github.com/naoina/toml => github.com/naoina/toml v0.1.1
|
github.com/naoina/toml => github.com/naoina/toml v0.1.1
|
||||||
github.com/nbutton23/zxcvbn-go => github.com/nbutton23/zxcvbn-go v0.0.0-20171102151520-eafdab6b0663
|
github.com/nbutton23/zxcvbn-go => github.com/nbutton23/zxcvbn-go v0.0.0-20171102151520-eafdab6b0663
|
||||||
github.com/olekukonko/tablewriter => github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5
|
github.com/olekukonko/tablewriter => github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5
|
||||||
github.com/onsi/ginkgo => github.com/onsi/ginkgo v1.10.1
|
github.com/onsi/ginkgo => github.com/onsi/ginkgo v1.11.0
|
||||||
github.com/onsi/gomega => github.com/onsi/gomega v1.7.0
|
github.com/onsi/gomega => github.com/onsi/gomega v1.7.0
|
||||||
github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.0-rc1
|
github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.0-rc1
|
||||||
github.com/opencontainers/image-spec => github.com/opencontainers/image-spec v1.0.1
|
github.com/opencontainers/image-spec => github.com/opencontainers/image-spec v1.0.1
|
||||||
github.com/opencontainers/runc => github.com/opencontainers/runc v1.0.0-rc9
|
github.com/opencontainers/runc => github.com/opencontainers/runc v1.0.0-rc10
|
||||||
github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.0
|
github.com/opencontainers/runtime-spec => github.com/opencontainers/runtime-spec v1.0.0
|
||||||
github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52
|
github.com/opencontainers/selinux => github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52
|
||||||
github.com/pelletier/go-toml => github.com/pelletier/go-toml v1.2.0
|
github.com/pelletier/go-toml => github.com/pelletier/go-toml v1.2.0
|
||||||
@ -419,7 +429,7 @@ replace (
|
|||||||
github.com/pquerna/cachecontrol => github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021
|
github.com/pquerna/cachecontrol => github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021
|
||||||
github.com/pquerna/ffjson => github.com/pquerna/ffjson v0.0.0-20180717144149-af8b230fcd20
|
github.com/pquerna/ffjson => github.com/pquerna/ffjson v0.0.0-20180717144149-af8b230fcd20
|
||||||
github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.0.0
|
github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.0.0
|
||||||
github.com/prometheus/client_model => github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
|
github.com/prometheus/client_model => github.com/prometheus/client_model v0.2.0
|
||||||
github.com/prometheus/common => github.com/prometheus/common v0.4.1
|
github.com/prometheus/common => github.com/prometheus/common v0.4.1
|
||||||
github.com/prometheus/procfs => github.com/prometheus/procfs v0.0.2
|
github.com/prometheus/procfs => github.com/prometheus/procfs v0.0.2
|
||||||
github.com/quasilyte/go-consistent => github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c
|
github.com/quasilyte/go-consistent => github.com/quasilyte/go-consistent v0.0.0-20190521200055-c6f3937de18c
|
||||||
@ -440,7 +450,7 @@ replace (
|
|||||||
github.com/shurcooL/go-goon => github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041
|
github.com/shurcooL/go-goon => github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041
|
||||||
github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.4.2
|
github.com/sirupsen/logrus => github.com/sirupsen/logrus v1.4.2
|
||||||
github.com/smartystreets/assertions => github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
|
github.com/smartystreets/assertions => github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
|
||||||
github.com/smartystreets/goconvey => github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a
|
github.com/smartystreets/goconvey => github.com/smartystreets/goconvey v1.6.4
|
||||||
github.com/soheilhy/cmux => github.com/soheilhy/cmux v0.1.4
|
github.com/soheilhy/cmux => github.com/soheilhy/cmux v0.1.4
|
||||||
github.com/sourcegraph/go-diff => github.com/sourcegraph/go-diff v0.5.1
|
github.com/sourcegraph/go-diff => github.com/sourcegraph/go-diff v0.5.1
|
||||||
github.com/spf13/afero => github.com/spf13/afero v1.2.2
|
github.com/spf13/afero => github.com/spf13/afero v1.2.2
|
||||||
@ -474,7 +484,7 @@ replace (
|
|||||||
github.com/xlab/handysort => github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1
|
github.com/xlab/handysort => github.com/xlab/handysort v0.0.0-20150421192137-fb3537ed64a1
|
||||||
github.com/xordataexchange/crypt => github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77
|
github.com/xordataexchange/crypt => github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77
|
||||||
go.etcd.io/bbolt => go.etcd.io/bbolt v1.3.3
|
go.etcd.io/bbolt => go.etcd.io/bbolt v1.3.3
|
||||||
go.etcd.io/etcd => go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
|
go.etcd.io/etcd => go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738 // 3cf2f69b5738 is the SHA for git tag v3.4.3
|
||||||
go.mongodb.org/mongo-driver => go.mongodb.org/mongo-driver v1.1.2
|
go.mongodb.org/mongo-driver => go.mongodb.org/mongo-driver v1.1.2
|
||||||
go.opencensus.io => go.opencensus.io v0.21.0
|
go.opencensus.io => go.opencensus.io v0.21.0
|
||||||
go.uber.org/atomic => go.uber.org/atomic v1.3.2
|
go.uber.org/atomic => go.uber.org/atomic v1.3.2
|
||||||
@ -482,7 +492,7 @@ replace (
|
|||||||
go.uber.org/zap => go.uber.org/zap v1.10.0
|
go.uber.org/zap => go.uber.org/zap v1.10.0
|
||||||
go4.org => go4.org v0.0.0-20180809161055-417644f6feb5
|
go4.org => go4.org v0.0.0-20180809161055-417644f6feb5
|
||||||
golang.org/x/build => golang.org/x/build v0.0.0-20190927031335-2835ba2e683f
|
golang.org/x/build => golang.org/x/build v0.0.0-20190927031335-2835ba2e683f
|
||||||
golang.org/x/crypto => golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586
|
golang.org/x/crypto => golang.org/x/crypto v0.0.0-20200220183623-bac4c82f6975
|
||||||
golang.org/x/exp => golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495
|
golang.org/x/exp => golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495
|
||||||
golang.org/x/image => golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
|
golang.org/x/image => golang.org/x/image v0.0.0-20190227222117-0694c2d4d067
|
||||||
golang.org/x/lint => golang.org/x/lint v0.0.0-20190409202823-959b441ac422
|
golang.org/x/lint => golang.org/x/lint v0.0.0-20190409202823-959b441ac422
|
||||||
@ -497,12 +507,13 @@ replace (
|
|||||||
golang.org/x/time => golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
golang.org/x/time => golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
|
||||||
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
golang.org/x/tools => golang.org/x/tools v0.0.0-20190821162956-65e3620a7ae7 // pinned to release-branch.go1.13
|
||||||
golang.org/x/xerrors => golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
|
golang.org/x/xerrors => golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
|
||||||
gonum.org/v1/gonum => gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485
|
gonum.org/v1/gonum => gonum.org/v1/gonum v0.6.2
|
||||||
gonum.org/v1/netlib => gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e
|
gonum.org/v1/netlib => gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e
|
||||||
|
gonum.org/v1/plot => gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b
|
||||||
google.golang.org/api => google.golang.org/api v0.6.1-0.20190607001116-5213b8090861
|
google.golang.org/api => google.golang.org/api v0.6.1-0.20190607001116-5213b8090861
|
||||||
google.golang.org/appengine => google.golang.org/appengine v1.5.0
|
google.golang.org/appengine => google.golang.org/appengine v1.5.0
|
||||||
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873
|
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55
|
||||||
google.golang.org/grpc => google.golang.org/grpc v1.23.1
|
google.golang.org/grpc => google.golang.org/grpc v1.26.0
|
||||||
gopkg.in/airbrake/gobrake.v2 => gopkg.in/airbrake/gobrake.v2 v2.0.9
|
gopkg.in/airbrake/gobrake.v2 => gopkg.in/airbrake/gobrake.v2 v2.0.9
|
||||||
gopkg.in/alecthomas/kingpin.v2 => gopkg.in/alecthomas/kingpin.v2 v2.2.6
|
gopkg.in/alecthomas/kingpin.v2 => gopkg.in/alecthomas/kingpin.v2 v2.2.6
|
||||||
gopkg.in/check.v1 => gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
|
gopkg.in/check.v1 => gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
|
||||||
@ -518,7 +529,7 @@ replace (
|
|||||||
gopkg.in/square/go-jose.v2 => gopkg.in/square/go-jose.v2 v2.2.2
|
gopkg.in/square/go-jose.v2 => gopkg.in/square/go-jose.v2 v2.2.2
|
||||||
gopkg.in/tomb.v1 => gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
|
gopkg.in/tomb.v1 => gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
|
||||||
gopkg.in/warnings.v0 => gopkg.in/warnings.v0 v0.1.1
|
gopkg.in/warnings.v0 => gopkg.in/warnings.v0 v0.1.1
|
||||||
gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.4
|
gopkg.in/yaml.v2 => gopkg.in/yaml.v2 v2.2.8
|
||||||
gotest.tools => gotest.tools v2.2.0+incompatible
|
gotest.tools => gotest.tools v2.2.0+incompatible
|
||||||
gotest.tools/gotestsum => gotest.tools/gotestsum v0.3.5
|
gotest.tools/gotestsum => gotest.tools/gotestsum v0.3.5
|
||||||
grpc.go4.org => grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
|
grpc.go4.org => grpc.go4.org v0.0.0-20170609214715-11d0a25b4919
|
||||||
@ -535,25 +546,24 @@ replace (
|
|||||||
k8s.io/component-base => ./staging/src/k8s.io/component-base
|
k8s.io/component-base => ./staging/src/k8s.io/component-base
|
||||||
k8s.io/cri-api => ./staging/src/k8s.io/cri-api
|
k8s.io/cri-api => ./staging/src/k8s.io/cri-api
|
||||||
k8s.io/csi-translation-lib => ./staging/src/k8s.io/csi-translation-lib
|
k8s.io/csi-translation-lib => ./staging/src/k8s.io/csi-translation-lib
|
||||||
k8s.io/gengo => k8s.io/gengo v0.0.0-20190822140433-26a664648505
|
k8s.io/gengo => k8s.io/gengo v0.0.0-20200114144118-36b2048a9120
|
||||||
k8s.io/heapster => k8s.io/heapster v1.2.0-beta.1
|
k8s.io/heapster => k8s.io/heapster v1.2.0-beta.1
|
||||||
k8s.io/klog => k8s.io/klog v1.0.0
|
k8s.io/klog => k8s.io/klog v1.0.0
|
||||||
k8s.io/kube-aggregator => ./staging/src/k8s.io/kube-aggregator
|
k8s.io/kube-aggregator => ./staging/src/k8s.io/kube-aggregator
|
||||||
k8s.io/kube-controller-manager => ./staging/src/k8s.io/kube-controller-manager
|
k8s.io/kube-controller-manager => ./staging/src/k8s.io/kube-controller-manager
|
||||||
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
|
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
|
||||||
k8s.io/kube-proxy => ./staging/src/k8s.io/kube-proxy
|
k8s.io/kube-proxy => ./staging/src/k8s.io/kube-proxy
|
||||||
k8s.io/kube-scheduler => ./staging/src/k8s.io/kube-scheduler
|
k8s.io/kube-scheduler => ./staging/src/k8s.io/kube-scheduler
|
||||||
k8s.io/kubectl => ./staging/src/k8s.io/kubectl
|
k8s.io/kubectl => ./staging/src/k8s.io/kubectl
|
||||||
k8s.io/kubelet => ./staging/src/k8s.io/kubelet
|
k8s.io/kubelet => ./staging/src/k8s.io/kubelet
|
||||||
k8s.io/legacy-cloud-providers => ./staging/src/k8s.io/legacy-cloud-providers
|
k8s.io/legacy-cloud-providers => ./staging/src/k8s.io/legacy-cloud-providers
|
||||||
k8s.io/metrics => ./staging/src/k8s.io/metrics
|
k8s.io/metrics => ./staging/src/k8s.io/metrics
|
||||||
k8s.io/node-api => ./staging/src/k8s.io/node-api
|
|
||||||
k8s.io/repo-infra => k8s.io/repo-infra v0.0.1-alpha.1
|
k8s.io/repo-infra => k8s.io/repo-infra v0.0.1-alpha.1
|
||||||
k8s.io/sample-apiserver => ./staging/src/k8s.io/sample-apiserver
|
k8s.io/sample-apiserver => ./staging/src/k8s.io/sample-apiserver
|
||||||
k8s.io/sample-cli-plugin => ./staging/src/k8s.io/sample-cli-plugin
|
k8s.io/sample-cli-plugin => ./staging/src/k8s.io/sample-cli-plugin
|
||||||
k8s.io/sample-controller => ./staging/src/k8s.io/sample-controller
|
k8s.io/sample-controller => ./staging/src/k8s.io/sample-controller
|
||||||
k8s.io/system-validators => k8s.io/system-validators v1.0.4
|
k8s.io/system-validators => k8s.io/system-validators v1.0.4
|
||||||
k8s.io/utils => k8s.io/utils v0.0.0-20191114184206-e782cd3c129f
|
k8s.io/utils => k8s.io/utils v0.0.0-20200117235808-5f6fbceb4c31
|
||||||
modernc.org/cc => modernc.org/cc v1.0.0
|
modernc.org/cc => modernc.org/cc v1.0.0
|
||||||
modernc.org/golex => modernc.org/golex v1.0.0
|
modernc.org/golex => modernc.org/golex v1.0.0
|
||||||
modernc.org/mathutil => modernc.org/mathutil v1.0.0
|
modernc.org/mathutil => modernc.org/mathutil v1.0.0
|
||||||
@ -562,9 +572,11 @@ replace (
|
|||||||
mvdan.cc/interfacer => mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed
|
mvdan.cc/interfacer => mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed
|
||||||
mvdan.cc/lint => mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b
|
mvdan.cc/lint => mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b
|
||||||
mvdan.cc/unparam => mvdan.cc/unparam v0.0.0-20190209190245-fbb59629db34
|
mvdan.cc/unparam => mvdan.cc/unparam v0.0.0-20190209190245-fbb59629db34
|
||||||
|
rsc.io/pdf => rsc.io/pdf v0.1.1
|
||||||
|
sigs.k8s.io/apiserver-network-proxy/konnectivity-client => sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.5
|
||||||
sigs.k8s.io/kustomize => sigs.k8s.io/kustomize v2.0.3+incompatible
|
sigs.k8s.io/kustomize => sigs.k8s.io/kustomize v2.0.3+incompatible
|
||||||
sigs.k8s.io/structured-merge-diff => sigs.k8s.io/structured-merge-diff v1.0.1-0.20191108220359-b1b620dd3f06
|
sigs.k8s.io/structured-merge-diff/v3 => sigs.k8s.io/structured-merge-diff/v3 v3.0.0-20200207200219-5e70324e7c1c
|
||||||
sigs.k8s.io/yaml => sigs.k8s.io/yaml v1.1.0
|
sigs.k8s.io/yaml => sigs.k8s.io/yaml v1.2.0
|
||||||
sourcegraph.com/sqs/pbtypes => sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4
|
sourcegraph.com/sqs/pbtypes => sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4
|
||||||
vbom.ml/util => vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc
|
vbom.ml/util => vbom.ml/util v0.0.0-20160121211510-db5cfe13f5cc
|
||||||
)
|
)
|
||||||
|
37
vendor/k8s.io/kubernetes/pkg/apis/core/types.go
generated
vendored
37
vendor/k8s.io/kubernetes/pkg/apis/core/types.go
generated
vendored
@ -586,6 +586,7 @@ const (
|
|||||||
StorageMediumDefault StorageMedium = "" // use whatever the default is for the node
|
StorageMediumDefault StorageMedium = "" // use whatever the default is for the node
|
||||||
StorageMediumMemory StorageMedium = "Memory" // use memory (tmpfs)
|
StorageMediumMemory StorageMedium = "Memory" // use memory (tmpfs)
|
||||||
StorageMediumHugePages StorageMedium = "HugePages" // use hugepages
|
StorageMediumHugePages StorageMedium = "HugePages" // use hugepages
|
||||||
|
StorageMediumHugePagesPrefix StorageMedium = "HugePages-" // prefix for full medium notation HugePages-<size>
|
||||||
)
|
)
|
||||||
|
|
||||||
// Protocol defines network protocols supported for things like container ports.
|
// Protocol defines network protocols supported for things like container ports.
|
||||||
@ -2765,8 +2766,7 @@ type PodSpec struct {
|
|||||||
EnableServiceLinks *bool
|
EnableServiceLinks *bool
|
||||||
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
// TopologySpreadConstraints describes how a group of pods ought to spread across topology
|
||||||
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
// domains. Scheduler will schedule pods in a way which abides by the constraints.
|
||||||
// This field is alpha-level and is only honored by clusters that enables the EvenPodsSpread
|
// This field is only honored by clusters that enable the EvenPodsSpread feature.
|
||||||
// feature.
|
|
||||||
// All topologySpreadConstraints are ANDed.
|
// All topologySpreadConstraints are ANDed.
|
||||||
// +optional
|
// +optional
|
||||||
TopologySpreadConstraints []TopologySpreadConstraint
|
TopologySpreadConstraints []TopologySpreadConstraint
|
||||||
@ -3533,6 +3533,16 @@ type ServicePort struct {
|
|||||||
// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
|
// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
|
||||||
Protocol Protocol
|
Protocol Protocol
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
AppProtocol *string
|
||||||
|
|
||||||
// The port that will be exposed on the service.
|
// The port that will be exposed on the service.
|
||||||
Port int32
|
Port int32
|
||||||
|
|
||||||
@ -3673,6 +3683,16 @@ type EndpointPort struct {
|
|||||||
|
|
||||||
// The IP protocol for this port.
|
// The IP protocol for this port.
|
||||||
Protocol Protocol
|
Protocol Protocol
|
||||||
|
|
||||||
|
// The application protocol for this port.
|
||||||
|
// This field follows standard Kubernetes label syntax.
|
||||||
|
// Un-prefixed names are reserved for IANA standard service names (as per
|
||||||
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
|
// Non-standard protocols should use prefixed names such as
|
||||||
|
// mycompany.com/my-custom-protocol.
|
||||||
|
// Field can be enabled with ServiceAppProtocol feature gate.
|
||||||
|
// +optional
|
||||||
|
AppProtocol *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
@ -4735,6 +4755,12 @@ type Secret struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta
|
metav1.ObjectMeta
|
||||||
|
|
||||||
|
// Immutable field, if set, ensures that data stored in the Secret cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
Immutable *bool
|
||||||
|
|
||||||
// Data contains the secret data. Each key must consist of alphanumeric
|
// Data contains the secret data. Each key must consist of alphanumeric
|
||||||
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
// characters, '-', '_' or '.'. The serialized form of the secret data is a
|
||||||
// base64 encoded string, representing the arbitrary (possibly non-string)
|
// base64 encoded string, representing the arbitrary (possibly non-string)
|
||||||
@ -4857,6 +4883,12 @@ type ConfigMap struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta
|
metav1.ObjectMeta
|
||||||
|
|
||||||
|
// Immutable field, if set, ensures that data stored in the ConfigMap cannot
|
||||||
|
// be updated (only object metadata can be modified).
|
||||||
|
// This is an alpha field enabled by ImmutableEphemeralVolumes feature gate.
|
||||||
|
// +optional
|
||||||
|
Immutable *bool
|
||||||
|
|
||||||
// Data contains the configuration data.
|
// Data contains the configuration data.
|
||||||
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
// Each key must consist of alphanumeric characters, '-', '_' or '.'.
|
||||||
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
// Values with non-UTF-8 byte sequences must use the BinaryData field.
|
||||||
@ -5079,7 +5111,6 @@ type WindowsSecurityContextOptions struct {
|
|||||||
// Defaults to the user specified in image metadata if unspecified.
|
// Defaults to the user specified in image metadata if unspecified.
|
||||||
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
// May also be set in PodSecurityContext. If set in both SecurityContext and
|
||||||
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
// PodSecurityContext, the value specified in SecurityContext takes precedence.
|
||||||
// This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.
|
|
||||||
// +optional
|
// +optional
|
||||||
RunAsUserName *string
|
RunAsUserName *string
|
||||||
}
|
}
|
||||||
|
28
vendor/k8s.io/kubernetes/pkg/apis/core/zz_generated.deepcopy.go
generated
vendored
28
vendor/k8s.io/kubernetes/pkg/apis/core/zz_generated.deepcopy.go
generated
vendored
@ -519,6 +519,11 @@ func (in *ConfigMap) DeepCopyInto(out *ConfigMap) {
|
|||||||
*out = *in
|
*out = *in
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
|
if in.Immutable != nil {
|
||||||
|
in, out := &in.Immutable, &out.Immutable
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Data != nil {
|
if in.Data != nil {
|
||||||
in, out := &in.Data, &out.Data
|
in, out := &in.Data, &out.Data
|
||||||
*out = make(map[string]string, len(*in))
|
*out = make(map[string]string, len(*in))
|
||||||
@ -1091,6 +1096,11 @@ func (in *EndpointAddress) DeepCopy() *EndpointAddress {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
|
func (in *EndpointPort) DeepCopyInto(out *EndpointPort) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.AppProtocol != nil {
|
||||||
|
in, out := &in.AppProtocol, &out.AppProtocol
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1124,7 +1134,9 @@ func (in *EndpointSubset) DeepCopyInto(out *EndpointSubset) {
|
|||||||
if in.Ports != nil {
|
if in.Ports != nil {
|
||||||
in, out := &in.Ports, &out.Ports
|
in, out := &in.Ports, &out.Ports
|
||||||
*out = make([]EndpointPort, len(*in))
|
*out = make([]EndpointPort, len(*in))
|
||||||
copy(*out, *in)
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -4660,6 +4672,11 @@ func (in *Secret) DeepCopyInto(out *Secret) {
|
|||||||
*out = *in
|
*out = *in
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
|
if in.Immutable != nil {
|
||||||
|
in, out := &in.Immutable, &out.Immutable
|
||||||
|
*out = new(bool)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
if in.Data != nil {
|
if in.Data != nil {
|
||||||
in, out := &in.Data, &out.Data
|
in, out := &in.Data, &out.Data
|
||||||
*out = make(map[string][]byte, len(*in))
|
*out = make(map[string][]byte, len(*in))
|
||||||
@ -5097,6 +5114,11 @@ func (in *ServiceList) DeepCopyObject() runtime.Object {
|
|||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *ServicePort) DeepCopyInto(out *ServicePort) {
|
func (in *ServicePort) DeepCopyInto(out *ServicePort) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.AppProtocol != nil {
|
||||||
|
in, out := &in.AppProtocol, &out.AppProtocol
|
||||||
|
*out = new(string)
|
||||||
|
**out = **in
|
||||||
|
}
|
||||||
out.TargetPort = in.TargetPort
|
out.TargetPort = in.TargetPort
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -5142,7 +5164,9 @@ func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec) {
|
|||||||
if in.Ports != nil {
|
if in.Ports != nil {
|
||||||
in, out := &in.Ports, &out.Ports
|
in, out := &in.Ports, &out.Ports
|
||||||
*out = make([]ServicePort, len(*in))
|
*out = make([]ServicePort, len(*in))
|
||||||
copy(*out, *in)
|
for i := range *in {
|
||||||
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if in.Selector != nil {
|
if in.Selector != nil {
|
||||||
in, out := &in.Selector, &out.Selector
|
in, out := &in.Selector, &out.Selector
|
||||||
|
4
vendor/k8s.io/kubernetes/pkg/kubelet/remote/remote_image.go
generated
vendored
4
vendor/k8s.io/kubernetes/pkg/kubelet/remote/remote_image.go
generated
vendored
@ -39,7 +39,7 @@ type RemoteImageService struct {
|
|||||||
// NewRemoteImageService creates a new internalapi.ImageManagerService.
|
// NewRemoteImageService creates a new internalapi.ImageManagerService.
|
||||||
func NewRemoteImageService(endpoint string, connectionTimeout time.Duration) (internalapi.ImageManagerService, error) {
|
func NewRemoteImageService(endpoint string, connectionTimeout time.Duration) (internalapi.ImageManagerService, error) {
|
||||||
klog.V(3).Infof("Connecting to image service %s", endpoint)
|
klog.V(3).Infof("Connecting to image service %s", endpoint)
|
||||||
addr, dailer, err := util.GetAddressAndDialer(endpoint)
|
addr, dialer, err := util.GetAddressAndDialer(endpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ func NewRemoteImageService(endpoint string, connectionTimeout time.Duration) (in
|
|||||||
ctx, cancel := context.WithTimeout(context.Background(), connectionTimeout)
|
ctx, cancel := context.WithTimeout(context.Background(), connectionTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithDialer(dailer), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
|
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithContextDialer(dialer), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("Connect remote image service %s failed: %v", addr, err)
|
klog.Errorf("Connect remote image service %s failed: %v", addr, err)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
4
vendor/k8s.io/kubernetes/pkg/kubelet/remote/remote_runtime.go
generated
vendored
4
vendor/k8s.io/kubernetes/pkg/kubelet/remote/remote_runtime.go
generated
vendored
@ -49,14 +49,14 @@ const (
|
|||||||
// NewRemoteRuntimeService creates a new internalapi.RuntimeService.
|
// NewRemoteRuntimeService creates a new internalapi.RuntimeService.
|
||||||
func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (internalapi.RuntimeService, error) {
|
func NewRemoteRuntimeService(endpoint string, connectionTimeout time.Duration) (internalapi.RuntimeService, error) {
|
||||||
klog.V(3).Infof("Connecting to runtime service %s", endpoint)
|
klog.V(3).Infof("Connecting to runtime service %s", endpoint)
|
||||||
addr, dailer, err := util.GetAddressAndDialer(endpoint)
|
addr, dialer, err := util.GetAddressAndDialer(endpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), connectionTimeout)
|
ctx, cancel := context.WithTimeout(context.Background(), connectionTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithDialer(dailer), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
|
conn, err := grpc.DialContext(ctx, addr, grpc.WithInsecure(), grpc.WithContextDialer(dialer), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("Connect remote runtime %s failed: %v", addr, err)
|
klog.Errorf("Connect remote runtime %s failed: %v", addr, err)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
10
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_unix.go
generated
vendored
10
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_unix.go
generated
vendored
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
|
||||||
|
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
"k8s.io/klog"
|
"k8s.io/klog"
|
||||||
@ -78,8 +78,8 @@ func CreateListener(endpoint string) (net.Listener, error) {
|
|||||||
return l, nil
|
return l, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAddressAndDialer returns the address parsed from the given endpoint and a dialer.
|
// GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
|
||||||
func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error) {
|
func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error) {
|
||||||
protocol, addr, err := parseEndpointWithFallbackProtocol(endpoint, unixProtocol)
|
protocol, addr, err := parseEndpointWithFallbackProtocol(endpoint, unixProtocol)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil, err
|
return "", nil, err
|
||||||
@ -91,8 +91,8 @@ func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout tim
|
|||||||
return addr, dial, nil
|
return addr, dial, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func dial(addr string, timeout time.Duration) (net.Conn, error) {
|
func dial(ctx context.Context, addr string) (net.Conn, error) {
|
||||||
return net.DialTimeout(unixProtocol, addr, timeout)
|
return (&net.Dialer{}).DialContext(ctx, unixProtocol, addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string) (protocol string, addr string, err error) {
|
func parseEndpointWithFallbackProtocol(endpoint string, fallbackProtocol string) (protocol string, addr string, err error) {
|
||||||
|
5
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_unsupported.go
generated
vendored
5
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_unsupported.go
generated
vendored
@ -19,6 +19,7 @@ limitations under the License.
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
@ -29,8 +30,8 @@ func CreateListener(endpoint string) (net.Listener, error) {
|
|||||||
return nil, fmt.Errorf("CreateListener is unsupported in this build")
|
return nil, fmt.Errorf("CreateListener is unsupported in this build")
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAddressAndDialer returns the address parsed from the given endpoint and a dialer.
|
// GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
|
||||||
func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error) {
|
func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error) {
|
||||||
return "", nil, fmt.Errorf("GetAddressAndDialer is unsupported in this build")
|
return "", nil, fmt.Errorf("GetAddressAndDialer is unsupported in this build")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
13
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_windows.go
generated
vendored
13
vendor/k8s.io/kubernetes/pkg/kubelet/util/util_windows.go
generated
vendored
@ -19,6 +19,7 @@ limitations under the License.
|
|||||||
package util
|
package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -53,8 +54,8 @@ func CreateListener(endpoint string) (net.Listener, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAddressAndDialer returns the address parsed from the given endpoint and a dialer.
|
// GetAddressAndDialer returns the address parsed from the given endpoint and a context dialer.
|
||||||
func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout time.Duration) (net.Conn, error), error) {
|
func GetAddressAndDialer(endpoint string) (string, func(ctx context.Context, addr string) (net.Conn, error), error) {
|
||||||
protocol, addr, err := parseEndpoint(endpoint)
|
protocol, addr, err := parseEndpoint(endpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil, err
|
return "", nil, err
|
||||||
@ -71,12 +72,12 @@ func GetAddressAndDialer(endpoint string) (string, func(addr string, timeout tim
|
|||||||
return "", nil, fmt.Errorf("only support tcp and npipe endpoint")
|
return "", nil, fmt.Errorf("only support tcp and npipe endpoint")
|
||||||
}
|
}
|
||||||
|
|
||||||
func tcpDial(addr string, timeout time.Duration) (net.Conn, error) {
|
func tcpDial(ctx context.Context, addr string) (net.Conn, error) {
|
||||||
return net.DialTimeout(tcpProtocol, addr, timeout)
|
return (&net.Dialer{}).DialContext(ctx, tcpProtocol, addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func npipeDial(addr string, timeout time.Duration) (net.Conn, error) {
|
func npipeDial(ctx context.Context, addr string) (net.Conn, error) {
|
||||||
return winio.DialPipe(addr, &timeout)
|
return winio.DialPipeContext(ctx, addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseEndpoint(endpoint string) (string, string, error) {
|
func parseEndpoint(endpoint string) (string, string, error) {
|
||||||
|
201
vendor/sigs.k8s.io/structured-merge-diff/v3/LICENSE
generated
vendored
Normal file
201
vendor/sigs.k8s.io/structured-merge-diff/v3/LICENSE
generated
vendored
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright {yyyy} {name of copyright owner}
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
67
vendor/sigs.k8s.io/structured-merge-diff/v3/README.md
generated
vendored
Normal file
67
vendor/sigs.k8s.io/structured-merge-diff/v3/README.md
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Structured Merge and Diff
|
||||||
|
|
||||||
|
This repo contains code which implements the Kubernetes "apply" operation.
|
||||||
|
|
||||||
|
## What is the apply operation?
|
||||||
|
|
||||||
|
We model resources in a control plane as having multiple "managers". Each
|
||||||
|
manager is typically trying to manage only one aspect of a resource. The goal is
|
||||||
|
to make it easy for disparate managers to make the changes they need without
|
||||||
|
messing up the things that other managers are doing. In this system, both humans
|
||||||
|
and machines (aka "controllers") act as managers.
|
||||||
|
|
||||||
|
To do this, we explicitly track (using the fieldset data structure) which fields
|
||||||
|
each manager is currently managing.
|
||||||
|
|
||||||
|
Now, there are two basic mechanisms by which one modifies an object.
|
||||||
|
|
||||||
|
PUT/PATCH: This is a write command that says: "Make the object look EXACTLY like
|
||||||
|
X".
|
||||||
|
|
||||||
|
APPLY: This is a write command that says: "The fields I manage should now look
|
||||||
|
exactly like this (but I don't care about other fields)".
|
||||||
|
|
||||||
|
For PUT/PATCH, we deduce which fields will be managed based on what is changing.
|
||||||
|
For APPLY, the user is explicitly stating which fields they wish to manage (and
|
||||||
|
therefore requesting deletion of any fields that they used to manage but stop
|
||||||
|
mentioning).
|
||||||
|
|
||||||
|
Any time a manager begins managing some new field, that field is removed from
|
||||||
|
all other managers. If the manager is using the APPLY command, we call these
|
||||||
|
conflicts, and will not proceed unless the user passes the "force" option. This
|
||||||
|
prevents accidentally setting fields which some other entity is managing.
|
||||||
|
|
||||||
|
PUT/PATCH always "force". They are mostly used by automated systems, which won't
|
||||||
|
do anything productive with a new error type.
|
||||||
|
|
||||||
|
## Components
|
||||||
|
|
||||||
|
The operation has a few building blocks:
|
||||||
|
|
||||||
|
* We define a targeted schema type in the schema package. (As a consequence of
|
||||||
|
being well-targeted, it's much simpler than e.g. OpenAPI.)
|
||||||
|
* We define a "field set" data structure, in the fieldpath package. A field path
|
||||||
|
locates a field in an object, generally a "leaf" field for our purposes. A
|
||||||
|
field set is a group of such paths. They can be stored efficiently in what
|
||||||
|
amounts to a Trie.
|
||||||
|
* We define a "value" type which stores an arbitrary object.
|
||||||
|
* We define a "typed" package which combines "value" and "schema". Now we can
|
||||||
|
validate that an object conforms to a schema, or compare two objects.
|
||||||
|
* We define a "merge" package which uses all of the above concepts to implement
|
||||||
|
the "apply" operation.
|
||||||
|
* We will extensively test this.
|
||||||
|
|
||||||
|
## Community, discussion, contribution, and support
|
||||||
|
|
||||||
|
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
|
||||||
|
|
||||||
|
You can reach the maintainers of this project at:
|
||||||
|
|
||||||
|
- [Slack](http://slack.k8s.io/)
|
||||||
|
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-wg-apply)
|
||||||
|
|
||||||
|
### Code of conduct
|
||||||
|
|
||||||
|
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).
|
||||||
|
|
||||||
|
[owners]: https://git.k8s.io/community/contributors/guide/owners.md
|
12
vendor/sigs.k8s.io/structured-merge-diff/v3/go.mod
generated
vendored
Normal file
12
vendor/sigs.k8s.io/structured-merge-diff/v3/go.mod
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module sigs.k8s.io/structured-merge-diff/v3
|
||||||
|
|
||||||
|
require gopkg.in/yaml.v2 v2.2.1
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/google/gofuzz v1.0.0
|
||||||
|
github.com/json-iterator/go v1.1.6
|
||||||
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||||
|
github.com/modern-go/reflect2 v1.0.1 // indirect
|
||||||
|
)
|
||||||
|
|
||||||
|
go 1.13
|
203
vendor/sigs.k8s.io/structured-merge-diff/v3/value/allocator.go
generated
vendored
Normal file
203
vendor/sigs.k8s.io/structured-merge-diff/v3/value/allocator.go
generated
vendored
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
// Allocator provides a value object allocation strategy.
|
||||||
|
// Value objects can be allocated by passing an allocator to the "Using"
|
||||||
|
// receiver functions on the value interfaces, e.g. Map.ZipUsing(allocator, ...).
|
||||||
|
// Value objects returned from "Using" functions should be given back to the allocator
|
||||||
|
// once longer needed by calling Allocator.Free(Value).
|
||||||
|
type Allocator interface {
|
||||||
|
// Free gives the allocator back any value objects returned by the "Using"
|
||||||
|
// receiver functions on the value interfaces.
|
||||||
|
// interface{} may be any of: Value, Map, List or Range.
|
||||||
|
Free(interface{})
|
||||||
|
|
||||||
|
// The unexported functions are for "Using" receiver functions of the value types
|
||||||
|
// to request what they need from the allocator.
|
||||||
|
allocValueUnstructured() *valueUnstructured
|
||||||
|
allocListUnstructuredRange() *listUnstructuredRange
|
||||||
|
allocValueReflect() *valueReflect
|
||||||
|
allocMapReflect() *mapReflect
|
||||||
|
allocStructReflect() *structReflect
|
||||||
|
allocListReflect() *listReflect
|
||||||
|
allocListReflectRange() *listReflectRange
|
||||||
|
}
|
||||||
|
|
||||||
|
// HeapAllocator simply allocates objects to the heap. It is the default
|
||||||
|
// allocator used receiver functions on the value interfaces that do not accept
|
||||||
|
// an allocator and should be used whenever allocating objects that will not
|
||||||
|
// be given back to an allocator by calling Allocator.Free(Value).
|
||||||
|
var HeapAllocator = &heapAllocator{}
|
||||||
|
|
||||||
|
type heapAllocator struct{}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocValueUnstructured() *valueUnstructured {
|
||||||
|
return &valueUnstructured{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocListUnstructuredRange() *listUnstructuredRange {
|
||||||
|
return &listUnstructuredRange{vv: &valueUnstructured{}}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocValueReflect() *valueReflect {
|
||||||
|
return &valueReflect{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocStructReflect() *structReflect {
|
||||||
|
return &structReflect{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocMapReflect() *mapReflect {
|
||||||
|
return &mapReflect{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocListReflect() *listReflect {
|
||||||
|
return &listReflect{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) allocListReflectRange() *listReflectRange {
|
||||||
|
return &listReflectRange{vr: &valueReflect{}}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p *heapAllocator) Free(_ interface{}) {}
|
||||||
|
|
||||||
|
// NewFreelistAllocator creates freelist based allocator.
|
||||||
|
// This allocator provides fast allocation and freeing of short lived value objects.
|
||||||
|
//
|
||||||
|
// The freelists are bounded in size by freelistMaxSize. If more than this amount of value objects is
|
||||||
|
// allocated at once, the excess will be returned to the heap for garbage collection when freed.
|
||||||
|
//
|
||||||
|
// This allocator is unsafe and must not be accessed concurrently by goroutines.
|
||||||
|
//
|
||||||
|
// This allocator works well for traversal of value data trees. Typical usage is to acquire
|
||||||
|
// a freelist at the beginning of the traversal and use it through out
|
||||||
|
// for all temporary value access.
|
||||||
|
func NewFreelistAllocator() Allocator {
|
||||||
|
return &freelistAllocator{
|
||||||
|
valueUnstructured: &freelist{new: func() interface{} {
|
||||||
|
return &valueUnstructured{}
|
||||||
|
}},
|
||||||
|
listUnstructuredRange: &freelist{new: func() interface{} {
|
||||||
|
return &listUnstructuredRange{vv: &valueUnstructured{}}
|
||||||
|
}},
|
||||||
|
valueReflect: &freelist{new: func() interface{} {
|
||||||
|
return &valueReflect{}
|
||||||
|
}},
|
||||||
|
mapReflect: &freelist{new: func() interface{} {
|
||||||
|
return &mapReflect{}
|
||||||
|
}},
|
||||||
|
structReflect: &freelist{new: func() interface{} {
|
||||||
|
return &structReflect{}
|
||||||
|
}},
|
||||||
|
listReflect: &freelist{new: func() interface{} {
|
||||||
|
return &listReflect{}
|
||||||
|
}},
|
||||||
|
listReflectRange: &freelist{new: func() interface{} {
|
||||||
|
return &listReflectRange{vr: &valueReflect{}}
|
||||||
|
}},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bound memory usage of freelists. This prevents the processing of very large lists from leaking memory.
|
||||||
|
// This limit is large enough for endpoints objects containing 1000 IP address entries. Freed objects
|
||||||
|
// that don't fit into the freelist are orphaned on the heap to be garbage collected.
|
||||||
|
const freelistMaxSize = 1000
|
||||||
|
|
||||||
|
type freelistAllocator struct {
|
||||||
|
valueUnstructured *freelist
|
||||||
|
listUnstructuredRange *freelist
|
||||||
|
valueReflect *freelist
|
||||||
|
mapReflect *freelist
|
||||||
|
structReflect *freelist
|
||||||
|
listReflect *freelist
|
||||||
|
listReflectRange *freelist
|
||||||
|
}
|
||||||
|
|
||||||
|
type freelist struct {
|
||||||
|
list []interface{}
|
||||||
|
new func() interface{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *freelist) allocate() interface{} {
|
||||||
|
var w2 interface{}
|
||||||
|
if n := len(f.list); n > 0 {
|
||||||
|
w2, f.list = f.list[n-1], f.list[:n-1]
|
||||||
|
} else {
|
||||||
|
w2 = f.new()
|
||||||
|
}
|
||||||
|
return w2
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *freelist) free(v interface{}) {
|
||||||
|
if len(f.list) < freelistMaxSize {
|
||||||
|
f.list = append(f.list, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) Free(value interface{}) {
|
||||||
|
switch v := value.(type) {
|
||||||
|
case *valueUnstructured:
|
||||||
|
v.Value = nil // don't hold references to unstructured objects
|
||||||
|
w.valueUnstructured.free(v)
|
||||||
|
case *listUnstructuredRange:
|
||||||
|
v.vv.Value = nil // don't hold references to unstructured objects
|
||||||
|
w.listUnstructuredRange.free(v)
|
||||||
|
case *valueReflect:
|
||||||
|
v.ParentMapKey = nil
|
||||||
|
v.ParentMap = nil
|
||||||
|
w.valueReflect.free(v)
|
||||||
|
case *mapReflect:
|
||||||
|
w.mapReflect.free(v)
|
||||||
|
case *structReflect:
|
||||||
|
w.structReflect.free(v)
|
||||||
|
case *listReflect:
|
||||||
|
w.listReflect.free(v)
|
||||||
|
case *listReflectRange:
|
||||||
|
v.vr.ParentMapKey = nil
|
||||||
|
v.vr.ParentMap = nil
|
||||||
|
w.listReflectRange.free(v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocValueUnstructured() *valueUnstructured {
|
||||||
|
return w.valueUnstructured.allocate().(*valueUnstructured)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocListUnstructuredRange() *listUnstructuredRange {
|
||||||
|
return w.listUnstructuredRange.allocate().(*listUnstructuredRange)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocValueReflect() *valueReflect {
|
||||||
|
return w.valueReflect.allocate().(*valueReflect)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocStructReflect() *structReflect {
|
||||||
|
return w.structReflect.allocate().(*structReflect)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocMapReflect() *mapReflect {
|
||||||
|
return w.mapReflect.allocate().(*mapReflect)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocListReflect() *listReflect {
|
||||||
|
return w.listReflect.allocate().(*listReflect)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (w *freelistAllocator) allocListReflectRange() *listReflectRange {
|
||||||
|
return w.listReflectRange.allocate().(*listReflectRange)
|
||||||
|
}
|
21
vendor/sigs.k8s.io/structured-merge-diff/v3/value/doc.go
generated
vendored
Normal file
21
vendor/sigs.k8s.io/structured-merge-diff/v3/value/doc.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Package value defines types for an in-memory representation of yaml or json
|
||||||
|
// objects, organized for convenient comparison with a schema (as defined by
|
||||||
|
// the sibling schema package). Functions for reading and writing the objects
|
||||||
|
// are also provided.
|
||||||
|
package value
|
97
vendor/sigs.k8s.io/structured-merge-diff/v3/value/fields.go
generated
vendored
Normal file
97
vendor/sigs.k8s.io/structured-merge-diff/v3/value/fields.go
generated
vendored
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Field is an individual key-value pair.
|
||||||
|
type Field struct {
|
||||||
|
Name string
|
||||||
|
Value Value
|
||||||
|
}
|
||||||
|
|
||||||
|
// FieldList is a list of key-value pairs. Each field is expected to
|
||||||
|
// have a different name.
|
||||||
|
type FieldList []Field
|
||||||
|
|
||||||
|
// Sort sorts the field list by Name.
|
||||||
|
func (f FieldList) Sort() {
|
||||||
|
if len(f) < 2 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len(f) == 2 {
|
||||||
|
if f[1].Name < f[0].Name {
|
||||||
|
f[0], f[1] = f[1], f[0]
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
sort.SliceStable(f, func(i, j int) bool {
|
||||||
|
return f[i].Name < f[j].Name
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less compares two lists lexically.
|
||||||
|
func (f FieldList) Less(rhs FieldList) bool {
|
||||||
|
return f.Compare(rhs) == -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compare compares two lists lexically. The result will be 0 if f==rhs, -1
|
||||||
|
// if f < rhs, and +1 if f > rhs.
|
||||||
|
func (f FieldList) Compare(rhs FieldList) int {
|
||||||
|
i := 0
|
||||||
|
for {
|
||||||
|
if i >= len(f) && i >= len(rhs) {
|
||||||
|
// Maps are the same length and all items are equal.
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
if i >= len(f) {
|
||||||
|
// F is shorter.
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
if i >= len(rhs) {
|
||||||
|
// RHS is shorter.
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
if c := strings.Compare(f[i].Name, rhs[i].Name); c != 0 {
|
||||||
|
return c
|
||||||
|
}
|
||||||
|
if c := Compare(f[i].Value, rhs[i].Value); c != 0 {
|
||||||
|
return c
|
||||||
|
}
|
||||||
|
// The items are equal; continue.
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equals returns true if the two fieldslist are equals, false otherwise.
|
||||||
|
func (f FieldList) Equals(rhs FieldList) bool {
|
||||||
|
if len(f) != len(rhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
for i := range f {
|
||||||
|
if f[i].Name != rhs[i].Name {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if !Equals(f[i].Value, rhs[i].Value) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
91
vendor/sigs.k8s.io/structured-merge-diff/v3/value/jsontagutil.go
generated
vendored
Normal file
91
vendor/sigs.k8s.io/structured-merge-diff/v3/value/jsontagutil.go
generated
vendored
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"reflect"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// TODO: This implements the same functionality as https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/runtime/converter.go#L236
|
||||||
|
// but is based on the highly efficient approach from https://golang.org/src/encoding/json/encode.go
|
||||||
|
|
||||||
|
func lookupJsonTags(f reflect.StructField) (name string, omit bool, inline bool, omitempty bool) {
|
||||||
|
tag := f.Tag.Get("json")
|
||||||
|
if tag == "-" {
|
||||||
|
return "", true, false, false
|
||||||
|
}
|
||||||
|
name, opts := parseTag(tag)
|
||||||
|
if name == "" {
|
||||||
|
name = f.Name
|
||||||
|
}
|
||||||
|
return name, false, opts.Contains("inline"), opts.Contains("omitempty")
|
||||||
|
}
|
||||||
|
|
||||||
|
func isZero(v reflect.Value) bool {
|
||||||
|
switch v.Kind() {
|
||||||
|
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
|
||||||
|
return v.Len() == 0
|
||||||
|
case reflect.Bool:
|
||||||
|
return !v.Bool()
|
||||||
|
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
||||||
|
return v.Int() == 0
|
||||||
|
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
|
||||||
|
return v.Uint() == 0
|
||||||
|
case reflect.Float32, reflect.Float64:
|
||||||
|
return v.Float() == 0
|
||||||
|
case reflect.Interface, reflect.Ptr:
|
||||||
|
return v.IsNil()
|
||||||
|
case reflect.Chan, reflect.Func:
|
||||||
|
panic(fmt.Sprintf("unsupported type: %v", v.Type()))
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
type tagOptions string
|
||||||
|
|
||||||
|
// parseTag splits a struct field's json tag into its name and
|
||||||
|
// comma-separated options.
|
||||||
|
func parseTag(tag string) (string, tagOptions) {
|
||||||
|
if idx := strings.Index(tag, ","); idx != -1 {
|
||||||
|
return tag[:idx], tagOptions(tag[idx+1:])
|
||||||
|
}
|
||||||
|
return tag, tagOptions("")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Contains reports whether a comma-separated list of options
|
||||||
|
// contains a particular substr flag. substr must be surrounded by a
|
||||||
|
// string boundary or commas.
|
||||||
|
func (o tagOptions) Contains(optionName string) bool {
|
||||||
|
if len(o) == 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
s := string(o)
|
||||||
|
for s != "" {
|
||||||
|
var next string
|
||||||
|
i := strings.Index(s, ",")
|
||||||
|
if i >= 0 {
|
||||||
|
s, next = s[:i], s[i+1:]
|
||||||
|
}
|
||||||
|
if s == optionName {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
s = next
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
139
vendor/sigs.k8s.io/structured-merge-diff/v3/value/list.go
generated
vendored
Normal file
139
vendor/sigs.k8s.io/structured-merge-diff/v3/value/list.go
generated
vendored
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
// List represents a list object.
|
||||||
|
type List interface {
|
||||||
|
// Length returns how many items can be found in the map.
|
||||||
|
Length() int
|
||||||
|
// At returns the item at the given position in the map. It will
|
||||||
|
// panic if the index is out of range.
|
||||||
|
At(int) Value
|
||||||
|
// AtUsing uses the provided allocator and returns the item at the given
|
||||||
|
// position in the map. It will panic if the index is out of range.
|
||||||
|
// The returned Value should be given back to the Allocator when no longer needed
|
||||||
|
// by calling Allocator.Free(Value).
|
||||||
|
AtUsing(Allocator, int) Value
|
||||||
|
// Range returns a ListRange for iterating over the items in the list.
|
||||||
|
Range() ListRange
|
||||||
|
// RangeUsing uses the provided allocator and returns a ListRange for
|
||||||
|
// iterating over the items in the list.
|
||||||
|
// The returned Range should be given back to the Allocator when no longer needed
|
||||||
|
// by calling Allocator.Free(Value).
|
||||||
|
RangeUsing(Allocator) ListRange
|
||||||
|
// Equals compares the two lists, and return true if they are the same, false otherwise.
|
||||||
|
// Implementations can use ListEquals as a general implementation for this methods.
|
||||||
|
Equals(List) bool
|
||||||
|
// EqualsUsing uses the provided allocator and compares the two lists, and return true if
|
||||||
|
// they are the same, false otherwise. Implementations can use ListEqualsUsing as a general
|
||||||
|
// implementation for this methods.
|
||||||
|
EqualsUsing(Allocator, List) bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListRange represents a single iteration across the items of a list.
|
||||||
|
type ListRange interface {
|
||||||
|
// Next increments to the next item in the range, if there is one, and returns true, or returns false if there are no more items.
|
||||||
|
Next() bool
|
||||||
|
// Item returns the index and value of the current item in the range. or panics if there is no current item.
|
||||||
|
// For efficiency, Item may reuse the values returned by previous Item calls. Callers should be careful avoid holding
|
||||||
|
// pointers to the value returned by Item() that escape the iteration loop since they become invalid once either
|
||||||
|
// Item() or Allocator.Free() is called.
|
||||||
|
Item() (index int, value Value)
|
||||||
|
}
|
||||||
|
|
||||||
|
var EmptyRange = &emptyRange{}
|
||||||
|
|
||||||
|
type emptyRange struct{}
|
||||||
|
|
||||||
|
func (_ *emptyRange) Next() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_ *emptyRange) Item() (index int, value Value) {
|
||||||
|
panic("Item called on empty ListRange")
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListEquals compares two lists lexically.
|
||||||
|
// WARN: This is a naive implementation, calling lhs.Equals(rhs) is typically the most efficient.
|
||||||
|
func ListEquals(lhs, rhs List) bool {
|
||||||
|
return ListEqualsUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListEqualsUsing uses the provided allocator and compares two lists lexically.
|
||||||
|
// WARN: This is a naive implementation, calling lhs.EqualsUsing(allocator, rhs) is typically the most efficient.
|
||||||
|
func ListEqualsUsing(a Allocator, lhs, rhs List) bool {
|
||||||
|
if lhs.Length() != rhs.Length() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
lhsRange := lhs.RangeUsing(a)
|
||||||
|
defer a.Free(lhsRange)
|
||||||
|
rhsRange := rhs.RangeUsing(a)
|
||||||
|
defer a.Free(rhsRange)
|
||||||
|
|
||||||
|
for lhsRange.Next() && rhsRange.Next() {
|
||||||
|
_, lv := lhsRange.Item()
|
||||||
|
_, rv := rhsRange.Item()
|
||||||
|
if !EqualsUsing(a, lv, rv) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListLess compares two lists lexically.
|
||||||
|
func ListLess(lhs, rhs List) bool {
|
||||||
|
return ListCompare(lhs, rhs) == -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListCompare compares two lists lexically. The result will be 0 if l==rhs, -1
|
||||||
|
// if l < rhs, and +1 if l > rhs.
|
||||||
|
func ListCompare(lhs, rhs List) int {
|
||||||
|
return ListCompareUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ListCompareUsing uses the provided allocator and compares two lists lexically. The result will be 0 if l==rhs, -1
|
||||||
|
// if l < rhs, and +1 if l > rhs.
|
||||||
|
func ListCompareUsing(a Allocator, lhs, rhs List) int {
|
||||||
|
lhsRange := lhs.RangeUsing(a)
|
||||||
|
defer a.Free(lhsRange)
|
||||||
|
rhsRange := rhs.RangeUsing(a)
|
||||||
|
defer a.Free(rhsRange)
|
||||||
|
|
||||||
|
for {
|
||||||
|
lhsOk := lhsRange.Next()
|
||||||
|
rhsOk := rhsRange.Next()
|
||||||
|
if !lhsOk && !rhsOk {
|
||||||
|
// Lists are the same length and all items are equal.
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
if !lhsOk {
|
||||||
|
// LHS is shorter.
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
if !rhsOk {
|
||||||
|
// RHS is shorter.
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
_, lv := lhsRange.Item()
|
||||||
|
_, rv := rhsRange.Item()
|
||||||
|
if c := CompareUsing(a, lv, rv); c != 0 {
|
||||||
|
return c
|
||||||
|
}
|
||||||
|
// The items are equal; continue.
|
||||||
|
}
|
||||||
|
}
|
98
vendor/sigs.k8s.io/structured-merge-diff/v3/value/listreflect.go
generated
vendored
Normal file
98
vendor/sigs.k8s.io/structured-merge-diff/v3/value/listreflect.go
generated
vendored
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
type listReflect struct {
|
||||||
|
Value reflect.Value
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) Length() int {
|
||||||
|
val := r.Value
|
||||||
|
return val.Len()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) At(i int) Value {
|
||||||
|
val := r.Value
|
||||||
|
return mustWrapValueReflect(val.Index(i), nil, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) AtUsing(a Allocator, i int) Value {
|
||||||
|
val := r.Value
|
||||||
|
return a.allocValueReflect().mustReuse(val.Index(i), nil, nil, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) Unstructured() interface{} {
|
||||||
|
l := r.Length()
|
||||||
|
result := make([]interface{}, l)
|
||||||
|
for i := 0; i < l; i++ {
|
||||||
|
result[i] = r.At(i).Unstructured()
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) Range() ListRange {
|
||||||
|
return r.RangeUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) RangeUsing(a Allocator) ListRange {
|
||||||
|
length := r.Value.Len()
|
||||||
|
if length == 0 {
|
||||||
|
return EmptyRange
|
||||||
|
}
|
||||||
|
rr := a.allocListReflectRange()
|
||||||
|
rr.list = r.Value
|
||||||
|
rr.i = -1
|
||||||
|
rr.entry = TypeReflectEntryOf(r.Value.Type().Elem())
|
||||||
|
return rr
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r listReflect) Equals(other List) bool {
|
||||||
|
return r.EqualsUsing(HeapAllocator, other)
|
||||||
|
}
|
||||||
|
func (r listReflect) EqualsUsing(a Allocator, other List) bool {
|
||||||
|
if otherReflectList, ok := other.(*listReflect); ok {
|
||||||
|
return reflect.DeepEqual(r.Value.Interface(), otherReflectList.Value.Interface())
|
||||||
|
}
|
||||||
|
return ListEqualsUsing(a, &r, other)
|
||||||
|
}
|
||||||
|
|
||||||
|
type listReflectRange struct {
|
||||||
|
list reflect.Value
|
||||||
|
vr *valueReflect
|
||||||
|
i int
|
||||||
|
entry *TypeReflectCacheEntry
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *listReflectRange) Next() bool {
|
||||||
|
r.i += 1
|
||||||
|
return r.i < r.list.Len()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *listReflectRange) Item() (index int, value Value) {
|
||||||
|
if r.i < 0 {
|
||||||
|
panic("Item() called before first calling Next()")
|
||||||
|
}
|
||||||
|
if r.i >= r.list.Len() {
|
||||||
|
panic("Item() called on ListRange with no more items")
|
||||||
|
}
|
||||||
|
v := r.list.Index(r.i)
|
||||||
|
return r.i, r.vr.mustReuse(v, r.entry, nil, nil)
|
||||||
|
}
|
74
vendor/sigs.k8s.io/structured-merge-diff/v3/value/listunstructured.go
generated
vendored
Normal file
74
vendor/sigs.k8s.io/structured-merge-diff/v3/value/listunstructured.go
generated
vendored
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
type listUnstructured []interface{}
|
||||||
|
|
||||||
|
func (l listUnstructured) Length() int {
|
||||||
|
return len(l)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) At(i int) Value {
|
||||||
|
return NewValueInterface(l[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) AtUsing(a Allocator, i int) Value {
|
||||||
|
return a.allocValueUnstructured().reuse(l[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) Equals(other List) bool {
|
||||||
|
return l.EqualsUsing(HeapAllocator, other)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) EqualsUsing(a Allocator, other List) bool {
|
||||||
|
return ListEqualsUsing(a, &l, other)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) Range() ListRange {
|
||||||
|
return l.RangeUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l listUnstructured) RangeUsing(a Allocator) ListRange {
|
||||||
|
if len(l) == 0 {
|
||||||
|
return EmptyRange
|
||||||
|
}
|
||||||
|
r := a.allocListUnstructuredRange()
|
||||||
|
r.list = l
|
||||||
|
r.i = -1
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
||||||
|
type listUnstructuredRange struct {
|
||||||
|
list listUnstructured
|
||||||
|
vv *valueUnstructured
|
||||||
|
i int
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *listUnstructuredRange) Next() bool {
|
||||||
|
r.i += 1
|
||||||
|
return r.i < len(r.list)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *listUnstructuredRange) Item() (index int, value Value) {
|
||||||
|
if r.i < 0 {
|
||||||
|
panic("Item() called before first calling Next()")
|
||||||
|
}
|
||||||
|
if r.i >= len(r.list) {
|
||||||
|
panic("Item() called on ListRange with no more items")
|
||||||
|
}
|
||||||
|
return r.i, r.vv.reuse(r.list[r.i])
|
||||||
|
}
|
270
vendor/sigs.k8s.io/structured-merge-diff/v3/value/map.go
generated
vendored
Normal file
270
vendor/sigs.k8s.io/structured-merge-diff/v3/value/map.go
generated
vendored
Normal file
@ -0,0 +1,270 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sort"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Map represents a Map or go structure.
|
||||||
|
type Map interface {
|
||||||
|
// Set changes or set the value of the given key.
|
||||||
|
Set(key string, val Value)
|
||||||
|
// Get returns the value for the given key, if present, or (nil, false) otherwise.
|
||||||
|
Get(key string) (Value, bool)
|
||||||
|
// GetUsing uses the provided allocator and returns the value for the given key,
|
||||||
|
// if present, or (nil, false) otherwise.
|
||||||
|
// The returned Value should be given back to the Allocator when no longer needed
|
||||||
|
// by calling Allocator.Free(Value).
|
||||||
|
GetUsing(a Allocator, key string) (Value, bool)
|
||||||
|
// Has returns true if the key is present, or false otherwise.
|
||||||
|
Has(key string) bool
|
||||||
|
// Delete removes the key from the map.
|
||||||
|
Delete(key string)
|
||||||
|
// Equals compares the two maps, and return true if they are the same, false otherwise.
|
||||||
|
// Implementations can use MapEquals as a general implementation for this methods.
|
||||||
|
Equals(other Map) bool
|
||||||
|
// EqualsUsing uses the provided allocator and compares the two maps, and return true if
|
||||||
|
// they are the same, false otherwise. Implementations can use MapEqualsUsing as a general
|
||||||
|
// implementation for this methods.
|
||||||
|
EqualsUsing(a Allocator, other Map) bool
|
||||||
|
// Iterate runs the given function for each key/value in the
|
||||||
|
// map. Returning false in the closure prematurely stops the
|
||||||
|
// iteration.
|
||||||
|
Iterate(func(key string, value Value) bool) bool
|
||||||
|
// IterateUsing uses the provided allocator and runs the given function for each key/value
|
||||||
|
// in the map. Returning false in the closure prematurely stops the iteration.
|
||||||
|
IterateUsing(Allocator, func(key string, value Value) bool) bool
|
||||||
|
// Length returns the number of items in the map.
|
||||||
|
Length() int
|
||||||
|
// Empty returns true if the map is empty.
|
||||||
|
Empty() bool
|
||||||
|
// Zip iterates over the entries of two maps together. If both maps contain a value for a given key, fn is called
|
||||||
|
// with the values from both maps, otherwise it is called with the value of the map that contains the key and nil
|
||||||
|
// for the map that does not contain the key. Returning false in the closure prematurely stops the iteration.
|
||||||
|
Zip(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool
|
||||||
|
// ZipUsing uses the provided allocator and iterates over the entries of two maps together. If both maps
|
||||||
|
// contain a value for a given key, fn is called with the values from both maps, otherwise it is called with
|
||||||
|
// the value of the map that contains the key and nil for the map that does not contain the key. Returning
|
||||||
|
// false in the closure prematurely stops the iteration.
|
||||||
|
ZipUsing(a Allocator, other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapTraverseOrder defines the map traversal ordering available.
|
||||||
|
type MapTraverseOrder int
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Unordered indicates that the map traversal has no ordering requirement.
|
||||||
|
Unordered = iota
|
||||||
|
// LexicalKeyOrder indicates that the map traversal is ordered by key, lexically.
|
||||||
|
LexicalKeyOrder
|
||||||
|
)
|
||||||
|
|
||||||
|
// MapZip iterates over the entries of two maps together. If both maps contain a value for a given key, fn is called
|
||||||
|
// with the values from both maps, otherwise it is called with the value of the map that contains the key and nil
|
||||||
|
// for the other map. Returning false in the closure prematurely stops the iteration.
|
||||||
|
func MapZip(lhs, rhs Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return MapZipUsing(HeapAllocator, lhs, rhs, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapZipUsing uses the provided allocator and iterates over the entries of two maps together. If both maps
|
||||||
|
// contain a value for a given key, fn is called with the values from both maps, otherwise it is called with
|
||||||
|
// the value of the map that contains the key and nil for the other map. Returning false in the closure
|
||||||
|
// prematurely stops the iteration.
|
||||||
|
func MapZipUsing(a Allocator, lhs, rhs Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
if lhs != nil {
|
||||||
|
return lhs.ZipUsing(a, rhs, order, fn)
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
return rhs.ZipUsing(a, lhs, order, func(key string, rhs, lhs Value) bool { // arg positions of lhs and rhs deliberately swapped
|
||||||
|
return fn(key, lhs, rhs)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// defaultMapZip provides a default implementation of Zip for implementations that do not need to provide
|
||||||
|
// their own optimized implementation.
|
||||||
|
func defaultMapZip(a Allocator, lhs, rhs Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
switch order {
|
||||||
|
case Unordered:
|
||||||
|
return unorderedMapZip(a, lhs, rhs, fn)
|
||||||
|
case LexicalKeyOrder:
|
||||||
|
return lexicalKeyOrderedMapZip(a, lhs, rhs, fn)
|
||||||
|
default:
|
||||||
|
panic("Unsupported map order")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func unorderedMapZip(a Allocator, lhs, rhs Map, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
if (lhs == nil || lhs.Empty()) && (rhs == nil || rhs.Empty()) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
if lhs != nil {
|
||||||
|
ok := lhs.IterateUsing(a, func(key string, lhsValue Value) bool {
|
||||||
|
var rhsValue Value
|
||||||
|
if rhs != nil {
|
||||||
|
if item, ok := rhs.GetUsing(a, key); ok {
|
||||||
|
rhsValue = item
|
||||||
|
defer a.Free(rhsValue)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return fn(key, lhsValue, rhsValue)
|
||||||
|
})
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
return rhs.IterateUsing(a, func(key string, rhsValue Value) bool {
|
||||||
|
if lhs == nil || !lhs.Has(key) {
|
||||||
|
return fn(key, nil, rhsValue)
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func lexicalKeyOrderedMapZip(a Allocator, lhs, rhs Map, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
var lhsLength, rhsLength int
|
||||||
|
var orderedLength int // rough estimate of length of union of map keys
|
||||||
|
if lhs != nil {
|
||||||
|
lhsLength = lhs.Length()
|
||||||
|
orderedLength = lhsLength
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
rhsLength = rhs.Length()
|
||||||
|
if rhsLength > orderedLength {
|
||||||
|
orderedLength = rhsLength
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if lhsLength == 0 && rhsLength == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
ordered := make([]string, 0, orderedLength)
|
||||||
|
if lhs != nil {
|
||||||
|
lhs.IterateUsing(a, func(key string, _ Value) bool {
|
||||||
|
ordered = append(ordered, key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
rhs.IterateUsing(a, func(key string, _ Value) bool {
|
||||||
|
if lhs == nil || !lhs.Has(key) {
|
||||||
|
ordered = append(ordered, key)
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
sort.Strings(ordered)
|
||||||
|
for _, key := range ordered {
|
||||||
|
var litem, ritem Value
|
||||||
|
if lhs != nil {
|
||||||
|
litem, _ = lhs.GetUsing(a, key)
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
ritem, _ = rhs.GetUsing(a, key)
|
||||||
|
}
|
||||||
|
ok := fn(key, litem, ritem)
|
||||||
|
if litem != nil {
|
||||||
|
a.Free(litem)
|
||||||
|
}
|
||||||
|
if ritem != nil {
|
||||||
|
a.Free(ritem)
|
||||||
|
}
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapLess compares two maps lexically.
|
||||||
|
func MapLess(lhs, rhs Map) bool {
|
||||||
|
return MapCompare(lhs, rhs) == -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapCompare compares two maps lexically.
|
||||||
|
func MapCompare(lhs, rhs Map) int {
|
||||||
|
return MapCompareUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapCompareUsing uses the provided allocator and compares two maps lexically.
|
||||||
|
func MapCompareUsing(a Allocator, lhs, rhs Map) int {
|
||||||
|
c := 0
|
||||||
|
var llength, rlength int
|
||||||
|
if lhs != nil {
|
||||||
|
llength = lhs.Length()
|
||||||
|
}
|
||||||
|
if rhs != nil {
|
||||||
|
rlength = rhs.Length()
|
||||||
|
}
|
||||||
|
if llength == 0 && rlength == 0 {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
i := 0
|
||||||
|
MapZipUsing(a, lhs, rhs, LexicalKeyOrder, func(key string, lhs, rhs Value) bool {
|
||||||
|
switch {
|
||||||
|
case i == llength:
|
||||||
|
c = -1
|
||||||
|
case i == rlength:
|
||||||
|
c = 1
|
||||||
|
case lhs == nil:
|
||||||
|
c = 1
|
||||||
|
case rhs == nil:
|
||||||
|
c = -1
|
||||||
|
default:
|
||||||
|
c = CompareUsing(a, lhs, rhs)
|
||||||
|
}
|
||||||
|
i++
|
||||||
|
return c == 0
|
||||||
|
})
|
||||||
|
return c
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapEquals returns true if lhs == rhs, false otherwise. This function
|
||||||
|
// acts on generic types and should not be used by callers, but can help
|
||||||
|
// implement Map.Equals.
|
||||||
|
// WARN: This is a naive implementation, calling lhs.Equals(rhs) is typically the most efficient.
|
||||||
|
func MapEquals(lhs, rhs Map) bool {
|
||||||
|
return MapEqualsUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MapEqualsUsing uses the provided allocator and returns true if lhs == rhs,
|
||||||
|
// false otherwise. This function acts on generic types and should not be used
|
||||||
|
// by callers, but can help implement Map.Equals.
|
||||||
|
// WARN: This is a naive implementation, calling lhs.EqualsUsing(allocator, rhs) is typically the most efficient.
|
||||||
|
func MapEqualsUsing(a Allocator, lhs, rhs Map) bool {
|
||||||
|
if lhs == nil && rhs == nil {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if lhs == nil || rhs == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.Length() != rhs.Length() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return MapZipUsing(a, lhs, rhs, Unordered, func(key string, lhs, rhs Value) bool {
|
||||||
|
if lhs == nil || rhs == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return EqualsUsing(a, lhs, rhs)
|
||||||
|
})
|
||||||
|
}
|
209
vendor/sigs.k8s.io/structured-merge-diff/v3/value/mapreflect.go
generated
vendored
Normal file
209
vendor/sigs.k8s.io/structured-merge-diff/v3/value/mapreflect.go
generated
vendored
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
type mapReflect struct {
|
||||||
|
valueReflect
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Length() int {
|
||||||
|
val := r.Value
|
||||||
|
return val.Len()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Empty() bool {
|
||||||
|
val := r.Value
|
||||||
|
return val.Len() == 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Get(key string) (Value, bool) {
|
||||||
|
return r.GetUsing(HeapAllocator, key)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) GetUsing(a Allocator, key string) (Value, bool) {
|
||||||
|
k, v, ok := r.get(key)
|
||||||
|
if !ok {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return a.allocValueReflect().mustReuse(v, nil, &r.Value, &k), true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) get(k string) (key, value reflect.Value, ok bool) {
|
||||||
|
mapKey := r.toMapKey(k)
|
||||||
|
val := r.Value.MapIndex(mapKey)
|
||||||
|
return mapKey, val, val.IsValid() && val != reflect.Value{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Has(key string) bool {
|
||||||
|
var val reflect.Value
|
||||||
|
val = r.Value.MapIndex(r.toMapKey(key))
|
||||||
|
if !val.IsValid() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return val != reflect.Value{}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Set(key string, val Value) {
|
||||||
|
r.Value.SetMapIndex(r.toMapKey(key), reflect.ValueOf(val.Unstructured()))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Delete(key string) {
|
||||||
|
val := r.Value
|
||||||
|
val.SetMapIndex(r.toMapKey(key), reflect.Value{})
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Do we need to support types that implement json.Marshaler and are used as string keys?
|
||||||
|
func (r mapReflect) toMapKey(key string) reflect.Value {
|
||||||
|
val := r.Value
|
||||||
|
return reflect.ValueOf(key).Convert(val.Type().Key())
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Iterate(fn func(string, Value) bool) bool {
|
||||||
|
return r.IterateUsing(HeapAllocator, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) IterateUsing(a Allocator, fn func(string, Value) bool) bool {
|
||||||
|
if r.Value.Len() == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
v := a.allocValueReflect()
|
||||||
|
defer a.Free(v)
|
||||||
|
return eachMapEntry(r.Value, func(e *TypeReflectCacheEntry, key reflect.Value, value reflect.Value) bool {
|
||||||
|
return fn(key.String(), v.mustReuse(value, e, &r.Value, &key))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func eachMapEntry(val reflect.Value, fn func(*TypeReflectCacheEntry, reflect.Value, reflect.Value) bool) bool {
|
||||||
|
iter := val.MapRange()
|
||||||
|
entry := TypeReflectEntryOf(val.Type().Elem())
|
||||||
|
for iter.Next() {
|
||||||
|
next := iter.Value()
|
||||||
|
if !next.IsValid() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if !fn(entry, iter.Key(), next) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Unstructured() interface{} {
|
||||||
|
result := make(map[string]interface{}, r.Length())
|
||||||
|
r.Iterate(func(s string, value Value) bool {
|
||||||
|
result[s] = value.Unstructured()
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Equals(m Map) bool {
|
||||||
|
return r.EqualsUsing(HeapAllocator, m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) EqualsUsing(a Allocator, m Map) bool {
|
||||||
|
lhsLength := r.Length()
|
||||||
|
rhsLength := m.Length()
|
||||||
|
if lhsLength != rhsLength {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhsLength == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
vr := a.allocValueReflect()
|
||||||
|
defer a.Free(vr)
|
||||||
|
entry := TypeReflectEntryOf(r.Value.Type().Elem())
|
||||||
|
return m.Iterate(func(key string, value Value) bool {
|
||||||
|
_, lhsVal, ok := r.get(key)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return Equals(vr.mustReuse(lhsVal, entry, nil, nil), value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) Zip(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return r.ZipUsing(HeapAllocator, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r mapReflect) ZipUsing(a Allocator, other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
if otherMapReflect, ok := other.(*mapReflect); ok && order == Unordered {
|
||||||
|
return r.unorderedReflectZip(a, otherMapReflect, fn)
|
||||||
|
}
|
||||||
|
return defaultMapZip(a, &r, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
// unorderedReflectZip provides an optimized unordered zip for mapReflect types.
|
||||||
|
func (r mapReflect) unorderedReflectZip(a Allocator, other *mapReflect, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
if r.Empty() && (other == nil || other.Empty()) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
lhs := r.Value
|
||||||
|
lhsEntry := TypeReflectEntryOf(lhs.Type().Elem())
|
||||||
|
|
||||||
|
// map lookup via reflection is expensive enough that it is better to keep track of visited keys
|
||||||
|
visited := map[string]struct{}{}
|
||||||
|
|
||||||
|
vlhs, vrhs := a.allocValueReflect(), a.allocValueReflect()
|
||||||
|
defer a.Free(vlhs)
|
||||||
|
defer a.Free(vrhs)
|
||||||
|
|
||||||
|
if other != nil {
|
||||||
|
rhs := other.Value
|
||||||
|
rhsEntry := TypeReflectEntryOf(rhs.Type().Elem())
|
||||||
|
iter := rhs.MapRange()
|
||||||
|
|
||||||
|
for iter.Next() {
|
||||||
|
key := iter.Key()
|
||||||
|
keyString := key.String()
|
||||||
|
next := iter.Value()
|
||||||
|
if !next.IsValid() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
rhsVal := vrhs.mustReuse(next, rhsEntry, &rhs, &key)
|
||||||
|
visited[keyString] = struct{}{}
|
||||||
|
var lhsVal Value
|
||||||
|
if _, v, ok := r.get(keyString); ok {
|
||||||
|
lhsVal = vlhs.mustReuse(v, lhsEntry, &lhs, &key)
|
||||||
|
}
|
||||||
|
if !fn(keyString, lhsVal, rhsVal) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
iter := lhs.MapRange()
|
||||||
|
for iter.Next() {
|
||||||
|
key := iter.Key()
|
||||||
|
if _, ok := visited[key.String()]; ok {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
next := iter.Value()
|
||||||
|
if !next.IsValid() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if !fn(key.String(), vlhs.mustReuse(next, lhsEntry, &lhs, &key), nil) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
190
vendor/sigs.k8s.io/structured-merge-diff/v3/value/mapunstructured.go
generated
vendored
Normal file
190
vendor/sigs.k8s.io/structured-merge-diff/v3/value/mapunstructured.go
generated
vendored
Normal file
@ -0,0 +1,190 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
type mapUnstructuredInterface map[interface{}]interface{}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Set(key string, val Value) {
|
||||||
|
m[key] = val.Unstructured()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Get(key string) (Value, bool) {
|
||||||
|
return m.GetUsing(HeapAllocator, key)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) GetUsing(a Allocator, key string) (Value, bool) {
|
||||||
|
if v, ok := m[key]; !ok {
|
||||||
|
return nil, false
|
||||||
|
} else {
|
||||||
|
return a.allocValueUnstructured().reuse(v), true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Has(key string) bool {
|
||||||
|
_, ok := m[key]
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Delete(key string) {
|
||||||
|
delete(m, key)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Iterate(fn func(key string, value Value) bool) bool {
|
||||||
|
return m.IterateUsing(HeapAllocator, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) IterateUsing(a Allocator, fn func(key string, value Value) bool) bool {
|
||||||
|
if len(m) == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
vv := a.allocValueUnstructured()
|
||||||
|
defer a.Free(vv)
|
||||||
|
for k, v := range m {
|
||||||
|
if ks, ok := k.(string); !ok {
|
||||||
|
continue
|
||||||
|
} else {
|
||||||
|
if !fn(ks, vv.reuse(v)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Length() int {
|
||||||
|
return len(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Empty() bool {
|
||||||
|
return len(m) == 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Equals(other Map) bool {
|
||||||
|
return m.EqualsUsing(HeapAllocator, other)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) EqualsUsing(a Allocator, other Map) bool {
|
||||||
|
lhsLength := m.Length()
|
||||||
|
rhsLength := other.Length()
|
||||||
|
if lhsLength != rhsLength {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhsLength == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
vv := a.allocValueUnstructured()
|
||||||
|
defer a.Free(vv)
|
||||||
|
return other.Iterate(func(key string, value Value) bool {
|
||||||
|
lhsVal, ok := m[key]
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return Equals(vv.reuse(lhsVal), value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) Zip(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return m.ZipUsing(HeapAllocator, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredInterface) ZipUsing(a Allocator, other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return defaultMapZip(a, m, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
type mapUnstructuredString map[string]interface{}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Set(key string, val Value) {
|
||||||
|
m[key] = val.Unstructured()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Get(key string) (Value, bool) {
|
||||||
|
return m.GetUsing(HeapAllocator, key)
|
||||||
|
}
|
||||||
|
func (m mapUnstructuredString) GetUsing(a Allocator, key string) (Value, bool) {
|
||||||
|
if v, ok := m[key]; !ok {
|
||||||
|
return nil, false
|
||||||
|
} else {
|
||||||
|
return a.allocValueUnstructured().reuse(v), true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Has(key string) bool {
|
||||||
|
_, ok := m[key]
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Delete(key string) {
|
||||||
|
delete(m, key)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Iterate(fn func(key string, value Value) bool) bool {
|
||||||
|
return m.IterateUsing(HeapAllocator, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) IterateUsing(a Allocator, fn func(key string, value Value) bool) bool {
|
||||||
|
if len(m) == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
vv := a.allocValueUnstructured()
|
||||||
|
defer a.Free(vv)
|
||||||
|
for k, v := range m {
|
||||||
|
if !fn(k, vv.reuse(v)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Length() int {
|
||||||
|
return len(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Equals(other Map) bool {
|
||||||
|
return m.EqualsUsing(HeapAllocator, other)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) EqualsUsing(a Allocator, other Map) bool {
|
||||||
|
lhsLength := m.Length()
|
||||||
|
rhsLength := other.Length()
|
||||||
|
if lhsLength != rhsLength {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhsLength == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
vv := a.allocValueUnstructured()
|
||||||
|
defer a.Free(vv)
|
||||||
|
return other.Iterate(func(key string, value Value) bool {
|
||||||
|
lhsVal, ok := m[key]
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return Equals(vv.reuse(lhsVal), value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Zip(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return m.ZipUsing(HeapAllocator, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) ZipUsing(a Allocator, other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return defaultMapZip(a, m, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m mapUnstructuredString) Empty() bool {
|
||||||
|
return len(m) == 0
|
||||||
|
}
|
463
vendor/sigs.k8s.io/structured-merge-diff/v3/value/reflectcache.go
generated
vendored
Normal file
463
vendor/sigs.k8s.io/structured-merge-diff/v3/value/reflectcache.go
generated
vendored
Normal file
@ -0,0 +1,463 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2020 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
"reflect"
|
||||||
|
"sort"
|
||||||
|
"sync"
|
||||||
|
"sync/atomic"
|
||||||
|
)
|
||||||
|
|
||||||
|
// UnstructuredConverter defines how a type can be converted directly to unstructured.
|
||||||
|
// Types that implement json.Marshaler may also optionally implement this interface to provide a more
|
||||||
|
// direct and more efficient conversion. All types that choose to implement this interface must still
|
||||||
|
// implement this same conversion via json.Marshaler.
|
||||||
|
type UnstructuredConverter interface {
|
||||||
|
json.Marshaler // require that json.Marshaler is implemented
|
||||||
|
|
||||||
|
// ToUnstructured returns the unstructured representation.
|
||||||
|
ToUnstructured() interface{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TypeReflectCacheEntry keeps data gathered using reflection about how a type is converted to/from unstructured.
|
||||||
|
type TypeReflectCacheEntry struct {
|
||||||
|
isJsonMarshaler bool
|
||||||
|
ptrIsJsonMarshaler bool
|
||||||
|
isJsonUnmarshaler bool
|
||||||
|
ptrIsJsonUnmarshaler bool
|
||||||
|
isStringConvertable bool
|
||||||
|
ptrIsStringConvertable bool
|
||||||
|
|
||||||
|
structFields map[string]*FieldCacheEntry
|
||||||
|
orderedStructFields []*FieldCacheEntry
|
||||||
|
}
|
||||||
|
|
||||||
|
// FieldCacheEntry keeps data gathered using reflection about how the field of a struct is converted to/from
|
||||||
|
// unstructured.
|
||||||
|
type FieldCacheEntry struct {
|
||||||
|
// JsonName returns the name of the field according to the json tags on the struct field.
|
||||||
|
JsonName string
|
||||||
|
// isOmitEmpty is true if the field has the json 'omitempty' tag.
|
||||||
|
isOmitEmpty bool
|
||||||
|
// fieldPath is a list of field indices (see FieldByIndex) to lookup the value of
|
||||||
|
// a field in a reflect.Value struct. The field indices in the list form a path used
|
||||||
|
// to traverse through intermediary 'inline' fields.
|
||||||
|
fieldPath [][]int
|
||||||
|
|
||||||
|
fieldType reflect.Type
|
||||||
|
TypeEntry *TypeReflectCacheEntry
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *FieldCacheEntry) CanOmit(fieldVal reflect.Value) bool {
|
||||||
|
return f.isOmitEmpty && (safeIsNil(fieldVal) || isZero(fieldVal))
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetUsing returns the field identified by this FieldCacheEntry from the provided struct.
|
||||||
|
func (f *FieldCacheEntry) GetFrom(structVal reflect.Value) reflect.Value {
|
||||||
|
// field might be nested within 'inline' structs
|
||||||
|
for _, elem := range f.fieldPath {
|
||||||
|
structVal = structVal.FieldByIndex(elem)
|
||||||
|
}
|
||||||
|
return structVal
|
||||||
|
}
|
||||||
|
|
||||||
|
var marshalerType = reflect.TypeOf(new(json.Marshaler)).Elem()
|
||||||
|
var unmarshalerType = reflect.TypeOf(new(json.Unmarshaler)).Elem()
|
||||||
|
var unstructuredConvertableType = reflect.TypeOf(new(UnstructuredConverter)).Elem()
|
||||||
|
var defaultReflectCache = newReflectCache()
|
||||||
|
|
||||||
|
// TypeReflectEntryOf returns the TypeReflectCacheEntry of the provided reflect.Type.
|
||||||
|
func TypeReflectEntryOf(t reflect.Type) *TypeReflectCacheEntry {
|
||||||
|
cm := defaultReflectCache.get()
|
||||||
|
if record, ok := cm[t]; ok {
|
||||||
|
return record
|
||||||
|
}
|
||||||
|
updates := reflectCacheMap{}
|
||||||
|
result := typeReflectEntryOf(cm, t, updates)
|
||||||
|
if len(updates) > 0 {
|
||||||
|
defaultReflectCache.update(updates)
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
// TypeReflectEntryOf returns all updates needed to add provided reflect.Type, and the types its fields transitively
|
||||||
|
// depend on, to the cache.
|
||||||
|
func typeReflectEntryOf(cm reflectCacheMap, t reflect.Type, updates reflectCacheMap) *TypeReflectCacheEntry {
|
||||||
|
if record, ok := cm[t]; ok {
|
||||||
|
return record
|
||||||
|
}
|
||||||
|
if record, ok := updates[t]; ok {
|
||||||
|
return record
|
||||||
|
}
|
||||||
|
typeEntry := &TypeReflectCacheEntry{
|
||||||
|
isJsonMarshaler: t.Implements(marshalerType),
|
||||||
|
ptrIsJsonMarshaler: reflect.PtrTo(t).Implements(marshalerType),
|
||||||
|
isJsonUnmarshaler: reflect.PtrTo(t).Implements(unmarshalerType),
|
||||||
|
isStringConvertable: t.Implements(unstructuredConvertableType),
|
||||||
|
ptrIsStringConvertable: reflect.PtrTo(t).Implements(unstructuredConvertableType),
|
||||||
|
}
|
||||||
|
if t.Kind() == reflect.Struct {
|
||||||
|
fieldEntries := map[string]*FieldCacheEntry{}
|
||||||
|
buildStructCacheEntry(t, fieldEntries, nil)
|
||||||
|
typeEntry.structFields = fieldEntries
|
||||||
|
sortedByJsonName := make([]*FieldCacheEntry, len(fieldEntries))
|
||||||
|
i := 0
|
||||||
|
for _, entry := range fieldEntries {
|
||||||
|
sortedByJsonName[i] = entry
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
sort.Slice(sortedByJsonName, func(i, j int) bool {
|
||||||
|
return sortedByJsonName[i].JsonName < sortedByJsonName[j].JsonName
|
||||||
|
})
|
||||||
|
typeEntry.orderedStructFields = sortedByJsonName
|
||||||
|
}
|
||||||
|
|
||||||
|
// cyclic type references are allowed, so we must add the typeEntry to the updates map before resolving
|
||||||
|
// the field.typeEntry references, or creating them if they are not already in the cache
|
||||||
|
updates[t] = typeEntry
|
||||||
|
|
||||||
|
for _, field := range typeEntry.structFields {
|
||||||
|
if field.TypeEntry == nil {
|
||||||
|
field.TypeEntry = typeReflectEntryOf(cm, field.fieldType, updates)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return typeEntry
|
||||||
|
}
|
||||||
|
|
||||||
|
func buildStructCacheEntry(t reflect.Type, infos map[string]*FieldCacheEntry, fieldPath [][]int) {
|
||||||
|
for i := 0; i < t.NumField(); i++ {
|
||||||
|
field := t.Field(i)
|
||||||
|
jsonName, omit, isInline, isOmitempty := lookupJsonTags(field)
|
||||||
|
if omit {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if isInline {
|
||||||
|
buildStructCacheEntry(field.Type, infos, append(fieldPath, field.Index))
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
info := &FieldCacheEntry{JsonName: jsonName, isOmitEmpty: isOmitempty, fieldPath: append(fieldPath, field.Index), fieldType: field.Type}
|
||||||
|
infos[jsonName] = info
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fields returns a map of JSON field name to FieldCacheEntry for structs, or nil for non-structs.
|
||||||
|
func (e TypeReflectCacheEntry) Fields() map[string]*FieldCacheEntry {
|
||||||
|
return e.structFields
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fields returns a map of JSON field name to FieldCacheEntry for structs, or nil for non-structs.
|
||||||
|
func (e TypeReflectCacheEntry) OrderedFields() []*FieldCacheEntry {
|
||||||
|
return e.orderedStructFields
|
||||||
|
}
|
||||||
|
|
||||||
|
// CanConvertToUnstructured returns true if this TypeReflectCacheEntry can convert values of its type to unstructured.
|
||||||
|
func (e TypeReflectCacheEntry) CanConvertToUnstructured() bool {
|
||||||
|
return e.isJsonMarshaler || e.ptrIsJsonMarshaler || e.isStringConvertable || e.ptrIsStringConvertable
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToUnstructured converts the provided value to unstructured and returns it.
|
||||||
|
func (e TypeReflectCacheEntry) ToUnstructured(sv reflect.Value) (interface{}, error) {
|
||||||
|
// This is based on https://github.com/kubernetes/kubernetes/blob/82c9e5c814eb7acc6cc0a090c057294d0667ad66/staging/src/k8s.io/apimachinery/pkg/runtime/converter.go#L505
|
||||||
|
// and is intended to replace it.
|
||||||
|
|
||||||
|
// Check if the object has a custom string converter and use it if available, since it is much more efficient
|
||||||
|
// than round tripping through json.
|
||||||
|
if converter, ok := e.getUnstructuredConverter(sv); ok {
|
||||||
|
return converter.ToUnstructured(), nil
|
||||||
|
}
|
||||||
|
// Check if the object has a custom JSON marshaller/unmarshaller.
|
||||||
|
if marshaler, ok := e.getJsonMarshaler(sv); ok {
|
||||||
|
if sv.Kind() == reflect.Ptr && sv.IsNil() {
|
||||||
|
// We're done - we don't need to store anything.
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
data, err := marshaler.MarshalJSON()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case len(data) == 0:
|
||||||
|
return nil, fmt.Errorf("error decoding from json: empty value")
|
||||||
|
|
||||||
|
case bytes.Equal(data, nullBytes):
|
||||||
|
// We're done - we don't need to store anything.
|
||||||
|
return nil, nil
|
||||||
|
|
||||||
|
case bytes.Equal(data, trueBytes):
|
||||||
|
return true, nil
|
||||||
|
|
||||||
|
case bytes.Equal(data, falseBytes):
|
||||||
|
return false, nil
|
||||||
|
|
||||||
|
case data[0] == '"':
|
||||||
|
var result string
|
||||||
|
err := unmarshal(data, &result)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("error decoding string from json: %v", err)
|
||||||
|
}
|
||||||
|
return result, nil
|
||||||
|
|
||||||
|
case data[0] == '{':
|
||||||
|
result := make(map[string]interface{})
|
||||||
|
err := unmarshal(data, &result)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("error decoding object from json: %v", err)
|
||||||
|
}
|
||||||
|
return result, nil
|
||||||
|
|
||||||
|
case data[0] == '[':
|
||||||
|
result := make([]interface{}, 0)
|
||||||
|
err := unmarshal(data, &result)
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("error decoding array from json: %v", err)
|
||||||
|
}
|
||||||
|
return result, nil
|
||||||
|
|
||||||
|
default:
|
||||||
|
var (
|
||||||
|
resultInt int64
|
||||||
|
resultFloat float64
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if err = unmarshal(data, &resultInt); err == nil {
|
||||||
|
return resultInt, nil
|
||||||
|
} else if err = unmarshal(data, &resultFloat); err == nil {
|
||||||
|
return resultFloat, nil
|
||||||
|
} else {
|
||||||
|
return nil, fmt.Errorf("error decoding number from json: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil, fmt.Errorf("provided type cannot be converted: %v", sv.Type())
|
||||||
|
}
|
||||||
|
|
||||||
|
// CanConvertFromUnstructured returns true if this TypeReflectCacheEntry can convert objects of the type from unstructured.
|
||||||
|
func (e TypeReflectCacheEntry) CanConvertFromUnstructured() bool {
|
||||||
|
return e.isJsonUnmarshaler
|
||||||
|
}
|
||||||
|
|
||||||
|
// FromUnstructured converts the provided source value from unstructured into the provided destination value.
|
||||||
|
func (e TypeReflectCacheEntry) FromUnstructured(sv, dv reflect.Value) error {
|
||||||
|
// TODO: this could be made much more efficient using direct conversions like
|
||||||
|
// UnstructuredConverter.ToUnstructured provides.
|
||||||
|
st := dv.Type()
|
||||||
|
data, err := json.Marshal(sv.Interface())
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("error encoding %s to json: %v", st.String(), err)
|
||||||
|
}
|
||||||
|
if unmarshaler, ok := e.getJsonUnmarshaler(dv); ok {
|
||||||
|
return unmarshaler.UnmarshalJSON(data)
|
||||||
|
}
|
||||||
|
return fmt.Errorf("unable to unmarshal %v into %v", sv.Type(), dv.Type())
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
nullBytes = []byte("null")
|
||||||
|
trueBytes = []byte("true")
|
||||||
|
falseBytes = []byte("false")
|
||||||
|
)
|
||||||
|
|
||||||
|
func (e TypeReflectCacheEntry) getJsonMarshaler(v reflect.Value) (json.Marshaler, bool) {
|
||||||
|
if e.isJsonMarshaler {
|
||||||
|
return v.Interface().(json.Marshaler), true
|
||||||
|
}
|
||||||
|
if e.ptrIsJsonMarshaler {
|
||||||
|
// Check pointer receivers if v is not a pointer
|
||||||
|
if v.Kind() != reflect.Ptr && v.CanAddr() {
|
||||||
|
v = v.Addr()
|
||||||
|
return v.Interface().(json.Marshaler), true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e TypeReflectCacheEntry) getJsonUnmarshaler(v reflect.Value) (json.Unmarshaler, bool) {
|
||||||
|
if !e.isJsonUnmarshaler {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
return v.Addr().Interface().(json.Unmarshaler), true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e TypeReflectCacheEntry) getUnstructuredConverter(v reflect.Value) (UnstructuredConverter, bool) {
|
||||||
|
if e.isStringConvertable {
|
||||||
|
return v.Interface().(UnstructuredConverter), true
|
||||||
|
}
|
||||||
|
if e.ptrIsStringConvertable {
|
||||||
|
// Check pointer receivers if v is not a pointer
|
||||||
|
if v.CanAddr() {
|
||||||
|
v = v.Addr()
|
||||||
|
return v.Interface().(UnstructuredConverter), true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
|
||||||
|
type typeReflectCache struct {
|
||||||
|
// use an atomic and copy-on-write since there are a fixed (typically very small) number of structs compiled into any
|
||||||
|
// go program using this cache
|
||||||
|
value atomic.Value
|
||||||
|
// mu is held by writers when performing load/modify/store operations on the cache, readers do not need to hold a
|
||||||
|
// read-lock since the atomic value is always read-only
|
||||||
|
mu sync.Mutex
|
||||||
|
}
|
||||||
|
|
||||||
|
func newReflectCache() *typeReflectCache {
|
||||||
|
cache := &typeReflectCache{}
|
||||||
|
cache.value.Store(make(reflectCacheMap))
|
||||||
|
return cache
|
||||||
|
}
|
||||||
|
|
||||||
|
type reflectCacheMap map[reflect.Type]*TypeReflectCacheEntry
|
||||||
|
|
||||||
|
// get returns the reflectCacheMap.
|
||||||
|
func (c *typeReflectCache) get() reflectCacheMap {
|
||||||
|
return c.value.Load().(reflectCacheMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
// update merges the provided updates into the cache.
|
||||||
|
func (c *typeReflectCache) update(updates reflectCacheMap) {
|
||||||
|
c.mu.Lock()
|
||||||
|
defer c.mu.Unlock()
|
||||||
|
|
||||||
|
currentCacheMap := c.value.Load().(reflectCacheMap)
|
||||||
|
|
||||||
|
hasNewEntries := false
|
||||||
|
for t := range updates {
|
||||||
|
if _, ok := currentCacheMap[t]; !ok {
|
||||||
|
hasNewEntries = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !hasNewEntries {
|
||||||
|
// Bail if the updates have been set while waiting for lock acquisition.
|
||||||
|
// This is safe since setting entries is idempotent.
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
newCacheMap := make(reflectCacheMap, len(currentCacheMap)+len(updates))
|
||||||
|
for k, v := range currentCacheMap {
|
||||||
|
newCacheMap[k] = v
|
||||||
|
}
|
||||||
|
for t, update := range updates {
|
||||||
|
newCacheMap[t] = update
|
||||||
|
}
|
||||||
|
c.value.Store(newCacheMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Below json Unmarshal is fromk8s.io/apimachinery/pkg/util/json
|
||||||
|
// to handle number conversions as expected by Kubernetes
|
||||||
|
|
||||||
|
// limit recursive depth to prevent stack overflow errors
|
||||||
|
const maxDepth = 10000
|
||||||
|
|
||||||
|
// unmarshal unmarshals the given data
|
||||||
|
// If v is a *map[string]interface{}, numbers are converted to int64 or float64
|
||||||
|
func unmarshal(data []byte, v interface{}) error {
|
||||||
|
switch v := v.(type) {
|
||||||
|
case *map[string]interface{}:
|
||||||
|
// Build a decoder from the given data
|
||||||
|
decoder := json.NewDecoder(bytes.NewBuffer(data))
|
||||||
|
// Preserve numbers, rather than casting to float64 automatically
|
||||||
|
decoder.UseNumber()
|
||||||
|
// Run the decode
|
||||||
|
if err := decoder.Decode(v); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// If the decode succeeds, post-process the map to convert json.Number objects to int64 or float64
|
||||||
|
return convertMapNumbers(*v, 0)
|
||||||
|
|
||||||
|
case *[]interface{}:
|
||||||
|
// Build a decoder from the given data
|
||||||
|
decoder := json.NewDecoder(bytes.NewBuffer(data))
|
||||||
|
// Preserve numbers, rather than casting to float64 automatically
|
||||||
|
decoder.UseNumber()
|
||||||
|
// Run the decode
|
||||||
|
if err := decoder.Decode(v); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
// If the decode succeeds, post-process the map to convert json.Number objects to int64 or float64
|
||||||
|
return convertSliceNumbers(*v, 0)
|
||||||
|
|
||||||
|
default:
|
||||||
|
return json.Unmarshal(data, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// convertMapNumbers traverses the map, converting any json.Number values to int64 or float64.
|
||||||
|
// values which are map[string]interface{} or []interface{} are recursively visited
|
||||||
|
func convertMapNumbers(m map[string]interface{}, depth int) error {
|
||||||
|
if depth > maxDepth {
|
||||||
|
return fmt.Errorf("exceeded max depth of %d", maxDepth)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
for k, v := range m {
|
||||||
|
switch v := v.(type) {
|
||||||
|
case json.Number:
|
||||||
|
m[k], err = convertNumber(v)
|
||||||
|
case map[string]interface{}:
|
||||||
|
err = convertMapNumbers(v, depth+1)
|
||||||
|
case []interface{}:
|
||||||
|
err = convertSliceNumbers(v, depth+1)
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// convertSliceNumbers traverses the slice, converting any json.Number values to int64 or float64.
|
||||||
|
// values which are map[string]interface{} or []interface{} are recursively visited
|
||||||
|
func convertSliceNumbers(s []interface{}, depth int) error {
|
||||||
|
if depth > maxDepth {
|
||||||
|
return fmt.Errorf("exceeded max depth of %d", maxDepth)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
for i, v := range s {
|
||||||
|
switch v := v.(type) {
|
||||||
|
case json.Number:
|
||||||
|
s[i], err = convertNumber(v)
|
||||||
|
case map[string]interface{}:
|
||||||
|
err = convertMapNumbers(v, depth+1)
|
||||||
|
case []interface{}:
|
||||||
|
err = convertSliceNumbers(v, depth+1)
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// convertNumber converts a json.Number to an int64 or float64, or returns an error
|
||||||
|
func convertNumber(n json.Number) (interface{}, error) {
|
||||||
|
// Attempt to convert to an int64 first
|
||||||
|
if i, err := n.Int64(); err == nil {
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
// Return a float64 (default json.Decode() behavior)
|
||||||
|
// An overflow will return an error
|
||||||
|
return n.Float64()
|
||||||
|
}
|
50
vendor/sigs.k8s.io/structured-merge-diff/v3/value/scalar.go
generated
vendored
Normal file
50
vendor/sigs.k8s.io/structured-merge-diff/v3/value/scalar.go
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
// Compare compares floats. The result will be 0 if lhs==rhs, -1 if f <
|
||||||
|
// rhs, and +1 if f > rhs.
|
||||||
|
func FloatCompare(lhs, rhs float64) int {
|
||||||
|
if lhs > rhs {
|
||||||
|
return 1
|
||||||
|
} else if lhs < rhs {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// IntCompare compares integers. The result will be 0 if i==rhs, -1 if i <
|
||||||
|
// rhs, and +1 if i > rhs.
|
||||||
|
func IntCompare(lhs, rhs int64) int {
|
||||||
|
if lhs > rhs {
|
||||||
|
return 1
|
||||||
|
} else if lhs < rhs {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compare compares booleans. The result will be 0 if b==rhs, -1 if b <
|
||||||
|
// rhs, and +1 if b > rhs.
|
||||||
|
func BoolCompare(lhs, rhs bool) int {
|
||||||
|
if lhs == rhs {
|
||||||
|
return 0
|
||||||
|
} else if lhs == false {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return 1
|
||||||
|
}
|
208
vendor/sigs.k8s.io/structured-merge-diff/v3/value/structreflect.go
generated
vendored
Normal file
208
vendor/sigs.k8s.io/structured-merge-diff/v3/value/structreflect.go
generated
vendored
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
type structReflect struct {
|
||||||
|
valueReflect
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Length() int {
|
||||||
|
i := 0
|
||||||
|
eachStructField(r.Value, func(_ *TypeReflectCacheEntry, s string, value reflect.Value) bool {
|
||||||
|
i++
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
return i
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Empty() bool {
|
||||||
|
return eachStructField(r.Value, func(_ *TypeReflectCacheEntry, s string, value reflect.Value) bool {
|
||||||
|
return false // exit early if the struct is non-empty
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Get(key string) (Value, bool) {
|
||||||
|
return r.GetUsing(HeapAllocator, key)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) GetUsing(a Allocator, key string) (Value, bool) {
|
||||||
|
if val, ok := r.findJsonNameField(key); ok {
|
||||||
|
return a.allocValueReflect().mustReuse(val, nil, nil, nil), true
|
||||||
|
}
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Has(key string) bool {
|
||||||
|
_, ok := r.findJsonNameField(key)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Set(key string, val Value) {
|
||||||
|
fieldEntry, ok := TypeReflectEntryOf(r.Value.Type()).Fields()[key]
|
||||||
|
if !ok {
|
||||||
|
panic(fmt.Sprintf("key %s may not be set on struct %T: field does not exist", key, r.Value.Interface()))
|
||||||
|
}
|
||||||
|
oldVal := fieldEntry.GetFrom(r.Value)
|
||||||
|
newVal := reflect.ValueOf(val.Unstructured())
|
||||||
|
r.update(fieldEntry, key, oldVal, newVal)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Delete(key string) {
|
||||||
|
fieldEntry, ok := TypeReflectEntryOf(r.Value.Type()).Fields()[key]
|
||||||
|
if !ok {
|
||||||
|
panic(fmt.Sprintf("key %s may not be deleted on struct %T: field does not exist", key, r.Value.Interface()))
|
||||||
|
}
|
||||||
|
oldVal := fieldEntry.GetFrom(r.Value)
|
||||||
|
if oldVal.Kind() != reflect.Ptr && !fieldEntry.isOmitEmpty {
|
||||||
|
panic(fmt.Sprintf("key %s may not be deleted on struct: %T: value is neither a pointer nor an omitempty field", key, r.Value.Interface()))
|
||||||
|
}
|
||||||
|
r.update(fieldEntry, key, oldVal, reflect.Zero(oldVal.Type()))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) update(fieldEntry *FieldCacheEntry, key string, oldVal, newVal reflect.Value) {
|
||||||
|
if oldVal.CanSet() {
|
||||||
|
oldVal.Set(newVal)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// map items are not addressable, so if a struct is contained in a map, the only way to modify it is
|
||||||
|
// to write a replacement fieldEntry into the map.
|
||||||
|
if r.ParentMap != nil {
|
||||||
|
if r.ParentMapKey == nil {
|
||||||
|
panic("ParentMapKey must not be nil if ParentMap is not nil")
|
||||||
|
}
|
||||||
|
replacement := reflect.New(r.Value.Type()).Elem()
|
||||||
|
fieldEntry.GetFrom(replacement).Set(newVal)
|
||||||
|
r.ParentMap.SetMapIndex(*r.ParentMapKey, replacement)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// This should never happen since NewValueReflect ensures that the root object reflected on is a pointer and map
|
||||||
|
// item replacement is handled above.
|
||||||
|
panic(fmt.Sprintf("key %s may not be modified on struct: %T: struct is not settable", key, r.Value.Interface()))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Iterate(fn func(string, Value) bool) bool {
|
||||||
|
return r.IterateUsing(HeapAllocator, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) IterateUsing(a Allocator, fn func(string, Value) bool) bool {
|
||||||
|
vr := a.allocValueReflect()
|
||||||
|
defer a.Free(vr)
|
||||||
|
return eachStructField(r.Value, func(e *TypeReflectCacheEntry, s string, value reflect.Value) bool {
|
||||||
|
return fn(s, vr.mustReuse(value, e, nil, nil))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func eachStructField(structVal reflect.Value, fn func(*TypeReflectCacheEntry, string, reflect.Value) bool) bool {
|
||||||
|
for _, fieldCacheEntry := range TypeReflectEntryOf(structVal.Type()).OrderedFields() {
|
||||||
|
fieldVal := fieldCacheEntry.GetFrom(structVal)
|
||||||
|
if fieldCacheEntry.CanOmit(fieldVal) {
|
||||||
|
// omit it
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
ok := fn(fieldCacheEntry.TypeEntry, fieldCacheEntry.JsonName, fieldVal)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Unstructured() interface{} {
|
||||||
|
// Use number of struct fields as a cheap way to rough estimate map size
|
||||||
|
result := make(map[string]interface{}, r.Value.NumField())
|
||||||
|
r.Iterate(func(s string, value Value) bool {
|
||||||
|
result[s] = value.Unstructured()
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
return result
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Equals(m Map) bool {
|
||||||
|
return r.EqualsUsing(HeapAllocator, m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) EqualsUsing(a Allocator, m Map) bool {
|
||||||
|
// MapEquals uses zip and is fairly efficient for structReflect
|
||||||
|
return MapEqualsUsing(a, &r, m)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) findJsonNameFieldAndNotEmpty(jsonName string) (reflect.Value, bool) {
|
||||||
|
structCacheEntry, ok := TypeReflectEntryOf(r.Value.Type()).Fields()[jsonName]
|
||||||
|
if !ok {
|
||||||
|
return reflect.Value{}, false
|
||||||
|
}
|
||||||
|
fieldVal := structCacheEntry.GetFrom(r.Value)
|
||||||
|
return fieldVal, !structCacheEntry.CanOmit(fieldVal)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) findJsonNameField(jsonName string) (val reflect.Value, ok bool) {
|
||||||
|
structCacheEntry, ok := TypeReflectEntryOf(r.Value.Type()).Fields()[jsonName]
|
||||||
|
if !ok {
|
||||||
|
return reflect.Value{}, false
|
||||||
|
}
|
||||||
|
fieldVal := structCacheEntry.GetFrom(r.Value)
|
||||||
|
return fieldVal, !structCacheEntry.CanOmit(fieldVal)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) Zip(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
return r.ZipUsing(HeapAllocator, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r structReflect) ZipUsing(a Allocator, other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
if otherStruct, ok := other.(*structReflect); ok && r.Value.Type() == otherStruct.Value.Type() {
|
||||||
|
lhsvr, rhsvr := a.allocValueReflect(), a.allocValueReflect()
|
||||||
|
defer a.Free(lhsvr)
|
||||||
|
defer a.Free(rhsvr)
|
||||||
|
return r.structZip(otherStruct, lhsvr, rhsvr, fn)
|
||||||
|
}
|
||||||
|
return defaultMapZip(a, &r, other, order, fn)
|
||||||
|
}
|
||||||
|
|
||||||
|
// structZip provides an optimized zip for structReflect types. The zip is always lexical key ordered since there is
|
||||||
|
// no additional cost to ordering the zip for structured types.
|
||||||
|
func (r structReflect) structZip(other *structReflect, lhsvr, rhsvr *valueReflect, fn func(key string, lhs, rhs Value) bool) bool {
|
||||||
|
lhsVal := r.Value
|
||||||
|
rhsVal := other.Value
|
||||||
|
|
||||||
|
for _, fieldCacheEntry := range TypeReflectEntryOf(lhsVal.Type()).OrderedFields() {
|
||||||
|
lhsFieldVal := fieldCacheEntry.GetFrom(lhsVal)
|
||||||
|
rhsFieldVal := fieldCacheEntry.GetFrom(rhsVal)
|
||||||
|
lhsOmit := fieldCacheEntry.CanOmit(lhsFieldVal)
|
||||||
|
rhsOmit := fieldCacheEntry.CanOmit(rhsFieldVal)
|
||||||
|
if lhsOmit && rhsOmit {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
var lhsVal, rhsVal Value
|
||||||
|
if !lhsOmit {
|
||||||
|
lhsVal = lhsvr.mustReuse(lhsFieldVal, fieldCacheEntry.TypeEntry, nil, nil)
|
||||||
|
}
|
||||||
|
if !rhsOmit {
|
||||||
|
rhsVal = rhsvr.mustReuse(rhsFieldVal, fieldCacheEntry.TypeEntry, nil, nil)
|
||||||
|
}
|
||||||
|
if !fn(fieldCacheEntry.JsonName, lhsVal, rhsVal) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
347
vendor/sigs.k8s.io/structured-merge-diff/v3/value/value.go
generated
vendored
Normal file
347
vendor/sigs.k8s.io/structured-merge-diff/v3/value/value.go
generated
vendored
Normal file
@ -0,0 +1,347 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
jsoniter "github.com/json-iterator/go"
|
||||||
|
"gopkg.in/yaml.v2"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
readPool = jsoniter.NewIterator(jsoniter.ConfigCompatibleWithStandardLibrary).Pool()
|
||||||
|
writePool = jsoniter.NewStream(jsoniter.ConfigCompatibleWithStandardLibrary, nil, 1024).Pool()
|
||||||
|
)
|
||||||
|
|
||||||
|
// A Value corresponds to an 'atom' in the schema. It should return true
|
||||||
|
// for at least one of the IsXXX methods below, or the value is
|
||||||
|
// considered "invalid"
|
||||||
|
type Value interface {
|
||||||
|
// IsMap returns true if the Value is a Map, false otherwise.
|
||||||
|
IsMap() bool
|
||||||
|
// IsList returns true if the Value is a List, false otherwise.
|
||||||
|
IsList() bool
|
||||||
|
// IsBool returns true if the Value is a bool, false otherwise.
|
||||||
|
IsBool() bool
|
||||||
|
// IsInt returns true if the Value is a int64, false otherwise.
|
||||||
|
IsInt() bool
|
||||||
|
// IsFloat returns true if the Value is a float64, false
|
||||||
|
// otherwise.
|
||||||
|
IsFloat() bool
|
||||||
|
// IsString returns true if the Value is a string, false
|
||||||
|
// otherwise.
|
||||||
|
IsString() bool
|
||||||
|
// IsMap returns true if the Value is null, false otherwise.
|
||||||
|
IsNull() bool
|
||||||
|
|
||||||
|
// AsMap converts the Value into a Map (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsMap() Map
|
||||||
|
// AsMapUsing uses the provided allocator and converts the Value
|
||||||
|
// into a Map (or panic if the type doesn't allow it).
|
||||||
|
AsMapUsing(Allocator) Map
|
||||||
|
// AsList converts the Value into a List (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsList() List
|
||||||
|
// AsListUsing uses the provided allocator and converts the Value
|
||||||
|
// into a List (or panic if the type doesn't allow it).
|
||||||
|
AsListUsing(Allocator) List
|
||||||
|
// AsBool converts the Value into a bool (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsBool() bool
|
||||||
|
// AsInt converts the Value into an int64 (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsInt() int64
|
||||||
|
// AsFloat converts the Value into a float64 (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsFloat() float64
|
||||||
|
// AsString converts the Value into a string (or panic if the type
|
||||||
|
// doesn't allow it).
|
||||||
|
AsString() string
|
||||||
|
|
||||||
|
// Unstructured converts the Value into an Unstructured interface{}.
|
||||||
|
Unstructured() interface{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FromJSON is a helper function for reading a JSON document.
|
||||||
|
func FromJSON(input []byte) (Value, error) {
|
||||||
|
return FromJSONFast(input)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FromJSONFast is a helper function for reading a JSON document.
|
||||||
|
func FromJSONFast(input []byte) (Value, error) {
|
||||||
|
iter := readPool.BorrowIterator(input)
|
||||||
|
defer readPool.ReturnIterator(iter)
|
||||||
|
return ReadJSONIter(iter)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToJSON is a helper function for producing a JSon document.
|
||||||
|
func ToJSON(v Value) ([]byte, error) {
|
||||||
|
buf := bytes.Buffer{}
|
||||||
|
stream := writePool.BorrowStream(&buf)
|
||||||
|
defer writePool.ReturnStream(stream)
|
||||||
|
WriteJSONStream(v, stream)
|
||||||
|
b := stream.Buffer()
|
||||||
|
err := stream.Flush()
|
||||||
|
// Help jsoniter manage its buffers--without this, the next
|
||||||
|
// use of the stream is likely to require an allocation. Look
|
||||||
|
// at the jsoniter stream code to understand why. They were probably
|
||||||
|
// optimizing for folks using the buffer directly.
|
||||||
|
stream.SetBuffer(b[:0])
|
||||||
|
return buf.Bytes(), err
|
||||||
|
}
|
||||||
|
|
||||||
|
// ReadJSONIter reads a Value from a JSON iterator.
|
||||||
|
func ReadJSONIter(iter *jsoniter.Iterator) (Value, error) {
|
||||||
|
v := iter.Read()
|
||||||
|
if iter.Error != nil && iter.Error != io.EOF {
|
||||||
|
return nil, iter.Error
|
||||||
|
}
|
||||||
|
return NewValueInterface(v), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// WriteJSONStream writes a value into a JSON stream.
|
||||||
|
func WriteJSONStream(v Value, stream *jsoniter.Stream) {
|
||||||
|
stream.WriteVal(v.Unstructured())
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToYAML marshals a value as YAML.
|
||||||
|
func ToYAML(v Value) ([]byte, error) {
|
||||||
|
return yaml.Marshal(v.Unstructured())
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equals returns true iff the two values are equal.
|
||||||
|
func Equals(lhs, rhs Value) bool {
|
||||||
|
return EqualsUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EqualsUsing uses the provided allocator and returns true iff the two values are equal.
|
||||||
|
func EqualsUsing(a Allocator, lhs, rhs Value) bool {
|
||||||
|
if lhs.IsFloat() || rhs.IsFloat() {
|
||||||
|
var lf float64
|
||||||
|
if lhs.IsFloat() {
|
||||||
|
lf = lhs.AsFloat()
|
||||||
|
} else if lhs.IsInt() {
|
||||||
|
lf = float64(lhs.AsInt())
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
var rf float64
|
||||||
|
if rhs.IsFloat() {
|
||||||
|
rf = rhs.AsFloat()
|
||||||
|
} else if rhs.IsInt() {
|
||||||
|
rf = float64(rhs.AsInt())
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return lf == rf
|
||||||
|
}
|
||||||
|
if lhs.IsInt() {
|
||||||
|
if rhs.IsInt() {
|
||||||
|
return lhs.AsInt() == rhs.AsInt()
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsInt() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.IsString() {
|
||||||
|
if rhs.IsString() {
|
||||||
|
return lhs.AsString() == rhs.AsString()
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsString() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.IsBool() {
|
||||||
|
if rhs.IsBool() {
|
||||||
|
return lhs.AsBool() == rhs.AsBool()
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsBool() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.IsList() {
|
||||||
|
if rhs.IsList() {
|
||||||
|
lhsList := lhs.AsListUsing(a)
|
||||||
|
defer a.Free(lhsList)
|
||||||
|
rhsList := rhs.AsListUsing(a)
|
||||||
|
defer a.Free(rhsList)
|
||||||
|
return lhsList.EqualsUsing(a, rhsList)
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsList() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.IsMap() {
|
||||||
|
if rhs.IsMap() {
|
||||||
|
lhsList := lhs.AsMapUsing(a)
|
||||||
|
defer a.Free(lhsList)
|
||||||
|
rhsList := rhs.AsMapUsing(a)
|
||||||
|
defer a.Free(rhsList)
|
||||||
|
return lhsList.EqualsUsing(a, rhsList)
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsMap() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if lhs.IsNull() {
|
||||||
|
if rhs.IsNull() {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} else if rhs.IsNull() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// No field is set, on either objects.
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
// ToString returns a human-readable representation of the value.
|
||||||
|
func ToString(v Value) string {
|
||||||
|
if v.IsNull() {
|
||||||
|
return "null"
|
||||||
|
}
|
||||||
|
switch {
|
||||||
|
case v.IsFloat():
|
||||||
|
return fmt.Sprintf("%v", v.AsFloat())
|
||||||
|
case v.IsInt():
|
||||||
|
return fmt.Sprintf("%v", v.AsInt())
|
||||||
|
case v.IsString():
|
||||||
|
return fmt.Sprintf("%q", v.AsString())
|
||||||
|
case v.IsBool():
|
||||||
|
return fmt.Sprintf("%v", v.AsBool())
|
||||||
|
case v.IsList():
|
||||||
|
strs := []string{}
|
||||||
|
list := v.AsList()
|
||||||
|
for i := 0; i < list.Length(); i++ {
|
||||||
|
strs = append(strs, ToString(list.At(i)))
|
||||||
|
}
|
||||||
|
return "[" + strings.Join(strs, ",") + "]"
|
||||||
|
case v.IsMap():
|
||||||
|
strs := []string{}
|
||||||
|
v.AsMap().Iterate(func(k string, v Value) bool {
|
||||||
|
strs = append(strs, fmt.Sprintf("%v=%v", k, ToString(v)))
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
return strings.Join(strs, "")
|
||||||
|
}
|
||||||
|
// No field is set, on either objects.
|
||||||
|
return "{{undefined}}"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less provides a total ordering for Value (so that they can be sorted, even
|
||||||
|
// if they are of different types).
|
||||||
|
func Less(lhs, rhs Value) bool {
|
||||||
|
return Compare(lhs, rhs) == -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Compare provides a total ordering for Value (so that they can be
|
||||||
|
// sorted, even if they are of different types). The result will be 0 if
|
||||||
|
// v==rhs, -1 if v < rhs, and +1 if v > rhs.
|
||||||
|
func Compare(lhs, rhs Value) int {
|
||||||
|
return CompareUsing(HeapAllocator, lhs, rhs)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CompareUsing uses the provided allocator and provides a total
|
||||||
|
// ordering for Value (so that they can be sorted, even if they
|
||||||
|
// are of different types). The result will be 0 if v==rhs, -1
|
||||||
|
// if v < rhs, and +1 if v > rhs.
|
||||||
|
func CompareUsing(a Allocator, lhs, rhs Value) int {
|
||||||
|
if lhs.IsFloat() {
|
||||||
|
if !rhs.IsFloat() {
|
||||||
|
// Extra: compare floats and ints numerically.
|
||||||
|
if rhs.IsInt() {
|
||||||
|
return FloatCompare(lhs.AsFloat(), float64(rhs.AsInt()))
|
||||||
|
}
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return FloatCompare(lhs.AsFloat(), rhs.AsFloat())
|
||||||
|
} else if rhs.IsFloat() {
|
||||||
|
// Extra: compare floats and ints numerically.
|
||||||
|
if lhs.IsInt() {
|
||||||
|
return FloatCompare(float64(lhs.AsInt()), rhs.AsFloat())
|
||||||
|
}
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if lhs.IsInt() {
|
||||||
|
if !rhs.IsInt() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return IntCompare(lhs.AsInt(), rhs.AsInt())
|
||||||
|
} else if rhs.IsInt() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if lhs.IsString() {
|
||||||
|
if !rhs.IsString() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return strings.Compare(lhs.AsString(), rhs.AsString())
|
||||||
|
} else if rhs.IsString() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if lhs.IsBool() {
|
||||||
|
if !rhs.IsBool() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return BoolCompare(lhs.AsBool(), rhs.AsBool())
|
||||||
|
} else if rhs.IsBool() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if lhs.IsList() {
|
||||||
|
if !rhs.IsList() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
lhsList := lhs.AsListUsing(a)
|
||||||
|
defer a.Free(lhsList)
|
||||||
|
rhsList := rhs.AsListUsing(a)
|
||||||
|
defer a.Free(rhsList)
|
||||||
|
return ListCompareUsing(a, lhsList, rhsList)
|
||||||
|
} else if rhs.IsList() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
if lhs.IsMap() {
|
||||||
|
if !rhs.IsMap() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
lhsMap := lhs.AsMapUsing(a)
|
||||||
|
defer a.Free(lhsMap)
|
||||||
|
rhsMap := rhs.AsMapUsing(a)
|
||||||
|
defer a.Free(rhsMap)
|
||||||
|
return MapCompareUsing(a, lhsMap, rhsMap)
|
||||||
|
} else if rhs.IsMap() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
if lhs.IsNull() {
|
||||||
|
if !rhs.IsNull() {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
} else if rhs.IsNull() {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Invalid Value-- nothing is set.
|
||||||
|
return 0
|
||||||
|
}
|
294
vendor/sigs.k8s.io/structured-merge-diff/v3/value/valuereflect.go
generated
vendored
Normal file
294
vendor/sigs.k8s.io/structured-merge-diff/v3/value/valuereflect.go
generated
vendored
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/base64"
|
||||||
|
"fmt"
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
// NewValueReflect creates a Value backed by an "interface{}" type,
|
||||||
|
// typically an structured object in Kubernetes world that is uses reflection to expose.
|
||||||
|
// The provided "interface{}" value must be a pointer so that the value can be modified via reflection.
|
||||||
|
// The provided "interface{}" may contain structs and types that are converted to Values
|
||||||
|
// by the jsonMarshaler interface.
|
||||||
|
func NewValueReflect(value interface{}) (Value, error) {
|
||||||
|
if value == nil {
|
||||||
|
return NewValueInterface(nil), nil
|
||||||
|
}
|
||||||
|
v := reflect.ValueOf(value)
|
||||||
|
if v.Kind() != reflect.Ptr {
|
||||||
|
// The root value to reflect on must be a pointer so that map.Set() and map.Delete() operations are possible.
|
||||||
|
return nil, fmt.Errorf("value provided to NewValueReflect must be a pointer")
|
||||||
|
}
|
||||||
|
return wrapValueReflect(v, nil, nil)
|
||||||
|
}
|
||||||
|
|
||||||
|
// wrapValueReflect wraps the provide reflect.Value as a value. If parent in the data tree is a map, parentMap
|
||||||
|
// and parentMapKey must be provided so that the returned value may be set and deleted.
|
||||||
|
func wrapValueReflect(value reflect.Value, parentMap, parentMapKey *reflect.Value) (Value, error) {
|
||||||
|
val := HeapAllocator.allocValueReflect()
|
||||||
|
return val.reuse(value, nil, parentMap, parentMapKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
// wrapValueReflect wraps the provide reflect.Value as a value, and panics if there is an error. If parent in the data
|
||||||
|
// tree is a map, parentMap and parentMapKey must be provided so that the returned value may be set and deleted.
|
||||||
|
func mustWrapValueReflect(value reflect.Value, parentMap, parentMapKey *reflect.Value) Value {
|
||||||
|
v, err := wrapValueReflect(value, parentMap, parentMapKey)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
|
// the value interface doesn't care about the type for value.IsNull, so we can use a constant
|
||||||
|
var nilType = reflect.TypeOf(&struct{}{})
|
||||||
|
|
||||||
|
// reuse replaces the value of the valueReflect. If parent in the data tree is a map, parentMap and parentMapKey
|
||||||
|
// must be provided so that the returned value may be set and deleted.
|
||||||
|
func (r *valueReflect) reuse(value reflect.Value, cacheEntry *TypeReflectCacheEntry, parentMap, parentMapKey *reflect.Value) (Value, error) {
|
||||||
|
if cacheEntry == nil {
|
||||||
|
cacheEntry = TypeReflectEntryOf(value.Type())
|
||||||
|
}
|
||||||
|
if cacheEntry.CanConvertToUnstructured() {
|
||||||
|
u, err := cacheEntry.ToUnstructured(value)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if u == nil {
|
||||||
|
value = reflect.Zero(nilType)
|
||||||
|
} else {
|
||||||
|
value = reflect.ValueOf(u)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
r.Value = dereference(value)
|
||||||
|
r.ParentMap = parentMap
|
||||||
|
r.ParentMapKey = parentMapKey
|
||||||
|
r.kind = kind(r.Value)
|
||||||
|
return r, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// mustReuse replaces the value of the valueReflect and panics if there is an error. If parent in the data tree is a
|
||||||
|
// map, parentMap and parentMapKey must be provided so that the returned value may be set and deleted.
|
||||||
|
func (r *valueReflect) mustReuse(value reflect.Value, cacheEntry *TypeReflectCacheEntry, parentMap, parentMapKey *reflect.Value) Value {
|
||||||
|
v, err := r.reuse(value, cacheEntry, parentMap, parentMapKey)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
|
func dereference(val reflect.Value) reflect.Value {
|
||||||
|
kind := val.Kind()
|
||||||
|
if (kind == reflect.Interface || kind == reflect.Ptr) && !safeIsNil(val) {
|
||||||
|
return val.Elem()
|
||||||
|
}
|
||||||
|
return val
|
||||||
|
}
|
||||||
|
|
||||||
|
type valueReflect struct {
|
||||||
|
ParentMap *reflect.Value
|
||||||
|
ParentMapKey *reflect.Value
|
||||||
|
Value reflect.Value
|
||||||
|
kind reflectType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsMap() bool {
|
||||||
|
return r.kind == mapType || r.kind == structMapType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsList() bool {
|
||||||
|
return r.kind == listType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsBool() bool {
|
||||||
|
return r.kind == boolType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsInt() bool {
|
||||||
|
return r.kind == intType || r.kind == uintType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsFloat() bool {
|
||||||
|
return r.kind == floatType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsString() bool {
|
||||||
|
return r.kind == stringType || r.kind == byteStringType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) IsNull() bool {
|
||||||
|
return r.kind == nullType
|
||||||
|
}
|
||||||
|
|
||||||
|
type reflectType = int
|
||||||
|
|
||||||
|
const (
|
||||||
|
mapType = iota
|
||||||
|
structMapType
|
||||||
|
listType
|
||||||
|
intType
|
||||||
|
uintType
|
||||||
|
floatType
|
||||||
|
stringType
|
||||||
|
byteStringType
|
||||||
|
boolType
|
||||||
|
nullType
|
||||||
|
)
|
||||||
|
|
||||||
|
func kind(v reflect.Value) reflectType {
|
||||||
|
typ := v.Type()
|
||||||
|
rk := typ.Kind()
|
||||||
|
switch rk {
|
||||||
|
case reflect.Map:
|
||||||
|
if v.IsNil() {
|
||||||
|
return nullType
|
||||||
|
}
|
||||||
|
return mapType
|
||||||
|
case reflect.Struct:
|
||||||
|
return structMapType
|
||||||
|
case reflect.Int, reflect.Int64, reflect.Int32, reflect.Int16, reflect.Int8:
|
||||||
|
return intType
|
||||||
|
case reflect.Uint, reflect.Uint32, reflect.Uint16, reflect.Uint8:
|
||||||
|
// Uint64 deliberately excluded, see valueUnstructured.Int.
|
||||||
|
return uintType
|
||||||
|
case reflect.Float64, reflect.Float32:
|
||||||
|
return floatType
|
||||||
|
case reflect.String:
|
||||||
|
return stringType
|
||||||
|
case reflect.Bool:
|
||||||
|
return boolType
|
||||||
|
case reflect.Slice:
|
||||||
|
if v.IsNil() {
|
||||||
|
return nullType
|
||||||
|
}
|
||||||
|
elemKind := typ.Elem().Kind()
|
||||||
|
if elemKind == reflect.Uint8 {
|
||||||
|
return byteStringType
|
||||||
|
}
|
||||||
|
return listType
|
||||||
|
case reflect.Chan, reflect.Func, reflect.Ptr, reflect.UnsafePointer, reflect.Interface:
|
||||||
|
if v.IsNil() {
|
||||||
|
return nullType
|
||||||
|
}
|
||||||
|
panic(fmt.Sprintf("unsupported type: %v", v.Type()))
|
||||||
|
default:
|
||||||
|
panic(fmt.Sprintf("unsupported type: %v", v.Type()))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO find a cleaner way to avoid panics from reflect.IsNil()
|
||||||
|
func safeIsNil(v reflect.Value) bool {
|
||||||
|
k := v.Kind()
|
||||||
|
switch k {
|
||||||
|
case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice:
|
||||||
|
return v.IsNil()
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsMap() Map {
|
||||||
|
return r.AsMapUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsMapUsing(a Allocator) Map {
|
||||||
|
switch r.kind {
|
||||||
|
case structMapType:
|
||||||
|
v := a.allocStructReflect()
|
||||||
|
v.valueReflect = r
|
||||||
|
return v
|
||||||
|
case mapType:
|
||||||
|
v := a.allocMapReflect()
|
||||||
|
v.valueReflect = r
|
||||||
|
return v
|
||||||
|
default:
|
||||||
|
panic("value is not a map or struct")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsList() List {
|
||||||
|
return r.AsListUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsListUsing(a Allocator) List {
|
||||||
|
if r.IsList() {
|
||||||
|
v := a.allocListReflect()
|
||||||
|
v.Value = r.Value
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
panic("value is not a list")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsBool() bool {
|
||||||
|
if r.IsBool() {
|
||||||
|
return r.Value.Bool()
|
||||||
|
}
|
||||||
|
panic("value is not a bool")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsInt() int64 {
|
||||||
|
if r.kind == intType {
|
||||||
|
return r.Value.Int()
|
||||||
|
}
|
||||||
|
if r.kind == uintType {
|
||||||
|
return int64(r.Value.Uint())
|
||||||
|
}
|
||||||
|
|
||||||
|
panic("value is not an int")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsFloat() float64 {
|
||||||
|
if r.IsFloat() {
|
||||||
|
return r.Value.Float()
|
||||||
|
}
|
||||||
|
panic("value is not a float")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) AsString() string {
|
||||||
|
switch r.kind {
|
||||||
|
case stringType:
|
||||||
|
return r.Value.String()
|
||||||
|
case byteStringType:
|
||||||
|
return base64.StdEncoding.EncodeToString(r.Value.Bytes())
|
||||||
|
}
|
||||||
|
panic("value is not a string")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r valueReflect) Unstructured() interface{} {
|
||||||
|
val := r.Value
|
||||||
|
switch {
|
||||||
|
case r.IsNull():
|
||||||
|
return nil
|
||||||
|
case val.Kind() == reflect.Struct:
|
||||||
|
return structReflect{r}.Unstructured()
|
||||||
|
case val.Kind() == reflect.Map:
|
||||||
|
return mapReflect{valueReflect: r}.Unstructured()
|
||||||
|
case r.IsList():
|
||||||
|
return listReflect{r.Value}.Unstructured()
|
||||||
|
case r.IsString():
|
||||||
|
return r.AsString()
|
||||||
|
case r.IsInt():
|
||||||
|
return r.AsInt()
|
||||||
|
case r.IsBool():
|
||||||
|
return r.AsBool()
|
||||||
|
case r.IsFloat():
|
||||||
|
return r.AsFloat()
|
||||||
|
default:
|
||||||
|
panic(fmt.Sprintf("value of type %s is not a supported by value reflector", val.Type()))
|
||||||
|
}
|
||||||
|
}
|
178
vendor/sigs.k8s.io/structured-merge-diff/v3/value/valueunstructured.go
generated
vendored
Normal file
178
vendor/sigs.k8s.io/structured-merge-diff/v3/value/valueunstructured.go
generated
vendored
Normal file
@ -0,0 +1,178 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package value
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
// NewValueInterface creates a Value backed by an "interface{}" type,
|
||||||
|
// typically an unstructured object in Kubernetes world.
|
||||||
|
// interface{} must be one of: map[string]interface{}, map[interface{}]interface{}, []interface{}, int types, float types,
|
||||||
|
// string or boolean. Nested interface{} must also be one of these types.
|
||||||
|
func NewValueInterface(v interface{}) Value {
|
||||||
|
return Value(HeapAllocator.allocValueUnstructured().reuse(v))
|
||||||
|
}
|
||||||
|
|
||||||
|
type valueUnstructured struct {
|
||||||
|
Value interface{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// reuse replaces the value of the valueUnstructured.
|
||||||
|
func (vi *valueUnstructured) reuse(value interface{}) Value {
|
||||||
|
vi.Value = value
|
||||||
|
return vi
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsMap() bool {
|
||||||
|
if _, ok := v.Value.(map[string]interface{}); ok {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
if _, ok := v.Value.(map[interface{}]interface{}); ok {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsMap() Map {
|
||||||
|
return v.AsMapUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsMapUsing(_ Allocator) Map {
|
||||||
|
if v.Value == nil {
|
||||||
|
panic("invalid nil")
|
||||||
|
}
|
||||||
|
switch t := v.Value.(type) {
|
||||||
|
case map[string]interface{}:
|
||||||
|
return mapUnstructuredString(t)
|
||||||
|
case map[interface{}]interface{}:
|
||||||
|
return mapUnstructuredInterface(t)
|
||||||
|
}
|
||||||
|
panic(fmt.Errorf("not a map: %#v", v))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsList() bool {
|
||||||
|
if v.Value == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
_, ok := v.Value.([]interface{})
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsList() List {
|
||||||
|
return v.AsListUsing(HeapAllocator)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsListUsing(_ Allocator) List {
|
||||||
|
return listUnstructured(v.Value.([]interface{}))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsFloat() bool {
|
||||||
|
if v.Value == nil {
|
||||||
|
return false
|
||||||
|
} else if _, ok := v.Value.(float64); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(float32); ok {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsFloat() float64 {
|
||||||
|
if f, ok := v.Value.(float32); ok {
|
||||||
|
return float64(f)
|
||||||
|
}
|
||||||
|
return v.Value.(float64)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsInt() bool {
|
||||||
|
if v.Value == nil {
|
||||||
|
return false
|
||||||
|
} else if _, ok := v.Value.(int); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(int8); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(int16); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(int32); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(int64); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(uint); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(uint8); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(uint16); ok {
|
||||||
|
return true
|
||||||
|
} else if _, ok := v.Value.(uint32); ok {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsInt() int64 {
|
||||||
|
if i, ok := v.Value.(int); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(int8); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(int16); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(int32); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(uint); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(uint8); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(uint16); ok {
|
||||||
|
return int64(i)
|
||||||
|
} else if i, ok := v.Value.(uint32); ok {
|
||||||
|
return int64(i)
|
||||||
|
}
|
||||||
|
return v.Value.(int64)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsString() bool {
|
||||||
|
if v.Value == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
_, ok := v.Value.(string)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsString() string {
|
||||||
|
return v.Value.(string)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsBool() bool {
|
||||||
|
if v.Value == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
_, ok := v.Value.(bool)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) AsBool() bool {
|
||||||
|
return v.Value.(bool)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) IsNull() bool {
|
||||||
|
return v.Value == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v valueUnstructured) Unstructured() interface{} {
|
||||||
|
return v.Value
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user