repo
stringclasses
1 value
path
stringlengths
19
155
func_name
stringlengths
1
106
original_string
stringlengths
76
130k
language
stringclasses
1 value
code
stringlengths
76
130k
code_tokens
listlengths
22
32.6k
docstring
stringlengths
13
1.73k
docstring_tokens
listlengths
1
316
sha
stringclasses
1 value
url
stringlengths
114
252
partition
stringclasses
1 value
summary
stringlengths
13
316
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
kubernetes/kubernetes
pkg/api/v1/service/util.go
RequestsOnlyLocalTraffic
func RequestsOnlyLocalTraffic(service *v1.Service) bool { if service.Spec.Type != v1.ServiceTypeLoadBalancer && service.Spec.Type != v1.ServiceTypeNodePort { return false } return service.Spec.ExternalTrafficPolicy == v1.ServiceExternalTrafficPolicyTypeLocal }
go
func RequestsOnlyLocalTraffic(service *v1.Service) bool { if service.Spec.Type != v1.ServiceTypeLoadBalancer && service.Spec.Type != v1.ServiceTypeNodePort { return false } return service.Spec.ExternalTrafficPolicy == v1.ServiceExternalTrafficPolicyTypeLocal }
[ "func", "RequestsOnlyLocalTraffic", "(", "service", "*", "v1", ".", "Service", ")", "bool", "{", "if", "service", ".", "Spec", ".", "Type", "!=", "v1", ".", "ServiceTypeLoadBalancer", "&&", "service", ".", "Spec", ".", "Type", "!=", "v1", ".", "ServiceType...
// RequestsOnlyLocalTraffic checks if service requests OnlyLocal traffic.
[ "RequestsOnlyLocalTraffic", "checks", "if", "service", "requests", "OnlyLocal", "traffic", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/api/v1/service/util.go#L71-L77
train
RequestsOnlyLocalTraffic returns true if the service is only local traffic
[ 30522, 4569, 2278, 11186, 2239, 2135, 4135, 9289, 6494, 26989, 2278, 1006, 2326, 1008, 1058, 2487, 1012, 2326, 1007, 22017, 2140, 1063, 2065, 2326, 1012, 28699, 1012, 2828, 999, 1027, 1058, 2487, 1012, 2326, 13874, 11066, 26657, 2099, 1004,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/validation/validation.go
ValidateSecurityContext
func ValidateSecurityContext(sc *core.SecurityContext, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} //this should only be true for testing since SecurityContext is defaulted by the core if sc == nil { return allErrs } if sc.Privileged != nil { if *sc.Privileged && !capabilities.Get().Al...
go
func ValidateSecurityContext(sc *core.SecurityContext, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} //this should only be true for testing since SecurityContext is defaulted by the core if sc == nil { return allErrs } if sc.Privileged != nil { if *sc.Privileged && !capabilities.Get().Al...
[ "func", "ValidateSecurityContext", "(", "sc", "*", "core", ".", "SecurityContext", ",", "fldPath", "*", "field", ".", "Path", ")", "field", ".", "ErrorList", "{", "allErrs", ":=", "field", ".", "ErrorList", "{", "}", "\n", "//this should only be true for testing...
// ValidateSecurityContext ensure the security context contains valid settings
[ "ValidateSecurityContext", "ensure", "the", "security", "context", "contains", "valid", "settings" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/validation/validation.go#L5145-L5191
train
ValidateSecurityContext validates a security context
[ 30522, 4569, 2278, 9398, 8520, 8586, 25137, 8663, 18209, 1006, 8040, 1008, 4563, 1012, 3036, 8663, 18209, 1010, 13109, 18927, 8988, 1008, 2492, 1012, 4130, 1007, 2492, 1012, 7561, 9863, 1063, 2035, 2121, 2869, 1024, 1027, 2492, 1012, 7561, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/tools/clientcmd/loader.go
Migrate
func (rules *ClientConfigLoadingRules) Migrate() error { if rules.MigrationRules == nil { return nil } for destination, source := range rules.MigrationRules { if _, err := os.Stat(destination); err == nil { // if the destination already exists, do nothing continue } else if os.IsPermission(err) { // ...
go
func (rules *ClientConfigLoadingRules) Migrate() error { if rules.MigrationRules == nil { return nil } for destination, source := range rules.MigrationRules { if _, err := os.Stat(destination); err == nil { // if the destination already exists, do nothing continue } else if os.IsPermission(err) { // ...
[ "func", "(", "rules", "*", "ClientConfigLoadingRules", ")", "Migrate", "(", ")", "error", "{", "if", "rules", ".", "MigrationRules", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "for", "destination", ",", "source", ":=", "range", "rules", ".", "...
// Migrate uses the MigrationRules map. If a destination file is not present, then the source file is checked. // If the source file is present, then it is copied to the destination file BEFORE any further loading happens.
[ "Migrate", "uses", "the", "MigrationRules", "map", ".", "If", "a", "destination", "file", "is", "not", "present", "then", "the", "source", "file", "is", "checked", ".", "If", "the", "source", "file", "is", "present", "then", "it", "is", "copied", "to", "...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/tools/clientcmd/loader.go#L241-L287
train
Migrate a config file to a destination file
[ 30522, 4569, 2278, 1006, 3513, 1008, 7396, 8663, 8873, 23296, 10441, 4667, 6820, 4244, 1007, 22806, 1006, 1007, 7561, 1063, 2065, 3513, 1012, 9230, 6820, 4244, 1027, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1065, 2005, 7688, 1010, 3120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/v1/zz_generated.conversion.go
Convert_v1_AvoidPods_To_core_AvoidPods
func Convert_v1_AvoidPods_To_core_AvoidPods(in *v1.AvoidPods, out *core.AvoidPods, s conversion.Scope) error { return autoConvert_v1_AvoidPods_To_core_AvoidPods(in, out, s) }
go
func Convert_v1_AvoidPods_To_core_AvoidPods(in *v1.AvoidPods, out *core.AvoidPods, s conversion.Scope) error { return autoConvert_v1_AvoidPods_To_core_AvoidPods(in, out, s) }
[ "func", "Convert_v1_AvoidPods_To_core_AvoidPods", "(", "in", "*", "v1", ".", "AvoidPods", ",", "out", "*", "core", ".", "AvoidPods", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1_AvoidPods_To_core_AvoidPods", "(", "in", ",", ...
// Convert_v1_AvoidPods_To_core_AvoidPods is an autogenerated conversion function.
[ "Convert_v1_AvoidPods_To_core_AvoidPods", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/v1/zz_generated.conversion.go#L2184-L2186
train
Convert_v1_AvoidPods_To_core_AvoidPods is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 1035, 4468, 22925, 1035, 2000, 1035, 4563, 1035, 4468, 22925, 1006, 1999, 1008, 1058, 2487, 1012, 4468, 22925, 1010, 2041, 1008, 4563, 1012, 4468, 22925, 1010, 1055, 7584, 1012, 9531, 1007, 7561, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/zz_generated.deepcopy.go
DeepCopy
func (in *CustomResourceColumnDefinition) DeepCopy() *CustomResourceColumnDefinition { if in == nil { return nil } out := new(CustomResourceColumnDefinition) in.DeepCopyInto(out) return out }
go
func (in *CustomResourceColumnDefinition) DeepCopy() *CustomResourceColumnDefinition { if in == nil { return nil } out := new(CustomResourceColumnDefinition) in.DeepCopyInto(out) return out }
[ "func", "(", "in", "*", "CustomResourceColumnDefinition", ")", "DeepCopy", "(", ")", "*", "CustomResourceColumnDefinition", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "CustomResourceColumnDefinition", ")", "\n...
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceColumnDefinition.
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "CustomResourceColumnDefinition", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/zz_generated.deepcopy.go#L34-L41
train
DeepCopy is an autogenerated deepcopy function copying the receiver creating a new CustomResourceColumnDefinition.
[ 30522, 4569, 2278, 1006, 1999, 1008, 7661, 6072, 8162, 3401, 25778, 2819, 13629, 16294, 22753, 1007, 2784, 3597, 7685, 1006, 1007, 1008, 7661, 6072, 8162, 3401, 25778, 2819, 13629, 16294, 22753, 1063, 2065, 1999, 1027, 1027, 9152, 2140, 106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/phases/certs/certs.go
SharedCertificateExists
func SharedCertificateExists(cfg *kubeadmapi.ClusterConfiguration) (bool, error) { if err := validateCACertAndKey(certKeyLocation{cfg.CertificatesDir, kubeadmconstants.CACertAndKeyBaseName, "", "CA"}); err != nil { return false, err } if err := validatePrivatePublicKey(certKeyLocation{cfg.CertificatesDir, "", ku...
go
func SharedCertificateExists(cfg *kubeadmapi.ClusterConfiguration) (bool, error) { if err := validateCACertAndKey(certKeyLocation{cfg.CertificatesDir, kubeadmconstants.CACertAndKeyBaseName, "", "CA"}); err != nil { return false, err } if err := validatePrivatePublicKey(certKeyLocation{cfg.CertificatesDir, "", ku...
[ "func", "SharedCertificateExists", "(", "cfg", "*", "kubeadmapi", ".", "ClusterConfiguration", ")", "(", "bool", ",", "error", ")", "{", "if", "err", ":=", "validateCACertAndKey", "(", "certKeyLocation", "{", "cfg", ".", "CertificatesDir", ",", "kubeadmconstants",...
// SharedCertificateExists verifies if the shared certificates - the certificates that must be // equal across control-plane nodes: ca.key, ca.crt, sa.key, sa.pub + etcd/ca.key, etcd/ca.crt if local/stacked etcd
[ "SharedCertificateExists", "verifies", "if", "the", "shared", "certificates", "-", "the", "certificates", "that", "must", "be", "equal", "across", "control", "-", "plane", "nodes", ":", "ca", ".", "key", "ca", ".", "crt", "sa", ".", "key", "sa", ".", "pub"...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/phases/certs/certs.go#L290-L312
train
SharedCertificateExists checks if a certificate exists in the cluster configuration
[ 30522, 4569, 2278, 4207, 17119, 3775, 8873, 16280, 10288, 5130, 1006, 12935, 2290, 1008, 13970, 4783, 4215, 2863, 8197, 1012, 9324, 8663, 8873, 27390, 3370, 1007, 1006, 22017, 2140, 1010, 7561, 1007, 1063, 2065, 9413, 2099, 1024, 1027, 9398...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/apis/kubeadm/v1beta2/zz_generated.conversion.go
Convert_v1beta2_DNS_To_kubeadm_DNS
func Convert_v1beta2_DNS_To_kubeadm_DNS(in *DNS, out *kubeadm.DNS, s conversion.Scope) error { return autoConvert_v1beta2_DNS_To_kubeadm_DNS(in, out, s) }
go
func Convert_v1beta2_DNS_To_kubeadm_DNS(in *DNS, out *kubeadm.DNS, s conversion.Scope) error { return autoConvert_v1beta2_DNS_To_kubeadm_DNS(in, out, s) }
[ "func", "Convert_v1beta2_DNS_To_kubeadm_DNS", "(", "in", "*", "DNS", ",", "out", "*", "kubeadm", ".", "DNS", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1beta2_DNS_To_kubeadm_DNS", "(", "in", ",", "out", ",", "s", ")", "\...
// Convert_v1beta2_DNS_To_kubeadm_DNS is an autogenerated conversion function.
[ "Convert_v1beta2_DNS_To_kubeadm_DNS", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/apis/kubeadm/v1beta2/zz_generated.conversion.go#L502-L504
train
Convert_v1beta2_DNS_To_kubeadm_DNS is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 20915, 2050, 2475, 1035, 1040, 3619, 1035, 2000, 1035, 13970, 4783, 4215, 2213, 1035, 1040, 3619, 1006, 1999, 1008, 1040, 3619, 1010, 2041, 1008, 13970, 4783, 4215, 2213, 1012, 1040, 3619, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cluster/images/etcd/migrate/versions.go
MustParseSupportedVersions
func MustParseSupportedVersions(s string) SupportedVersions { versions, err := ParseSupportedVersions(s) if err != nil { panic(err) } return versions }
go
func MustParseSupportedVersions(s string) SupportedVersions { versions, err := ParseSupportedVersions(s) if err != nil { panic(err) } return versions }
[ "func", "MustParseSupportedVersions", "(", "s", "string", ")", "SupportedVersions", "{", "versions", ",", "err", ":=", "ParseSupportedVersions", "(", "s", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "return", "versi...
// MustParseSupportedVersions parses a comma separated list of etcd versions or panics if the parse fails.
[ "MustParseSupportedVersions", "parses", "a", "comma", "separated", "list", "of", "etcd", "versions", "or", "panics", "if", "the", "parse", "fails", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cluster/images/etcd/migrate/versions.go#L192-L198
train
MustParseSupportedVersions parses the string s and returns a list of supported versions.
[ 30522, 4569, 2278, 2442, 19362, 8583, 6279, 6442, 2098, 27774, 2015, 1006, 1055, 5164, 1007, 3569, 27774, 2015, 1063, 4617, 1010, 9413, 2099, 1024, 1027, 11968, 8583, 6279, 6442, 2098, 27774, 2015, 1006, 1055, 1007, 2065, 9413, 2099, 999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/fake_storageclass.go
Get
func (c *FakeStorageClasses) Get(name string, options v1.GetOptions) (result *v1beta1.StorageClass, err error) { obj, err := c.Fake. Invokes(testing.NewRootGetAction(storageclassesResource, name), &v1beta1.StorageClass{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageClass), err }
go
func (c *FakeStorageClasses) Get(name string, options v1.GetOptions) (result *v1beta1.StorageClass, err error) { obj, err := c.Fake. Invokes(testing.NewRootGetAction(storageclassesResource, name), &v1beta1.StorageClass{}) if obj == nil { return nil, err } return obj.(*v1beta1.StorageClass), err }
[ "func", "(", "c", "*", "FakeStorageClasses", ")", "Get", "(", "name", "string", ",", "options", "v1", ".", "GetOptions", ")", "(", "result", "*", "v1beta1", ".", "StorageClass", ",", "err", "error", ")", "{", "obj", ",", "err", ":=", "c", ".", "Fake"...
// Get takes name of the storageClass, and returns the corresponding storageClass object, and an error if there is any.
[ "Get", "takes", "name", "of", "the", "storageClass", "and", "returns", "the", "corresponding", "storageClass", "object", "and", "an", "error", "if", "there", "is", "any", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/kubernetes/typed/storage/v1beta1/fake/fake_storageclass.go#L41-L48
train
Get takes name of the storageClass and returns the corresponding storageClass object and an error if there is any.
[ 30522, 4569, 2278, 1006, 1039, 1008, 8275, 23809, 4270, 26266, 2229, 1007, 2131, 1006, 2171, 5164, 1010, 7047, 1058, 2487, 1012, 2131, 7361, 9285, 1007, 1006, 2765, 1008, 1058, 2487, 20915, 27717, 1012, 5527, 26266, 1010, 9413, 2099, 7561, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/volumemanager/volume_manager.go
NewVolumeManager
func NewVolumeManager( controllerAttachDetachEnabled bool, nodeName k8stypes.NodeName, podManager pod.Manager, podStatusProvider status.PodStatusProvider, kubeClient clientset.Interface, volumePluginMgr *volume.VolumePluginMgr, kubeContainerRuntime container.Runtime, mounter mount.Interface, kubeletPodsDir str...
go
func NewVolumeManager( controllerAttachDetachEnabled bool, nodeName k8stypes.NodeName, podManager pod.Manager, podStatusProvider status.PodStatusProvider, kubeClient clientset.Interface, volumePluginMgr *volume.VolumePluginMgr, kubeContainerRuntime container.Runtime, mounter mount.Interface, kubeletPodsDir str...
[ "func", "NewVolumeManager", "(", "controllerAttachDetachEnabled", "bool", ",", "nodeName", "k8stypes", ".", "NodeName", ",", "podManager", "pod", ".", "Manager", ",", "podStatusProvider", "status", ".", "PodStatusProvider", ",", "kubeClient", "clientset", ".", "Interf...
// NewVolumeManager returns a new concrete instance implementing the // VolumeManager interface. // // kubeClient - kubeClient is the kube API client used by DesiredStateOfWorldPopulator // to communicate with the API server to fetch PV and PVC objects // volumePluginMgr - the volume plugin manager used to access vol...
[ "NewVolumeManager", "returns", "a", "new", "concrete", "instance", "implementing", "the", "VolumeManager", "interface", ".", "kubeClient", "-", "kubeClient", "is", "the", "kube", "API", "client", "used", "by", "DesiredStateOfWorldPopulator", "to", "communicate", "with...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/volumemanager/volume_manager.go#L145-L197
train
NewVolumeManager returns a new instance of volume manager
[ 30522, 4569, 2278, 2047, 6767, 12942, 16704, 17325, 1006, 11486, 19321, 6776, 3207, 2696, 8661, 3085, 2094, 22017, 2140, 1010, 13045, 18442, 1047, 2620, 21756, 10374, 1012, 13045, 18442, 1010, 17491, 24805, 4590, 17491, 1012, 3208, 1010, 2672...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
plugin/pkg/auth/authorizer/node/graph.go
AddVolumeAttachment
func (g *Graph) AddVolumeAttachment(attachmentName, nodeName string) { g.lock.Lock() defer g.lock.Unlock() // clear existing edges g.deleteVertex_locked(vaVertexType, "", attachmentName) // if we have a node, establish new edges if len(nodeName) > 0 { vaVertex := g.getOrCreateVertex_locked(vaVertexType, "", a...
go
func (g *Graph) AddVolumeAttachment(attachmentName, nodeName string) { g.lock.Lock() defer g.lock.Unlock() // clear existing edges g.deleteVertex_locked(vaVertexType, "", attachmentName) // if we have a node, establish new edges if len(nodeName) > 0 { vaVertex := g.getOrCreateVertex_locked(vaVertexType, "", a...
[ "func", "(", "g", "*", "Graph", ")", "AddVolumeAttachment", "(", "attachmentName", ",", "nodeName", "string", ")", "{", "g", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "g", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "// clear existing edges", ...
// AddVolumeAttachment sets up edges for the following relationships: // // volume attachment -> node
[ "AddVolumeAttachment", "sets", "up", "edges", "for", "the", "following", "relationships", ":", "volume", "attachment", "-", ">", "node" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/plugin/pkg/auth/authorizer/node/graph.go#L398-L411
train
AddVolumeAttachment adds a volume attachment to the graph
[ 30522, 4569, 2278, 1006, 1043, 1008, 10629, 1007, 5587, 6767, 12942, 5243, 5946, 22729, 1006, 14449, 18442, 1010, 13045, 18442, 5164, 1007, 1063, 1043, 1012, 5843, 1012, 5843, 1006, 1007, 13366, 2121, 1043, 1012, 5843, 1012, 19829, 1006, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/phases/bootstraptoken/node/tlsbootstrap.go
AutoApproveNodeBootstrapTokens
func AutoApproveNodeBootstrapTokens(client clientset.Interface) error { fmt.Println("[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token") // Always create this kubeadm-specific binding though return apiclient.CreateOrUpdateClusterRoleBi...
go
func AutoApproveNodeBootstrapTokens(client clientset.Interface) error { fmt.Println("[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token") // Always create this kubeadm-specific binding though return apiclient.CreateOrUpdateClusterRoleBi...
[ "func", "AutoApproveNodeBootstrapTokens", "(", "client", "clientset", ".", "Interface", ")", "error", "{", "fmt", ".", "Println", "(", "\"", "\"", ")", "\n\n", "// Always create this kubeadm-specific binding though", "return", "apiclient", ".", "CreateOrUpdateClusterRoleB...
// AutoApproveNodeBootstrapTokens creates RBAC rules in a way that makes Node Bootstrap Tokens' CSR auto-approved by the csrapprover controller
[ "AutoApproveNodeBootstrapTokens", "creates", "RBAC", "rules", "in", "a", "way", "that", "makes", "Node", "Bootstrap", "Tokens", "CSR", "auto", "-", "approved", "by", "the", "csrapprover", "controller" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/phases/bootstraptoken/node/tlsbootstrap.go#L71-L91
train
AutoApproveNodeBootstrapTokens creates a new clusterRoleBinding that will automatically approve CSRs from a Node Bootstrap Token
[ 30522, 4569, 2278, 8285, 29098, 17597, 3630, 3207, 27927, 20528, 13876, 11045, 3619, 1006, 7396, 7846, 3388, 1012, 8278, 1007, 7561, 1063, 4718, 2102, 1012, 6140, 19666, 1006, 1000, 1031, 6879, 6494, 2361, 1011, 19204, 1033, 26928, 21144, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/eviction/threshold_notifier_unsupported.go
NewCgroupNotifier
func NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) { klog.V(5).Infof("cgroup notifications not supported") return &unsupportedThresholdNotifier{}, nil }
go
func NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) { klog.V(5).Infof("cgroup notifications not supported") return &unsupportedThresholdNotifier{}, nil }
[ "func", "NewCgroupNotifier", "(", "path", ",", "attribute", "string", ",", "threshold", "int64", ")", "(", "CgroupNotifier", ",", "error", ")", "{", "klog", ".", "V", "(", "5", ")", ".", "Infof", "(", "\"", "\"", ")", "\n", "return", "&", "unsupportedT...
// NewCgroupNotifier creates a cgroup notifier that does nothing because cgroups do not exist on non-linux systems.
[ "NewCgroupNotifier", "creates", "a", "cgroup", "notifier", "that", "does", "nothing", "because", "cgroups", "do", "not", "exist", "on", "non", "-", "linux", "systems", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/eviction/threshold_notifier_unsupported.go#L24-L27
train
NewCgroupNotifier returns a new CgroupNotifier.
[ 30522, 4569, 2278, 2047, 2278, 17058, 17048, 18095, 1006, 4130, 1010, 17961, 5164, 1010, 11207, 20014, 21084, 1007, 1006, 1039, 17058, 17048, 18095, 1010, 7561, 1007, 1063, 1047, 21197, 1012, 1058, 1006, 1019, 1007, 1012, 18558, 2546, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/zz_generated.deepcopy.go
DeepCopy
func (in *ComponentStatus) DeepCopy() *ComponentStatus { if in == nil { return nil } out := new(ComponentStatus) in.DeepCopyInto(out) return out }
go
func (in *ComponentStatus) DeepCopy() *ComponentStatus { if in == nil { return nil } out := new(ComponentStatus) in.DeepCopyInto(out) return out }
[ "func", "(", "in", "*", "ComponentStatus", ")", "DeepCopy", "(", ")", "*", "ComponentStatus", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "ComponentStatus", ")", "\n", "in", ".", "DeepCopyInto", "(", ...
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ComponentStatus", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/zz_generated.deepcopy.go#L462-L469
train
DeepCopy is an autogenerated deepcopy function copying the receiver creating a new ComponentStatus.
[ 30522, 4569, 2278, 1006, 1999, 1008, 6177, 29336, 2271, 1007, 2784, 3597, 7685, 1006, 1007, 1008, 6177, 29336, 2271, 1063, 2065, 1999, 1027, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1065, 2041, 1024, 1027, 2047, 1006, 6177, 29336, 2271, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/volume/fc/fc_util.go
removeFromScsiSubsystem
func removeFromScsiSubsystem(deviceName string, io ioHandler) { fileName := "/sys/block/" + deviceName + "/device/delete" klog.V(4).Infof("fc: remove device from scsi-subsystem: path: %s", fileName) data := []byte("1") io.WriteFile(fileName, data, 0666) }
go
func removeFromScsiSubsystem(deviceName string, io ioHandler) { fileName := "/sys/block/" + deviceName + "/device/delete" klog.V(4).Infof("fc: remove device from scsi-subsystem: path: %s", fileName) data := []byte("1") io.WriteFile(fileName, data, 0666) }
[ "func", "removeFromScsiSubsystem", "(", "deviceName", "string", ",", "io", "ioHandler", ")", "{", "fileName", ":=", "\"", "\"", "+", "deviceName", "+", "\"", "\"", "\n", "klog", ".", "V", "(", "4", ")", ".", "Infof", "(", "\"", "\"", ",", "fileName", ...
// Removes a scsi device based upon /dev/sdX name
[ "Removes", "a", "scsi", "device", "based", "upon", "/", "dev", "/", "sdX", "name" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/volume/fc/fc_util.go#L115-L120
train
removeFromScsiSubsystem removes the device from the scsi - subsystem
[ 30522, 4569, 2278, 6366, 19699, 22225, 6169, 2483, 12083, 6508, 13473, 2213, 1006, 5080, 18442, 5164, 1010, 22834, 22834, 11774, 3917, 1007, 1063, 5371, 18442, 1024, 1027, 1000, 1013, 25353, 2015, 1013, 3796, 1013, 1000, 1009, 5080, 18442, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go
sortMergeListsByNameMap
func sortMergeListsByNameMap(s map[string]interface{}, schema LookupPatchMeta) (map[string]interface{}, error) { newS := map[string]interface{}{} for k, v := range s { if k == retainKeysDirective { typedV, ok := v.([]interface{}) if !ok { return nil, mergepatch.ErrBadPatchFormatForRetainKeys } v = s...
go
func sortMergeListsByNameMap(s map[string]interface{}, schema LookupPatchMeta) (map[string]interface{}, error) { newS := map[string]interface{}{} for k, v := range s { if k == retainKeysDirective { typedV, ok := v.([]interface{}) if !ok { return nil, mergepatch.ErrBadPatchFormatForRetainKeys } v = s...
[ "func", "sortMergeListsByNameMap", "(", "s", "map", "[", "string", "]", "interface", "{", "}", ",", "schema", "LookupPatchMeta", ")", "(", "map", "[", "string", "]", "interface", "{", "}", ",", "error", ")", "{", "newS", ":=", "map", "[", "string", "]"...
// Function sortMergeListsByNameMap recursively sorts the merge lists by its mergeKey in a map.
[ "Function", "sortMergeListsByNameMap", "recursively", "sorts", "the", "merge", "lists", "by", "its", "mergeKey", "in", "a", "map", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go#L1607-L1662
train
sortMergeListsByNameMap recursively merges a map of lists by name.
[ 30522, 4569, 2278, 4066, 5017, 12439, 5130, 3762, 18442, 2863, 2361, 1006, 1055, 4949, 1031, 5164, 1033, 8278, 1063, 1065, 1010, 8040, 28433, 2298, 6279, 4502, 10649, 11368, 2050, 1007, 1006, 4949, 1031, 5164, 1033, 8278, 1063, 1065, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/volume/util/subpath/subpath_linux.go
prepareSubpathTarget
func prepareSubpathTarget(mounter mount.Interface, subpath Subpath) (bool, string, error) { // Early check for already bind-mounted subpath. bindPathTarget := getSubpathBindTarget(subpath) notMount, err := mount.IsNotMountPoint(mounter, bindPathTarget) if err != nil { if !os.IsNotExist(err) { return false, "",...
go
func prepareSubpathTarget(mounter mount.Interface, subpath Subpath) (bool, string, error) { // Early check for already bind-mounted subpath. bindPathTarget := getSubpathBindTarget(subpath) notMount, err := mount.IsNotMountPoint(mounter, bindPathTarget) if err != nil { if !os.IsNotExist(err) { return false, "",...
[ "func", "prepareSubpathTarget", "(", "mounter", "mount", ".", "Interface", ",", "subpath", "Subpath", ")", "(", "bool", ",", "string", ",", "error", ")", "{", "// Early check for already bind-mounted subpath.", "bindPathTarget", ":=", "getSubpathBindTarget", "(", "sub...
// prepareSubpathTarget creates target for bind-mount of subpath. It returns // "true" when the target already exists and something is mounted there. // Given Subpath must have all paths with already resolved symlinks and with // paths relevant to kubelet (when it runs in a container). // This function is called also b...
[ "prepareSubpathTarget", "creates", "target", "for", "bind", "-", "mount", "of", "subpath", ".", "It", "returns", "true", "when", "the", "target", "already", "exists", "and", "something", "is", "mounted", "there", ".", "Given", "Subpath", "must", "have", "all",...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/volume/util/subpath/subpath_linux.go#L101-L145
train
prepareSubpathTarget creates the bind - mount target for the given subpath.
[ 30522, 4569, 2278, 20776, 12083, 15069, 7559, 18150, 1006, 4057, 2121, 4057, 1012, 8278, 1010, 4942, 15069, 4942, 15069, 1007, 1006, 22017, 2140, 1010, 5164, 1010, 7561, 1007, 1063, 1013, 1013, 2220, 4638, 2005, 2525, 14187, 1011, 5614, 494...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags.go
AddFlags
func (f *JSONPathPrintFlags) AddFlags(c *cobra.Command) { if f.TemplateArgument != nil { c.Flags().StringVar(f.TemplateArgument, "template", *f.TemplateArgument, "Template string or path to template file to use when --output=jsonpath, --output=jsonpath-file.") c.MarkFlagFilename("template") } if f.AllowMissingKe...
go
func (f *JSONPathPrintFlags) AddFlags(c *cobra.Command) { if f.TemplateArgument != nil { c.Flags().StringVar(f.TemplateArgument, "template", *f.TemplateArgument, "Template string or path to template file to use when --output=jsonpath, --output=jsonpath-file.") c.MarkFlagFilename("template") } if f.AllowMissingKe...
[ "func", "(", "f", "*", "JSONPathPrintFlags", ")", "AddFlags", "(", "c", "*", "cobra", ".", "Command", ")", "{", "if", "f", ".", "TemplateArgument", "!=", "nil", "{", "c", ".", "Flags", "(", ")", ".", "StringVar", "(", "f", ".", "TemplateArgument", ",...
// AddFlags receives a *cobra.Command reference and binds // flags related to template printing to it
[ "AddFlags", "receives", "a", "*", "cobra", ".", "Command", "reference", "and", "binds", "flags", "related", "to", "template", "printing", "to", "it" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags.go#L113-L121
train
AddFlags adds flags to the command
[ 30522, 4569, 2278, 1006, 1042, 1008, 1046, 3385, 15069, 16550, 10258, 26454, 1007, 5587, 10258, 26454, 1006, 1039, 1008, 16604, 1012, 3094, 1007, 1063, 2065, 1042, 1012, 23561, 2906, 22850, 4765, 999, 1027, 9152, 2140, 1063, 1039, 1012, 924...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/v1/zz_generated.conversion.go
Convert_v1_VolumeMount_To_core_VolumeMount
func Convert_v1_VolumeMount_To_core_VolumeMount(in *v1.VolumeMount, out *core.VolumeMount, s conversion.Scope) error { return autoConvert_v1_VolumeMount_To_core_VolumeMount(in, out, s) }
go
func Convert_v1_VolumeMount_To_core_VolumeMount(in *v1.VolumeMount, out *core.VolumeMount, s conversion.Scope) error { return autoConvert_v1_VolumeMount_To_core_VolumeMount(in, out, s) }
[ "func", "Convert_v1_VolumeMount_To_core_VolumeMount", "(", "in", "*", "v1", ".", "VolumeMount", ",", "out", "*", "core", ".", "VolumeMount", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1_VolumeMount_To_core_VolumeMount", "(", "in...
// Convert_v1_VolumeMount_To_core_VolumeMount is an autogenerated conversion function.
[ "Convert_v1_VolumeMount_To_core_VolumeMount", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/v1/zz_generated.conversion.go#L7376-L7378
train
Convert_v1_VolumeMount_To_core_VolumeMount is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 1035, 3872, 20048, 1035, 2000, 1035, 4563, 1035, 3872, 20048, 1006, 1999, 1008, 1058, 2487, 1012, 3872, 20048, 1010, 2041, 1008, 4563, 1012, 3872, 20048, 1010, 1055, 7584, 1012, 9531, 1007, 7561, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go
Intn
func Intn(max int) int { rng.Lock() defer rng.Unlock() return rng.rand.Intn(max) }
go
func Intn(max int) int { rng.Lock() defer rng.Unlock() return rng.rand.Intn(max) }
[ "func", "Intn", "(", "max", "int", ")", "int", "{", "rng", ".", "Lock", "(", ")", "\n", "defer", "rng", ".", "Unlock", "(", ")", "\n", "return", "rng", ".", "rand", ".", "Intn", "(", "max", ")", "\n", "}" ]
// Intn generates an integer in range [0,max). // By design this should panic if input is invalid, <= 0.
[ "Intn", "generates", "an", "integer", "in", "range", "[", "0", "max", ")", ".", "By", "design", "this", "should", "panic", "if", "input", "is", "invalid", "<", "=", "0", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go#L42-L46
train
Intn returns a random int in the range [ 0 max )
[ 30522, 4569, 2278, 20014, 2078, 1006, 4098, 20014, 1007, 20014, 1063, 29300, 2290, 1012, 5843, 1006, 1007, 13366, 2121, 29300, 2290, 1012, 19829, 1006, 1007, 2709, 29300, 2290, 1012, 14566, 1012, 20014, 2078, 1006, 4098, 1007, 1065, 102, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apimachinery/pkg/runtime/scheme_builder.go
NewSchemeBuilder
func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder { var sb SchemeBuilder sb.Register(funcs...) return sb }
go
func NewSchemeBuilder(funcs ...func(*Scheme) error) SchemeBuilder { var sb SchemeBuilder sb.Register(funcs...) return sb }
[ "func", "NewSchemeBuilder", "(", "funcs", "...", "func", "(", "*", "Scheme", ")", "error", ")", "SchemeBuilder", "{", "var", "sb", "SchemeBuilder", "\n", "sb", ".", "Register", "(", "funcs", "...", ")", "\n", "return", "sb", "\n", "}" ]
// NewSchemeBuilder calls Register for you.
[ "NewSchemeBuilder", "calls", "Register", "for", "you", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apimachinery/pkg/runtime/scheme_builder.go#L44-L48
train
NewSchemeBuilder creates a new SchemeBuilder.
[ 30522, 4569, 2278, 2739, 5403, 4168, 8569, 23891, 2099, 1006, 4569, 6169, 1012, 1012, 1012, 4569, 2278, 1006, 1008, 5679, 1007, 7561, 1007, 5679, 8569, 23891, 2099, 1063, 13075, 24829, 5679, 8569, 23891, 2099, 24829, 1012, 4236, 1006, 4569,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/cli-runtime/pkg/kustomize/k8sdeps/kunstruct/factory.go
FromMap
func (kf *KunstructuredFactoryImpl) FromMap( m map[string]interface{}) ifc.Kunstructured { return &UnstructAdapter{Unstructured: unstructured.Unstructured{Object: m}} }
go
func (kf *KunstructuredFactoryImpl) FromMap( m map[string]interface{}) ifc.Kunstructured { return &UnstructAdapter{Unstructured: unstructured.Unstructured{Object: m}} }
[ "func", "(", "kf", "*", "KunstructuredFactoryImpl", ")", "FromMap", "(", "m", "map", "[", "string", "]", "interface", "{", "}", ")", "ifc", ".", "Kunstructured", "{", "return", "&", "UnstructAdapter", "{", "Unstructured", ":", "unstructured", ".", "Unstructu...
// FromMap returns an instance of Kunstructured.
[ "FromMap", "returns", "an", "instance", "of", "Kunstructured", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/cli-runtime/pkg/kustomize/k8sdeps/kunstruct/factory.go#L76-L79
train
FromMap returns a new object from a map
[ 30522, 4569, 2278, 1006, 1047, 2546, 1008, 28145, 26134, 21450, 5714, 24759, 1007, 2013, 2863, 2361, 1006, 1049, 4949, 1031, 5164, 1033, 8278, 1063, 1065, 1007, 2065, 2278, 1012, 28145, 26134, 1063, 2709, 1004, 4895, 3367, 6820, 25572, 2850...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/set/set_subject.go
updateSubjectForObject
func updateSubjectForObject(obj runtime.Object, subjects []rbacv1.Subject, fn updateSubjects) (bool, error) { switch t := obj.(type) { case *rbacv1.RoleBinding: transformed, result := fn(t.Subjects, subjects) t.Subjects = result return transformed, nil case *rbacv1.ClusterRoleBinding: transformed, result := ...
go
func updateSubjectForObject(obj runtime.Object, subjects []rbacv1.Subject, fn updateSubjects) (bool, error) { switch t := obj.(type) { case *rbacv1.RoleBinding: transformed, result := fn(t.Subjects, subjects) t.Subjects = result return transformed, nil case *rbacv1.ClusterRoleBinding: transformed, result := ...
[ "func", "updateSubjectForObject", "(", "obj", "runtime", ".", "Object", ",", "subjects", "[", "]", "rbacv1", ".", "Subject", ",", "fn", "updateSubjects", ")", "(", "bool", ",", "error", ")", "{", "switch", "t", ":=", "obj", ".", "(", "type", ")", "{", ...
//Note: the obj mutates in the function
[ "Note", ":", "the", "obj", "mutates", "in", "the", "function" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/set/set_subject.go#L276-L289
train
updateSubjectForObject is a helper function to update the subjects for an object.
[ 30522, 4569, 2278, 14409, 12083, 20614, 29278, 16429, 20614, 1006, 27885, 3501, 2448, 7292, 1012, 4874, 1010, 5739, 1031, 1033, 21144, 6305, 2615, 2487, 1012, 3395, 1010, 1042, 2078, 14409, 12083, 20614, 2015, 1007, 1006, 22017, 2140, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/conversion.go
ConvertJSONSchemaPropsToOpenAPIv2Schema
func ConvertJSONSchemaPropsToOpenAPIv2Schema(in *apiextensions.JSONSchemaProps) (*spec.Schema, error) { if in == nil { return nil, nil } // dirty hack to temporarily set the type at the root. See continuation at the func bottom. // TODO: remove for Kubernetes 1.15 oldRootType := in.Type if len(in.Type) == 0 { ...
go
func ConvertJSONSchemaPropsToOpenAPIv2Schema(in *apiextensions.JSONSchemaProps) (*spec.Schema, error) { if in == nil { return nil, nil } // dirty hack to temporarily set the type at the root. See continuation at the func bottom. // TODO: remove for Kubernetes 1.15 oldRootType := in.Type if len(in.Type) == 0 { ...
[ "func", "ConvertJSONSchemaPropsToOpenAPIv2Schema", "(", "in", "*", "apiextensions", ".", "JSONSchemaProps", ")", "(", "*", "spec", ".", "Schema", ",", "error", ")", "{", "if", "in", "==", "nil", "{", "return", "nil", ",", "nil", "\n", "}", "\n\n", "// dirt...
// ConvertJSONSchemaPropsToOpenAPIv2Schema converts our internal OpenAPI v3 schema // (*apiextensions.JSONSchemaProps) to an OpenAPI v2 schema (*spec.Schema).
[ "ConvertJSONSchemaPropsToOpenAPIv2Schema", "converts", "our", "internal", "OpenAPI", "v3", "schema", "(", "*", "apiextensions", ".", "JSONSchemaProps", ")", "to", "an", "OpenAPI", "v2", "schema", "(", "*", "spec", ".", "Schema", ")", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/conversion.go#L30-L122
train
ConvertJSONSchemaPropsToOpenAPIv2Schema converts a JSONSchemaProps to OpenAPI v2 schema
[ 30522, 4569, 2278, 10463, 22578, 5644, 5403, 2863, 21572, 4523, 3406, 26915, 9331, 12848, 2475, 22842, 2863, 1006, 1999, 1008, 17928, 10288, 29048, 2015, 1012, 1046, 23345, 5403, 2863, 21572, 4523, 1007, 1006, 1008, 28699, 1012, 8040, 28433, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/tools/metrics/metrics.go
Register
func Register(lm LatencyMetric, rm ResultMetric) { registerMetrics.Do(func() { RequestLatency = lm RequestResult = rm }) }
go
func Register(lm LatencyMetric, rm ResultMetric) { registerMetrics.Do(func() { RequestLatency = lm RequestResult = rm }) }
[ "func", "Register", "(", "lm", "LatencyMetric", ",", "rm", "ResultMetric", ")", "{", "registerMetrics", ".", "Do", "(", "func", "(", ")", "{", "RequestLatency", "=", "lm", "\n", "RequestResult", "=", "rm", "\n", "}", ")", "\n", "}" ]
// Register registers metrics for the rest client to use. This can // only be called once.
[ "Register", "registers", "metrics", "for", "the", "rest", "client", "to", "use", ".", "This", "can", "only", "be", "called", "once", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/tools/metrics/metrics.go#L48-L53
train
Register registers the latency and result metrics.
[ 30522, 4569, 2278, 4236, 1006, 1048, 2213, 2397, 9407, 12589, 1010, 28549, 2765, 12589, 1007, 1063, 4236, 12589, 2015, 1012, 2079, 1006, 4569, 2278, 1006, 1007, 1063, 5227, 13806, 9407, 1027, 1048, 2213, 5227, 6072, 11314, 1027, 28549, 1065...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiserver/pkg/registry/rest/update.go
AdmissionToValidateObjectUpdateFunc
func AdmissionToValidateObjectUpdateFunc(admit admission.Interface, staticAttributes admission.Attributes, o admission.ObjectInterfaces) ValidateObjectUpdateFunc { validatingAdmission, ok := admit.(admission.ValidationInterface) if !ok { return func(obj, old runtime.Object) error { return nil } } return func(obj,...
go
func AdmissionToValidateObjectUpdateFunc(admit admission.Interface, staticAttributes admission.Attributes, o admission.ObjectInterfaces) ValidateObjectUpdateFunc { validatingAdmission, ok := admit.(admission.ValidationInterface) if !ok { return func(obj, old runtime.Object) error { return nil } } return func(obj,...
[ "func", "AdmissionToValidateObjectUpdateFunc", "(", "admit", "admission", ".", "Interface", ",", "staticAttributes", "admission", ".", "Attributes", ",", "o", "admission", ".", "ObjectInterfaces", ")", "ValidateObjectUpdateFunc", "{", "validatingAdmission", ",", "ok", "...
// AdmissionToValidateObjectUpdateFunc converts validating admission to a rest validate object update func
[ "AdmissionToValidateObjectUpdateFunc", "converts", "validating", "admission", "to", "a", "rest", "validate", "object", "update", "func" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiserver/pkg/registry/rest/update.go#L259-L282
train
AdmissionToValidateObjectUpdateFunc returns a ValidateObjectUpdateFunc that will validate the object
[ 30522, 4569, 2278, 9634, 26525, 11475, 13701, 16429, 20614, 6279, 13701, 11263, 12273, 1006, 6449, 9634, 1012, 8278, 1010, 10763, 19321, 3089, 8569, 4570, 9634, 1012, 12332, 1010, 1051, 9634, 1012, 4874, 18447, 2121, 12172, 2015, 1007, 9398, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/server/server.go
NewServer
func NewServer( host HostInterface, resourceAnalyzer stats.ResourceAnalyzer, auth AuthInterface, enableDebuggingHandlers, enableContentionProfiling, redirectContainerStreaming bool, criHandler http.Handler) Server { server := Server{ host: host, resourceAnalyzer: resourceAnal...
go
func NewServer( host HostInterface, resourceAnalyzer stats.ResourceAnalyzer, auth AuthInterface, enableDebuggingHandlers, enableContentionProfiling, redirectContainerStreaming bool, criHandler http.Handler) Server { server := Server{ host: host, resourceAnalyzer: resourceAnal...
[ "func", "NewServer", "(", "host", "HostInterface", ",", "resourceAnalyzer", "stats", ".", "ResourceAnalyzer", ",", "auth", "AuthInterface", ",", "enableDebuggingHandlers", ",", "enableContentionProfiling", ",", "redirectContainerStreaming", "bool", ",", "criHandler", "htt...
// NewServer initializes and configures a kubelet.Server object to handle HTTP requests.
[ "NewServer", "initializes", "and", "configures", "a", "kubelet", ".", "Server", "object", "to", "handle", "HTTP", "requests", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/server/server.go#L210-L238
train
NewServer creates a new server
[ 30522, 4569, 2278, 2739, 2121, 6299, 1006, 3677, 3677, 18447, 2121, 12172, 1010, 7692, 27953, 2100, 6290, 26319, 1012, 7692, 27953, 2100, 6290, 1010, 8740, 2705, 8740, 15222, 10111, 12881, 10732, 1010, 9124, 15878, 15916, 4726, 11774, 12910, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/zz_generated.conversion.go
Convert_v1beta1_PolicyRule_To_audit_PolicyRule
func Convert_v1beta1_PolicyRule_To_audit_PolicyRule(in *PolicyRule, out *audit.PolicyRule, s conversion.Scope) error { return autoConvert_v1beta1_PolicyRule_To_audit_PolicyRule(in, out, s) }
go
func Convert_v1beta1_PolicyRule_To_audit_PolicyRule(in *PolicyRule, out *audit.PolicyRule, s conversion.Scope) error { return autoConvert_v1beta1_PolicyRule_To_audit_PolicyRule(in, out, s) }
[ "func", "Convert_v1beta1_PolicyRule_To_audit_PolicyRule", "(", "in", "*", "PolicyRule", ",", "out", "*", "audit", ".", "PolicyRule", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1beta1_PolicyRule_To_audit_PolicyRule", "(", "in", ","...
// Convert_v1beta1_PolicyRule_To_audit_PolicyRule is an autogenerated conversion function.
[ "Convert_v1beta1_PolicyRule_To_audit_PolicyRule", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1/zz_generated.conversion.go#L331-L333
train
Convert_v1beta1_PolicyRule_To_audit_PolicyRule is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 20915, 27717, 1035, 3343, 6820, 2571, 1035, 2000, 1035, 15727, 1035, 3343, 6820, 2571, 1006, 1999, 1008, 3343, 6820, 2571, 1010, 2041, 1008, 15727, 1012, 3343, 6820, 2571, 1010, 1055, 7584, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/zz_generated.conversion.go
Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus
func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s) }
go
func Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in *ExecCredentialStatus, out *clientauthentication.ExecCredentialStatus, s conversion.Scope) error { return autoConvert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus(in, out, s) }
[ "func", "Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus", "(", "in", "*", "ExecCredentialStatus", ",", "out", "*", "clientauthentication", ".", "ExecCredentialStatus", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "au...
// Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function.
[ "Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/pkg/apis/clientauthentication/v1alpha1/zz_generated.conversion.go#L139-L141
train
Convert_v1alpha1_ExecCredentialStatus_To_clientauthentication_ExecCredentialStatus is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 2389, 21890, 2487, 1035, 4654, 8586, 16748, 16454, 26340, 29336, 2271, 1035, 2000, 1035, 7396, 4887, 10760, 16778, 10719, 1035, 4654, 8586, 16748, 16454, 30524, 29336, 2271, 1010, 1055, 7584, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/credentialprovider/provider.go
Provide
func (d *defaultDockerConfigProvider) Provide(image string) DockerConfig { // Read the standard Docker credentials from .dockercfg if cfg, err := ReadDockerConfigFile(); err == nil { return cfg } else if !os.IsNotExist(err) { klog.V(4).Infof("Unable to parse Docker config file: %v", err) } return DockerConfig{...
go
func (d *defaultDockerConfigProvider) Provide(image string) DockerConfig { // Read the standard Docker credentials from .dockercfg if cfg, err := ReadDockerConfigFile(); err == nil { return cfg } else if !os.IsNotExist(err) { klog.V(4).Infof("Unable to parse Docker config file: %v", err) } return DockerConfig{...
[ "func", "(", "d", "*", "defaultDockerConfigProvider", ")", "Provide", "(", "image", "string", ")", "DockerConfig", "{", "// Read the standard Docker credentials from .dockercfg", "if", "cfg", ",", "err", ":=", "ReadDockerConfigFile", "(", ")", ";", "err", "==", "nil...
// LazyProvide implements dockerConfigProvider
[ "LazyProvide", "implements", "dockerConfigProvider" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/credentialprovider/provider.go#L89-L97
train
Provide returns the DockerConfig for the given image
[ 30522, 4569, 2278, 1006, 1040, 1008, 12398, 14647, 2121, 8663, 8873, 21600, 12298, 18688, 1007, 3073, 1006, 3746, 5164, 1007, 8946, 2121, 8663, 8873, 2290, 1063, 1013, 1013, 3191, 1996, 3115, 8946, 2121, 22496, 2013, 1012, 8946, 2121, 2278,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/listers/core/v1/persistentvolume.go
Get
func (s *persistentVolumeLister) Get(name string) (*v1.PersistentVolume, error) { obj, exists, err := s.indexer.GetByKey(name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(v1.Resource("persistentvolume"), name) } return obj.(*v1.PersistentVolume), nil }
go
func (s *persistentVolumeLister) Get(name string) (*v1.PersistentVolume, error) { obj, exists, err := s.indexer.GetByKey(name) if err != nil { return nil, err } if !exists { return nil, errors.NewNotFound(v1.Resource("persistentvolume"), name) } return obj.(*v1.PersistentVolume), nil }
[ "func", "(", "s", "*", "persistentVolumeLister", ")", "Get", "(", "name", "string", ")", "(", "*", "v1", ".", "PersistentVolume", ",", "error", ")", "{", "obj", ",", "exists", ",", "err", ":=", "s", ".", "indexer", ".", "GetByKey", "(", "name", ")", ...
// Get retrieves the PersistentVolume from the index for a given name.
[ "Get", "retrieves", "the", "PersistentVolume", "from", "the", "index", "for", "a", "given", "name", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/listers/core/v1/persistentvolume.go#L56-L65
train
Get retrieves the PersistentVolume from the index for a given name.
[ 30522, 4569, 2278, 1006, 1055, 1008, 14516, 6767, 12942, 29282, 3334, 1007, 2131, 1006, 2171, 5164, 1007, 1006, 1008, 1058, 2487, 1012, 14516, 6767, 12942, 2063, 1010, 7561, 1007, 1063, 27885, 3501, 1010, 6526, 1010, 9413, 2099, 1024, 1027,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/authentication/zz_generated.deepcopy.go
DeepCopy
func (in *TokenRequestSpec) DeepCopy() *TokenRequestSpec { if in == nil { return nil } out := new(TokenRequestSpec) in.DeepCopyInto(out) return out }
go
func (in *TokenRequestSpec) DeepCopy() *TokenRequestSpec { if in == nil { return nil } out := new(TokenRequestSpec) in.DeepCopyInto(out) return out }
[ "func", "(", "in", "*", "TokenRequestSpec", ")", "DeepCopy", "(", ")", "*", "TokenRequestSpec", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "TokenRequestSpec", ")", "\n", "in", ".", "DeepCopyInto", "(",...
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenRequestSpec.
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "TokenRequestSpec", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/authentication/zz_generated.deepcopy.go#L108-L115
train
DeepCopy is an autogenerated deepcopy function copying the receiver creating a new TokenRequestSpec.
[ 30522, 4569, 2278, 1006, 1999, 1008, 19204, 2890, 15500, 13102, 8586, 1007, 2784, 3597, 7685, 1006, 1007, 1008, 19204, 2890, 15500, 30524, 1012, 2784, 3597, 7685, 18447, 2080, 1006, 2041, 1007, 2709, 2041, 1065, 102, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/resource.go
Cpu
func (self *ResourceList) Cpu() *resource.Quantity { if val, ok := (*self)[ResourceCPU]; ok { return &val } return &resource.Quantity{Format: resource.DecimalSI} }
go
func (self *ResourceList) Cpu() *resource.Quantity { if val, ok := (*self)[ResourceCPU]; ok { return &val } return &resource.Quantity{Format: resource.DecimalSI} }
[ "func", "(", "self", "*", "ResourceList", ")", "Cpu", "(", ")", "*", "resource", ".", "Quantity", "{", "if", "val", ",", "ok", ":=", "(", "*", "self", ")", "[", "ResourceCPU", "]", ";", "ok", "{", "return", "&", "val", "\n", "}", "\n", "return", ...
// Returns the CPU limit if specified.
[ "Returns", "the", "CPU", "limit", "if", "specified", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/resource.go#L28-L33
train
Cpu returns the CPU resource.
[ 30522, 4569, 2278, 1006, 2969, 1008, 7692, 9863, 1007, 17368, 1006, 1007, 1008, 7692, 1012, 11712, 1063, 2065, 11748, 1010, 7929, 1024, 1027, 1006, 1008, 2969, 1007, 1031, 7692, 21906, 2226, 1033, 1025, 7929, 1063, 2709, 1004, 11748, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/controller/apis/config/zz_generated.deepcopy.go
DeepCopyInto
func (in *KubeCloudSharedConfiguration) DeepCopyInto(out *KubeCloudSharedConfiguration) { *out = *in out.CloudProvider = in.CloudProvider out.RouteReconciliationPeriod = in.RouteReconciliationPeriod out.NodeMonitorPeriod = in.NodeMonitorPeriod out.NodeSyncPeriod = in.NodeSyncPeriod return }
go
func (in *KubeCloudSharedConfiguration) DeepCopyInto(out *KubeCloudSharedConfiguration) { *out = *in out.CloudProvider = in.CloudProvider out.RouteReconciliationPeriod = in.RouteReconciliationPeriod out.NodeMonitorPeriod = in.NodeMonitorPeriod out.NodeSyncPeriod = in.NodeSyncPeriod return }
[ "func", "(", "in", "*", "KubeCloudSharedConfiguration", ")", "DeepCopyInto", "(", "out", "*", "KubeCloudSharedConfiguration", ")", "{", "*", "out", "=", "*", "in", "\n", "out", ".", "CloudProvider", "=", "in", ".", "CloudProvider", "\n", "out", ".", "RouteRe...
// 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", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/controller/apis/config/zz_generated.deepcopy.go#L86-L93
train
DeepCopyInto is an autogenerated deepcopy function copying the receiver creating a new KubeCloudSharedConfiguration.
[ 30522, 4569, 2278, 1006, 1999, 1008, 13970, 4783, 20464, 19224, 7377, 5596, 8663, 8873, 27390, 3370, 1007, 2784, 3597, 7685, 18447, 2080, 1006, 2041, 1008, 13970, 4783, 20464, 19224, 7377, 5596, 8663, 8873, 27390, 3370, 1007, 1063, 1008, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/scheduler/api/v1/zz_generated.deepcopy.go
DeepCopy
func (in *ServiceAntiAffinity) DeepCopy() *ServiceAntiAffinity { if in == nil { return nil } out := new(ServiceAntiAffinity) in.DeepCopyInto(out) return out }
go
func (in *ServiceAntiAffinity) DeepCopy() *ServiceAntiAffinity { if in == nil { return nil } out := new(ServiceAntiAffinity) in.DeepCopyInto(out) return out }
[ "func", "(", "in", "*", "ServiceAntiAffinity", ")", "DeepCopy", "(", ")", "*", "ServiceAntiAffinity", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "ServiceAntiAffinity", ")", "\n", "in", ".", "DeepCopyInto...
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAntiAffinity.
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ServiceAntiAffinity", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/scheduler/api/v1/zz_generated.deepcopy.go#L619-L626
train
DeepCopy is an autogenerated deepcopy function copying the receiver creating a new ServiceAntiAffinity.
[ 30522, 4569, 2278, 1006, 1999, 1008, 2326, 4630, 2401, 15379, 3012, 1007, 2784, 3597, 7685, 1006, 1007, 1008, 2326, 4630, 2401, 15379, 3012, 1063, 2065, 1999, 1027, 1027, 9152, 2140, 1063, 2709, 9152, 2140, 1065, 2041, 1024, 1027, 2047, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/tools/cache/delta_fifo.go
KeyOf
func (f *DeltaFIFO) KeyOf(obj interface{}) (string, error) { if d, ok := obj.(Deltas); ok { if len(d) == 0 { return "", KeyError{obj, ErrZeroLengthDeltasObject} } obj = d.Newest().Object } if d, ok := obj.(DeletedFinalStateUnknown); ok { return d.Key, nil } return f.keyFunc(obj) }
go
func (f *DeltaFIFO) KeyOf(obj interface{}) (string, error) { if d, ok := obj.(Deltas); ok { if len(d) == 0 { return "", KeyError{obj, ErrZeroLengthDeltasObject} } obj = d.Newest().Object } if d, ok := obj.(DeletedFinalStateUnknown); ok { return d.Key, nil } return f.keyFunc(obj) }
[ "func", "(", "f", "*", "DeltaFIFO", ")", "KeyOf", "(", "obj", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "if", "d", ",", "ok", ":=", "obj", ".", "(", "Deltas", ")", ";", "ok", "{", "if", "len", "(", "d", ")", "==", "...
// KeyOf exposes f's keyFunc, but also detects the key of a Deltas object or // DeletedFinalStateUnknown objects.
[ "KeyOf", "exposes", "f", "s", "keyFunc", "but", "also", "detects", "the", "key", "of", "a", "Deltas", "object", "or", "DeletedFinalStateUnknown", "objects", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/tools/cache/delta_fifo.go#L150-L161
train
KeyOf returns the key of the given object.
[ 30522, 4569, 2278, 1006, 1042, 1008, 7160, 8873, 14876, 1007, 3145, 11253, 1006, 27885, 3501, 8278, 1063, 1065, 1007, 1006, 5164, 1010, 7561, 1007, 1063, 2065, 1040, 1010, 7929, 1024, 1027, 27885, 3501, 1012, 1006, 7160, 2015, 1007, 1025, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/controller/controller_utils.go
DeletionObserved
func (u *UIDTrackingControllerExpectations) DeletionObserved(rcKey, deleteKey string) { u.uidStoreLock.Lock() defer u.uidStoreLock.Unlock() uids := u.GetUIDs(rcKey) if uids != nil && uids.Has(deleteKey) { klog.V(4).Infof("Controller %v received delete for pod %v", rcKey, deleteKey) u.ControllerExpectationsInte...
go
func (u *UIDTrackingControllerExpectations) DeletionObserved(rcKey, deleteKey string) { u.uidStoreLock.Lock() defer u.uidStoreLock.Unlock() uids := u.GetUIDs(rcKey) if uids != nil && uids.Has(deleteKey) { klog.V(4).Infof("Controller %v received delete for pod %v", rcKey, deleteKey) u.ControllerExpectationsInte...
[ "func", "(", "u", "*", "UIDTrackingControllerExpectations", ")", "DeletionObserved", "(", "rcKey", ",", "deleteKey", "string", ")", "{", "u", ".", "uidStoreLock", ".", "Lock", "(", ")", "\n", "defer", "u", ".", "uidStoreLock", ".", "Unlock", "(", ")", "\n\...
// DeletionObserved records the given deleteKey as a deletion, for the given rc.
[ "DeletionObserved", "records", "the", "given", "deleteKey", "as", "a", "deletion", "for", "the", "given", "rc", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/controller/controller_utils.go#L358-L368
train
DeletionObserved is called when a pod has been deleted
[ 30522, 4569, 2278, 1006, 1057, 1008, 21318, 11927, 22648, 6834, 8663, 13181, 10820, 10288, 5051, 25572, 9285, 1007, 3972, 20624, 17175, 5910, 25944, 1006, 22110, 14839, 1010, 3972, 12870, 14839, 5164, 1007, 1063, 1057, 1012, 21318, 5104, 1927...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/cloudprovider/providers/gce/gce_addresses.go
DeleteGlobalAddress
func (g *Cloud) DeleteGlobalAddress(name string) error { ctx, cancel := cloud.ContextWithCallTimeout() defer cancel() mc := newAddressMetricContext("delete", "") return mc.Observe(g.c.GlobalAddresses().Delete(ctx, meta.GlobalKey(name))) }
go
func (g *Cloud) DeleteGlobalAddress(name string) error { ctx, cancel := cloud.ContextWithCallTimeout() defer cancel() mc := newAddressMetricContext("delete", "") return mc.Observe(g.c.GlobalAddresses().Delete(ctx, meta.GlobalKey(name))) }
[ "func", "(", "g", "*", "Cloud", ")", "DeleteGlobalAddress", "(", "name", "string", ")", "error", "{", "ctx", ",", "cancel", ":=", "cloud", ".", "ContextWithCallTimeout", "(", ")", "\n", "defer", "cancel", "(", ")", "\n\n", "mc", ":=", "newAddressMetricCont...
// DeleteGlobalAddress deletes a global address by name.
[ "DeleteGlobalAddress", "deletes", "a", "global", "address", "by", "name", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/cloudprovider/providers/gce/gce_addresses.go#L54-L60
train
DeleteGlobalAddress deletes a global address.
[ 30522, 4569, 2278, 1006, 1043, 1008, 6112, 1007, 3972, 12870, 23296, 16429, 7911, 14141, 8303, 1006, 2171, 5164, 1007, 7561, 1063, 14931, 2595, 1010, 17542, 1024, 1027, 6112, 1012, 6123, 24415, 9289, 7096, 14428, 5833, 1006, 1007, 13366, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/zz_generated.conversion.go
Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec
func Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec(in *apiregistration.APIServiceSpec, out *APIServiceSpec, s conversion.Scope) error { return autoConvert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec(in, out, s) }
go
func Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec(in *apiregistration.APIServiceSpec, out *APIServiceSpec, s conversion.Scope) error { return autoConvert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec(in, out, s) }
[ "func", "Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec", "(", "in", "*", "apiregistration", ".", "APIServiceSpec", ",", "out", "*", "APIServiceSpec", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_apiregistration_APIServiceSpec...
// Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec is an autogenerated conversion function.
[ "Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/zz_generated.conversion.go#L248-L250
train
Convert_apiregistration_APIServiceSpec_To_v1_APIServiceSpec is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 17928, 2890, 24063, 8156, 1035, 17928, 8043, 7903, 2229, 5051, 2278, 1035, 2000, 1035, 1058, 2487, 1035, 17928, 8043, 7903, 2229, 5051, 2278, 1006, 1999, 1008, 17928, 2890, 24063, 8156, 1012, 17928, 8043, 790...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/util/certs/util.go
AssertCertificateHasCommonName
func AssertCertificateHasCommonName(t *testing.T, cert *x509.Certificate, commonName string) { if cert.Subject.CommonName != commonName { t.Errorf("cert has Subject.CommonName %s, expected %s", cert.Subject.CommonName, commonName) } }
go
func AssertCertificateHasCommonName(t *testing.T, cert *x509.Certificate, commonName string) { if cert.Subject.CommonName != commonName { t.Errorf("cert has Subject.CommonName %s, expected %s", cert.Subject.CommonName, commonName) } }
[ "func", "AssertCertificateHasCommonName", "(", "t", "*", "testing", ".", "T", ",", "cert", "*", "x509", ".", "Certificate", ",", "commonName", "string", ")", "{", "if", "cert", ".", "Subject", ".", "CommonName", "!=", "commonName", "{", "t", ".", "Errorf",...
// AssertCertificateHasCommonName is a utility function for kubeadm testing that asserts if a given certificate has // the expected SubjectCommonName
[ "AssertCertificateHasCommonName", "is", "a", "utility", "function", "for", "kubeadm", "testing", "that", "asserts", "if", "a", "given", "certificate", "has", "the", "expected", "SubjectCommonName" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/util/certs/util.go#L53-L57
train
AssertCertificateHasCommonName asserts that the certificate has the given commonName.
[ 30522, 4569, 2278, 20865, 17119, 3775, 8873, 16280, 14949, 9006, 8202, 18442, 1006, 1056, 1008, 5604, 1012, 1056, 1010, 8292, 5339, 1008, 1060, 12376, 2683, 1012, 8196, 1010, 2691, 18442, 5164, 1007, 1063, 2065, 8292, 5339, 1012, 3395, 1012...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/cmd/options/token.go
AddTokenFlag
func (bto *BootstrapTokenOptions) AddTokenFlag(fs *pflag.FlagSet) { fs.StringVar( &bto.TokenStr, TokenStr, "", "The token to use for establishing bidirectional trust between nodes and control-plane nodes. The format is [a-z0-9]{6}\\.[a-z0-9]{16} - e.g. abcdef.0123456789abcdef", ) }
go
func (bto *BootstrapTokenOptions) AddTokenFlag(fs *pflag.FlagSet) { fs.StringVar( &bto.TokenStr, TokenStr, "", "The token to use for establishing bidirectional trust between nodes and control-plane nodes. The format is [a-z0-9]{6}\\.[a-z0-9]{16} - e.g. abcdef.0123456789abcdef", ) }
[ "func", "(", "bto", "*", "BootstrapTokenOptions", ")", "AddTokenFlag", "(", "fs", "*", "pflag", ".", "FlagSet", ")", "{", "fs", ".", "StringVar", "(", "&", "bto", ".", "TokenStr", ",", "TokenStr", ",", "\"", "\"", ",", "\"", "\\\\", "\"", ",", ")", ...
// AddTokenFlag adds the --token flag to the given flagset
[ "AddTokenFlag", "adds", "the", "--", "token", "flag", "to", "the", "given", "flagset" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/cmd/options/token.go#L46-L51
train
AddTokenFlag adds a token flag to the specified FlagSet.
[ 30522, 4569, 2278, 1006, 18411, 2080, 1008, 6879, 6494, 13876, 11045, 3630, 16790, 2015, 1007, 5587, 18715, 2368, 10258, 8490, 1006, 1042, 2015, 1008, 1052, 10258, 8490, 1012, 9245, 3388, 1007, 1063, 1042, 2015, 1012, 5164, 10755, 1006, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/util/pkiutil/pki_helpers.go
PathsForCertAndKey
func PathsForCertAndKey(pkiPath, name string) (string, string) { return pathForCert(pkiPath, name), pathForKey(pkiPath, name) }
go
func PathsForCertAndKey(pkiPath, name string) (string, string) { return pathForCert(pkiPath, name), pathForKey(pkiPath, name) }
[ "func", "PathsForCertAndKey", "(", "pkiPath", ",", "name", "string", ")", "(", "string", ",", "string", ")", "{", "return", "pathForCert", "(", "pkiPath", ",", "name", ")", ",", "pathForKey", "(", "pkiPath", ",", "name", ")", "\n", "}" ]
// PathsForCertAndKey returns the paths for the certificate and key given the path and basename.
[ "PathsForCertAndKey", "returns", "the", "paths", "for", "the", "certificate", "and", "key", "given", "the", "path", "and", "basename", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/util/pkiutil/pki_helpers.go#L333-L335
train
PathsForCertAndKey returns the path to the certificate and key for the given path.
[ 30522, 4569, 2278, 10425, 14821, 13320, 4859, 14839, 1006, 1052, 3211, 15069, 1010, 2171, 5164, 1007, 1006, 5164, 1010, 5164, 1007, 1063, 2709, 4130, 14821, 5339, 1006, 1052, 3211, 15069, 1010, 2171, 1007, 1010, 4130, 29278, 14839, 1006, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/apply/apply.go
HasSupport
func (v *DryRunVerifier) HasSupport(gvk schema.GroupVersionKind) error { oapi, err := v.OpenAPIGetter.OpenAPISchema() if err != nil { return fmt.Errorf("failed to download openapi: %v", err) } supports, err := openapi.SupportsDryRun(oapi, gvk) if err != nil { // We assume that we couldn't find the type, then c...
go
func (v *DryRunVerifier) HasSupport(gvk schema.GroupVersionKind) error { oapi, err := v.OpenAPIGetter.OpenAPISchema() if err != nil { return fmt.Errorf("failed to download openapi: %v", err) } supports, err := openapi.SupportsDryRun(oapi, gvk) if err != nil { // We assume that we couldn't find the type, then c...
[ "func", "(", "v", "*", "DryRunVerifier", ")", "HasSupport", "(", "gvk", "schema", ".", "GroupVersionKind", ")", "error", "{", "oapi", ",", "err", ":=", "v", ".", "OpenAPIGetter", ".", "OpenAPISchema", "(", ")", "\n", "if", "err", "!=", "nil", "{", "ret...
// HasSupport verifies if the given gvk supports DryRun. An error is // returned if it doesn't.
[ "HasSupport", "verifies", "if", "the", "given", "gvk", "supports", "DryRun", ".", "An", "error", "is", "returned", "if", "it", "doesn", "t", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/apply/apply.go#L803-L824
train
HasSupport checks if the given gvk supports the dry - run.
[ 30522, 4569, 2278, 1006, 1058, 1008, 4318, 15532, 6299, 18095, 1007, 2038, 6342, 9397, 11589, 1006, 1043, 2615, 2243, 8040, 28433, 1012, 2177, 27774, 18824, 1007, 7561, 1063, 1051, 9331, 2072, 1010, 9413, 2099, 1024, 1027, 1058, 1012, 2330,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/registry/core/node/strategy.go
PrepareForCreate
func (nodeStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { node := obj.(*api.Node) // Nodes allow *all* fields, including status, to be set on create. if !utilfeature.DefaultFeatureGate.Enabled(features.DynamicKubeletConfig) { node.Spec.ConfigSource = nil node.Status.Config = nil } }
go
func (nodeStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { node := obj.(*api.Node) // Nodes allow *all* fields, including status, to be set on create. if !utilfeature.DefaultFeatureGate.Enabled(features.DynamicKubeletConfig) { node.Spec.ConfigSource = nil node.Status.Config = nil } }
[ "func", "(", "nodeStrategy", ")", "PrepareForCreate", "(", "ctx", "context", ".", "Context", ",", "obj", "runtime", ".", "Object", ")", "{", "node", ":=", "obj", ".", "(", "*", "api", ".", "Node", ")", "\n", "// Nodes allow *all* fields, including status, to b...
// PrepareForCreate clears fields that are not allowed to be set by end users on creation.
[ "PrepareForCreate", "clears", "fields", "that", "are", "not", "allowed", "to", "be", "set", "by", "end", "users", "on", "creation", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/registry/core/node/strategy.go#L67-L74
train
PrepareForCreate clears fields that are not allowed to be set by end users on creation.
[ 30522, 4569, 2278, 1006, 14164, 6494, 2618, 6292, 1007, 7374, 29278, 16748, 3686, 1006, 14931, 2595, 6123, 1012, 6123, 1010, 27885, 3501, 2448, 7292, 1012, 4874, 1007, 1063, 13045, 1024, 1027, 27885, 3501, 1012, 1006, 1008, 17928, 1012, 130...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/apis/well_known_labels.go
IsKubeletLabel
func IsKubeletLabel(key string) bool { if kubeletLabels.Has(key) { return true } namespace := getLabelNamespace(key) for allowedNamespace := range kubeletLabelNamespaces { if namespace == allowedNamespace || strings.HasSuffix(namespace, "."+allowedNamespace) { return true } } return false }
go
func IsKubeletLabel(key string) bool { if kubeletLabels.Has(key) { return true } namespace := getLabelNamespace(key) for allowedNamespace := range kubeletLabelNamespaces { if namespace == allowedNamespace || strings.HasSuffix(namespace, "."+allowedNamespace) { return true } } return false }
[ "func", "IsKubeletLabel", "(", "key", "string", ")", "bool", "{", "if", "kubeletLabels", ".", "Has", "(", "key", ")", "{", "return", "true", "\n", "}", "\n\n", "namespace", ":=", "getLabelNamespace", "(", "key", ")", "\n", "for", "allowedNamespace", ":=", ...
// IsKubeletLabel returns true if the label key is one that kubelets are allowed to set on their own Node object. // This checks if the key is in the KubeletLabels() list, or has a namespace in the KubeletLabelNamespaces() list.
[ "IsKubeletLabel", "returns", "true", "if", "the", "label", "key", "is", "one", "that", "kubelets", "are", "allowed", "to", "set", "on", "their", "own", "Node", "object", ".", "This", "checks", "if", "the", "key", "is", "in", "the", "KubeletLabels", "()", ...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/apis/well_known_labels.go#L78-L91
train
IsKubeletLabel returns true if the given key is a kubelet label
[ 30522, 4569, 2278, 2003, 5283, 8671, 3388, 20470, 2884, 1006, 3145, 5164, 1007, 22017, 2140, 1063, 2065, 13970, 8671, 3388, 20470, 9050, 1012, 2038, 1006, 3145, 1007, 1063, 2709, 2995, 1065, 3415, 15327, 1024, 1027, 2131, 20470, 2884, 18442...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
DeepCopyObject
func (in *APIGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
go
func (in *APIGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ "func", "(", "in", "*", "APIGroupList", ")", "DeepCopyObject", "(", ")", "runtime", ".", "Object", "{", "if", "c", ":=", "in", ".", "DeepCopy", "(", ")", ";", "c", "!=", "nil", "{", "return", "c", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
[ "DeepCopyObject", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "runtime", ".", "Object", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go#L89-L94
train
DeepCopyObject is an autogenerated deepcopy function copying the receiver creating a new APIGroupList.
[ 30522, 4569, 2278, 1006, 1999, 1008, 17928, 17058, 9863, 1007, 2784, 3597, 7685, 16429, 20614, 1006, 1007, 2448, 7292, 1012, 4874, 1063, 2065, 1039, 1024, 1027, 1999, 1012, 2784, 3597, 7685, 1006, 1007, 1025, 1039, 999, 1027, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/storage/zz_generated.deepcopy.go
DeepCopyInto
func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) { *out = *in if in.PersistentVolumeName != nil { in, out := &in.PersistentVolumeName, &out.PersistentVolumeName *out = new(string) **out = **in } return }
go
func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) { *out = *in if in.PersistentVolumeName != nil { in, out := &in.PersistentVolumeName, &out.PersistentVolumeName *out = new(string) **out = **in } return }
[ "func", "(", "in", "*", "VolumeAttachmentSource", ")", "DeepCopyInto", "(", "out", "*", "VolumeAttachmentSource", ")", "{", "*", "out", "=", "*", "in", "\n", "if", "in", ".", "PersistentVolumeName", "!=", "nil", "{", "in", ",", "out", ":=", "&", "in", ...
// 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", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/storage/zz_generated.deepcopy.go#L373-L381
train
DeepCopyInto is an autogenerated deepcopy function copying the receiver creating a new VolumeAttachmentSource.
[ 30522, 4569, 2278, 1006, 1999, 1008, 3872, 19321, 6776, 8163, 8162, 3401, 1007, 2784, 3597, 7685, 18447, 2080, 1006, 2041, 1008, 3872, 19321, 6776, 8163, 8162, 3401, 1007, 1063, 1008, 2041, 1027, 1008, 1999, 2065, 1999, 1012, 14516, 6767, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/logs/logs.go
RunLogs
func (o LogsOptions) RunLogs() error { requests, err := o.LogsForObject(o.RESTClientGetter, o.Object, o.Options, o.GetPodTimeout, o.AllContainers) if err != nil { return err } if o.Follow && len(requests) > 1 { if len(requests) > o.MaxFollowConcurency { return fmt.Errorf( "you are attempting to follow %...
go
func (o LogsOptions) RunLogs() error { requests, err := o.LogsForObject(o.RESTClientGetter, o.Object, o.Options, o.GetPodTimeout, o.AllContainers) if err != nil { return err } if o.Follow && len(requests) > 1 { if len(requests) > o.MaxFollowConcurency { return fmt.Errorf( "you are attempting to follow %...
[ "func", "(", "o", "LogsOptions", ")", "RunLogs", "(", ")", "error", "{", "requests", ",", "err", ":=", "o", ".", "LogsForObject", "(", "o", ".", "RESTClientGetter", ",", "o", ".", "Object", ",", "o", ".", "Options", ",", "o", ".", "GetPodTimeout", ",...
// RunLogs retrieves a pod log
[ "RunLogs", "retrieves", "a", "pod", "log" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/logs/logs.go#L301-L319
train
RunLogs runs the logs for the object.
[ 30522, 4569, 2278, 1006, 1051, 15664, 7361, 9285, 1007, 2448, 21197, 2015, 1006, 1007, 7561, 1063, 11186, 1010, 9413, 2099, 1024, 1027, 1051, 1012, 15664, 29278, 16429, 20614, 1006, 1051, 1012, 2717, 20464, 11638, 18150, 3334, 1010, 1051, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/dockershim/docker_image.go
ListImages
func (ds *dockerService) ListImages(_ context.Context, r *runtimeapi.ListImagesRequest) (*runtimeapi.ListImagesResponse, error) { filter := r.GetFilter() opts := dockertypes.ImageListOptions{} if filter != nil { if filter.GetImage().GetImage() != "" { opts.Filters = dockerfilters.NewArgs() opts.Filters.Add("...
go
func (ds *dockerService) ListImages(_ context.Context, r *runtimeapi.ListImagesRequest) (*runtimeapi.ListImagesResponse, error) { filter := r.GetFilter() opts := dockertypes.ImageListOptions{} if filter != nil { if filter.GetImage().GetImage() != "" { opts.Filters = dockerfilters.NewArgs() opts.Filters.Add("...
[ "func", "(", "ds", "*", "dockerService", ")", "ListImages", "(", "_", "context", ".", "Context", ",", "r", "*", "runtimeapi", ".", "ListImagesRequest", ")", "(", "*", "runtimeapi", ".", "ListImagesResponse", ",", "error", ")", "{", "filter", ":=", "r", "...
// This file implements methods in ImageManagerService. // ListImages lists existing images.
[ "This", "file", "implements", "methods", "in", "ImageManagerService", ".", "ListImages", "lists", "existing", "images", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/dockershim/docker_image.go#L36-L61
train
ListImages returns a list of images
[ 30522, 4569, 2278, 1006, 16233, 1008, 8946, 2545, 2121, 7903, 2063, 1007, 2862, 9581, 8449, 1006, 1035, 6123, 1012, 6123, 1010, 1054, 1008, 2448, 7292, 9331, 2072, 1012, 2862, 9581, 8449, 2890, 15500, 1007, 1006, 1008, 2448, 7292, 9331, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/create/create.go
NewCreateSubcommandOptions
func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions { return &CreateSubcommandOptions{ PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme), IOStreams: ioStreams, } }
go
func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions { return &CreateSubcommandOptions{ PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme), IOStreams: ioStreams, } }
[ "func", "NewCreateSubcommandOptions", "(", "ioStreams", "genericclioptions", ".", "IOStreams", ")", "*", "CreateSubcommandOptions", "{", "return", "&", "CreateSubcommandOptions", "{", "PrintFlags", ":", "genericclioptions", ".", "NewPrintFlags", "(", "\"", "\"", ")", ...
// NewCreateSubcommandOptions returns initialized CreateSubcommandOptions
[ "NewCreateSubcommandOptions", "returns", "initialized", "CreateSubcommandOptions" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/create/create.go#L374-L379
train
NewCreateSubcommandOptions returns a new CreateSubcommandOptions instance
[ 30522, 4569, 2278, 2047, 16748, 8520, 12083, 9006, 2386, 3527, 16790, 2015, 1006, 16380, 25379, 2015, 12391, 20464, 3695, 16790, 2015, 1012, 16380, 25379, 2015, 1007, 1008, 9005, 12083, 9006, 2386, 3527, 16790, 2015, 1063, 2709, 1004, 9005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kube-apiserver/app/server.go
CreateKubeAPIServer
func CreateKubeAPIServer(kubeAPIServerConfig *master.Config, delegateAPIServer genericapiserver.DelegationTarget, admissionPostStartHook genericapiserver.PostStartHookFunc) (*master.Master, error) { kubeAPIServer, err := kubeAPIServerConfig.Complete().New(delegateAPIServer) if err != nil { return nil, err } kube...
go
func CreateKubeAPIServer(kubeAPIServerConfig *master.Config, delegateAPIServer genericapiserver.DelegationTarget, admissionPostStartHook genericapiserver.PostStartHookFunc) (*master.Master, error) { kubeAPIServer, err := kubeAPIServerConfig.Complete().New(delegateAPIServer) if err != nil { return nil, err } kube...
[ "func", "CreateKubeAPIServer", "(", "kubeAPIServerConfig", "*", "master", ".", "Config", ",", "delegateAPIServer", "genericapiserver", ".", "DelegationTarget", ",", "admissionPostStartHook", "genericapiserver", ".", "PostStartHookFunc", ")", "(", "*", "master", ".", "Ma...
// CreateKubeAPIServer creates and wires a workable kube-apiserver
[ "CreateKubeAPIServer", "creates", "and", "wires", "a", "workable", "kube", "-", "apiserver" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kube-apiserver/app/server.go#L212-L221
train
CreateKubeAPIServer creates a new kube - apiserver
[ 30522, 4569, 2278, 3443, 5283, 4783, 9331, 17288, 6299, 1006, 13970, 4783, 9331, 17288, 6299, 8663, 8873, 2290, 1008, 3040, 1012, 9530, 8873, 2290, 1010, 11849, 9331, 17288, 6299, 12391, 30524, 9634, 19894, 14117, 2705, 14659, 12391, 9331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/scheduler/internal/cache/node_tree.go
Next
func (nt *NodeTree) Next() string { nt.mu.Lock() defer nt.mu.Unlock() if len(nt.zones) == 0 { return "" } numExhaustedZones := 0 for { if nt.zoneIndex >= len(nt.zones) { nt.zoneIndex = 0 } zone := nt.zones[nt.zoneIndex] nt.zoneIndex++ // We do not check the exhausted zones before calling next() on ...
go
func (nt *NodeTree) Next() string { nt.mu.Lock() defer nt.mu.Unlock() if len(nt.zones) == 0 { return "" } numExhaustedZones := 0 for { if nt.zoneIndex >= len(nt.zones) { nt.zoneIndex = 0 } zone := nt.zones[nt.zoneIndex] nt.zoneIndex++ // We do not check the exhausted zones before calling next() on ...
[ "func", "(", "nt", "*", "NodeTree", ")", "Next", "(", ")", "string", "{", "nt", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "nt", ".", "mu", ".", "Unlock", "(", ")", "\n", "if", "len", "(", "nt", ".", "zones", ")", "==", "0", "{", "ret...
// Next returns the name of the next node. NodeTree iterates over zones and in each zone iterates // over nodes in a round robin fashion.
[ "Next", "returns", "the", "name", "of", "the", "next", "node", ".", "NodeTree", "iterates", "over", "zones", "and", "in", "each", "zone", "iterates", "over", "nodes", "in", "a", "round", "robin", "fashion", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/scheduler/internal/cache/node_tree.go#L162-L187
train
Next returns the next node name in the node tree.
[ 30522, 4569, 30524, 1007, 5164, 1063, 23961, 1012, 14163, 1012, 5843, 1006, 1007, 13366, 2121, 23961, 1012, 14163, 1012, 19829, 1006, 1007, 2065, 18798, 1006, 23961, 1012, 10019, 1007, 1027, 1027, 1014, 1063, 2709, 1000, 1000, 1065, 16371, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/policy/v1beta1/zz_generated.conversion.go
Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions
func Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions(in *v1beta1.SELinuxStrategyOptions, out *policy.SELinuxStrategyOptions, s conversion.Scope) error { return autoConvert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions(in, out, s) }
go
func Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions(in *v1beta1.SELinuxStrategyOptions, out *policy.SELinuxStrategyOptions, s conversion.Scope) error { return autoConvert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions(in, out, s) }
[ "func", "Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions", "(", "in", "*", "v1beta1", ".", "SELinuxStrategyOptions", ",", "out", "*", "policy", ".", "SELinuxStrategyOptions", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "aut...
// Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions is an autogenerated conversion function.
[ "Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/policy/v1beta1/zz_generated.conversion.go#L721-L723
train
Convert_v1beta1_SELinuxStrategyOptions_To_policy_SELinuxStrategyOptions is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 20915, 27717, 1035, 7367, 4115, 5602, 20528, 2618, 6292, 7361, 9285, 1035, 2000, 1035, 3343, 1035, 7367, 4115, 5602, 20528, 2618, 6292, 7361, 9285, 1006, 1999, 1008, 1058, 2487, 20915, 27717, 1012...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/v1/zz_generated.conversion.go
Convert_core_PodSignature_To_v1_PodSignature
func Convert_core_PodSignature_To_v1_PodSignature(in *core.PodSignature, out *v1.PodSignature, s conversion.Scope) error { return autoConvert_core_PodSignature_To_v1_PodSignature(in, out, s) }
go
func Convert_core_PodSignature_To_v1_PodSignature(in *core.PodSignature, out *v1.PodSignature, s conversion.Scope) error { return autoConvert_core_PodSignature_To_v1_PodSignature(in, out, s) }
[ "func", "Convert_core_PodSignature_To_v1_PodSignature", "(", "in", "*", "core", ".", "PodSignature", ",", "out", "*", "v1", ".", "PodSignature", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_core_PodSignature_To_v1_PodSignature", "(",...
// Convert_core_PodSignature_To_v1_PodSignature is an autogenerated conversion function.
[ "Convert_core_PodSignature_To_v1_PodSignature", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/v1/zz_generated.conversion.go#L5546-L5548
train
Convert_core_PodSignature_To_v1_PodSignature is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 4563, 1035, 26723, 23773, 4017, 5397, 1035, 2000, 1035, 1058, 2487, 1035, 26723, 23773, 4017, 5397, 1006, 1999, 1008, 4563, 1012, 26723, 23773, 4017, 5397, 1010, 2041, 1008, 1058, 2487, 1012, 26723, 23773, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/dockershim/docker_container.go
createContainerLogSymlink
func (ds *dockerService) createContainerLogSymlink(containerID string) error { path, realPath, err := ds.getContainerLogPath(containerID) if err != nil { return fmt.Errorf("failed to get container %q log path: %v", containerID, err) } if path == "" { klog.V(5).Infof("Container %s log path isn't specified, will...
go
func (ds *dockerService) createContainerLogSymlink(containerID string) error { path, realPath, err := ds.getContainerLogPath(containerID) if err != nil { return fmt.Errorf("failed to get container %q log path: %v", containerID, err) } if path == "" { klog.V(5).Infof("Container %s log path isn't specified, will...
[ "func", "(", "ds", "*", "dockerService", ")", "createContainerLogSymlink", "(", "containerID", "string", ")", "error", "{", "path", ",", "realPath", ",", "err", ":=", "ds", ".", "getContainerLogPath", "(", "containerID", ")", "\n", "if", "err", "!=", "nil", ...
// createContainerLogSymlink creates the symlink for docker container log.
[ "createContainerLogSymlink", "creates", "the", "symlink", "for", "docker", "container", "log", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/dockershim/docker_container.go#L209-L245
train
createContainerLogSymlink creates a symbolic link to the container log file
[ 30522, 4569, 2278, 1006, 16233, 1008, 8946, 2545, 2121, 7903, 2063, 1007, 3443, 8663, 18249, 2121, 21197, 6508, 19968, 19839, 1006, 11661, 3593, 5164, 1007, 7561, 1063, 30524, 2102, 1012, 7561, 2546, 1006, 1000, 3478, 2000, 2131, 11661, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/kubernetes/typed/auditregistration/v1alpha1/fake/fake_auditsink.go
List
func (c *FakeAuditSinks) List(opts v1.ListOptions) (result *v1alpha1.AuditSinkList, err error) { obj, err := c.Fake. Invokes(testing.NewRootListAction(auditsinksResource, auditsinksKind, opts), &v1alpha1.AuditSinkList{}) if obj == nil { return nil, err } label, _, _ := testing.ExtractFromListOptions(opts) if ...
go
func (c *FakeAuditSinks) List(opts v1.ListOptions) (result *v1alpha1.AuditSinkList, err error) { obj, err := c.Fake. Invokes(testing.NewRootListAction(auditsinksResource, auditsinksKind, opts), &v1alpha1.AuditSinkList{}) if obj == nil { return nil, err } label, _, _ := testing.ExtractFromListOptions(opts) if ...
[ "func", "(", "c", "*", "FakeAuditSinks", ")", "List", "(", "opts", "v1", ".", "ListOptions", ")", "(", "result", "*", "v1alpha1", ".", "AuditSinkList", ",", "err", "error", ")", "{", "obj", ",", "err", ":=", "c", ".", "Fake", ".", "Invokes", "(", "...
// List takes label and field selectors, and returns the list of AuditSinks that match those selectors.
[ "List", "takes", "label", "and", "field", "selectors", "and", "returns", "the", "list", "of", "AuditSinks", "that", "match", "those", "selectors", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/kubernetes/typed/auditregistration/v1alpha1/fake/fake_auditsink.go#L51-L69
train
List takes label and field selectors and returns the list of AuditSinks that match those selectors.
[ 30522, 4569, 2278, 1006, 30524, 8275, 1012, 1999, 6767, 9681, 1006, 5604, 1012, 2047, 3217, 4140, 9863, 18908, 3258, 1006, 15727, 11493, 5705, 6072, 8162, 3401, 1010, 15727, 11493, 5705, 18824, 1010, 23569, 2015, 1007, 1010, 1004, 1058, 248...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/cloud-provider/volume/helpers/rounding.go
RoundUpToKiB
func RoundUpToKiB(size resource.Quantity) int64 { requestBytes := size.Value() return roundUpSize(requestBytes, KiB) }
go
func RoundUpToKiB(size resource.Quantity) int64 { requestBytes := size.Value() return roundUpSize(requestBytes, KiB) }
[ "func", "RoundUpToKiB", "(", "size", "resource", ".", "Quantity", ")", "int64", "{", "requestBytes", ":=", "size", ".", "Value", "(", ")", "\n", "return", "roundUpSize", "(", "requestBytes", ",", "KiB", ")", "\n", "}" ]
// RoundUpToKiB rounds up given quantity upto chunks of KiB
[ "RoundUpToKiB", "rounds", "up", "given", "quantity", "upto", "chunks", "of", "KiB" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/cloud-provider/volume/helpers/rounding.go#L73-L76
train
RoundUpToKiB rounds up the given quantity to KiB.
[ 30522, 4569, 2278, 2461, 29441, 23212, 2497, 1006, 2946, 7692, 1012, 11712, 1007, 20014, 21084, 1063, 5227, 3762, 4570, 1024, 1027, 2946, 1012, 3643, 1006, 1007, 2709, 2461, 22264, 4697, 1006, 5227, 3762, 4570, 1010, 11382, 2497, 1007, 1065...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/coordination/validation/validation.go
ValidateLease
func ValidateLease(lease *coordination.Lease) field.ErrorList { allErrs := validation.ValidateObjectMeta(&lease.ObjectMeta, true, validation.NameIsDNSSubdomain, field.NewPath("metadata")) allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...) return allErrs }
go
func ValidateLease(lease *coordination.Lease) field.ErrorList { allErrs := validation.ValidateObjectMeta(&lease.ObjectMeta, true, validation.NameIsDNSSubdomain, field.NewPath("metadata")) allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...) return allErrs }
[ "func", "ValidateLease", "(", "lease", "*", "coordination", ".", "Lease", ")", "field", ".", "ErrorList", "{", "allErrs", ":=", "validation", ".", "ValidateObjectMeta", "(", "&", "lease", ".", "ObjectMeta", ",", "true", ",", "validation", ".", "NameIsDNSSubdom...
// ValidateLease validates a Lease.
[ "ValidateLease", "validates", "a", "Lease", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/coordination/validation/validation.go#L26-L30
train
ValidateLease tests that the provided lease is valid.
[ 30522, 4569, 2278, 9398, 3686, 19738, 3366, 1006, 10084, 1008, 12016, 1012, 10084, 1007, 2492, 1012, 7561, 9863, 1063, 2035, 2121, 2869, 1024, 1027, 27354, 1012, 9398, 3686, 16429, 20614, 11368, 2050, 1006, 1004, 10084, 1012, 4874, 11368, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/volume/storageos/storageos_util.go
DeviceDir
func (u *storageosUtil) DeviceDir(b *storageosMounter) string { ctrl, err := u.api.Node(b.plugin.host.GetHostName()) if err != nil { klog.Warningf("node device path lookup failed: %v", err) return defaultDeviceDir } if ctrl == nil || ctrl.DeviceDir == "" { klog.Warningf("node device path not set, using defau...
go
func (u *storageosUtil) DeviceDir(b *storageosMounter) string { ctrl, err := u.api.Node(b.plugin.host.GetHostName()) if err != nil { klog.Warningf("node device path lookup failed: %v", err) return defaultDeviceDir } if ctrl == nil || ctrl.DeviceDir == "" { klog.Warningf("node device path not set, using defau...
[ "func", "(", "u", "*", "storageosUtil", ")", "DeviceDir", "(", "b", "*", "storageosMounter", ")", "string", "{", "ctrl", ",", "err", ":=", "u", ".", "api", ".", "Node", "(", "b", ".", "plugin", ".", "host", ".", "GetHostName", "(", ")", ")", "\n", ...
// Get the node's device path from the API, falling back to the default if not // specified.
[ "Get", "the", "node", "s", "device", "path", "from", "the", "API", "falling", "back", "to", "the", "default", "if", "not", "specified", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/volume/storageos/storageos_util.go#L294-L306
train
DeviceDir returns the device path of the node
[ 30522, 4569, 2278, 1006, 1057, 1008, 5527, 2891, 21823, 2140, 1007, 5080, 4305, 2099, 1006, 1038, 1008, 5527, 2891, 20048, 2121, 1007, 5164, 1063, 14931, 12190, 1010, 9413, 2099, 1024, 1027, 1057, 1012, 17928, 1012, 13045, 1006, 1038, 1012,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/scheduler/algorithm/predicates/metadata.go
NewPredicateMetadataFactory
func NewPredicateMetadataFactory(podLister algorithm.PodLister) PredicateMetadataProducer { factory := &PredicateMetadataFactory{ podLister, } return factory.GetMetadata }
go
func NewPredicateMetadataFactory(podLister algorithm.PodLister) PredicateMetadataProducer { factory := &PredicateMetadataFactory{ podLister, } return factory.GetMetadata }
[ "func", "NewPredicateMetadataFactory", "(", "podLister", "algorithm", ".", "PodLister", ")", "PredicateMetadataProducer", "{", "factory", ":=", "&", "PredicateMetadataFactory", "{", "podLister", ",", "}", "\n", "return", "factory", ".", "GetMetadata", "\n", "}" ]
// NewPredicateMetadataFactory creates a PredicateMetadataFactory.
[ "NewPredicateMetadataFactory", "creates", "a", "PredicateMetadataFactory", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/scheduler/algorithm/predicates/metadata.go#L127-L132
train
NewPredicateMetadataFactory creates a predicate metadata producer that will produce the predicate metadata for the given podLister.
[ 30522, 4569, 2278, 2047, 28139, 16467, 11368, 8447, 2696, 21450, 1006, 17491, 9863, 2121, 9896, 1012, 17491, 9863, 2121, 1007, 3653, 16467, 11368, 8447, 2696, 21572, 8566, 17119, 1063, 4713, 1024, 1027, 1004, 3653, 16467, 11368, 8447, 2696, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go
Int64KeySet
func Int64KeySet(theMap interface{}) Int64 { v := reflect.ValueOf(theMap) ret := Int64{} for _, keyValue := range v.MapKeys() { ret.Insert(keyValue.Interface().(int64)) } return ret }
go
func Int64KeySet(theMap interface{}) Int64 { v := reflect.ValueOf(theMap) ret := Int64{} for _, keyValue := range v.MapKeys() { ret.Insert(keyValue.Interface().(int64)) } return ret }
[ "func", "Int64KeySet", "(", "theMap", "interface", "{", "}", ")", "Int64", "{", "v", ":=", "reflect", ".", "ValueOf", "(", "theMap", ")", "\n", "ret", ":=", "Int64", "{", "}", "\n\n", "for", "_", ",", "keyValue", ":=", "range", "v", ".", "MapKeys", ...
// Int64KeySet creates a Int64 from a keys of a map[int64](? extends interface{}). // If the value passed in is not actually a map, this will panic.
[ "Int64KeySet", "creates", "a", "Int64", "from", "a", "keys", "of", "a", "map", "[", "int64", "]", "(", "?", "extends", "interface", "{}", ")", ".", "If", "the", "value", "passed", "in", "is", "not", "actually", "a", "map", "this", "will", "panic", "....
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go#L38-L46
train
Int64KeySet returns the key value pair of the map
[ 30522, 4569, 2278, 20014, 21084, 14839, 13462, 1006, 2068, 9331, 8278, 1063, 1065, 1007, 20014, 21084, 1063, 1058, 1024, 1027, 8339, 1012, 3643, 11253, 1006, 2068, 9331, 1007, 2128, 2102, 1024, 1027, 20014, 21084, 1063, 1065, 2005, 1035, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/policy/validation/validation.go
validateIDRanges
func validateIDRanges(fldPath *field.Path, min, max int64) field.ErrorList { allErrs := field.ErrorList{} // if 0 <= Min <= Max then we do not need to validate max. It is always greater than or // equal to 0 and Min. if min < 0 { allErrs = append(allErrs, field.Invalid(fldPath.Child("min"), min, "min cannot be ...
go
func validateIDRanges(fldPath *field.Path, min, max int64) field.ErrorList { allErrs := field.ErrorList{} // if 0 <= Min <= Max then we do not need to validate max. It is always greater than or // equal to 0 and Min. if min < 0 { allErrs = append(allErrs, field.Invalid(fldPath.Child("min"), min, "min cannot be ...
[ "func", "validateIDRanges", "(", "fldPath", "*", "field", ".", "Path", ",", "min", ",", "max", "int64", ")", "field", ".", "ErrorList", "{", "allErrs", ":=", "field", ".", "ErrorList", "{", "}", "\n\n", "// if 0 <= Min <= Max then we do not need to validate max. ...
// validateIDRanges ensures the range is valid.
[ "validateIDRanges", "ensures", "the", "range", "is", "valid", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/policy/validation/validation.go#L447-L463
train
validateIDRanges validates the given range of IDs.
[ 30522, 4569, 2278, 9398, 3686, 3593, 24388, 2229, 1006, 13109, 18927, 8988, 1008, 2492, 1012, 4130, 1010, 8117, 1010, 4098, 20014, 21084, 1007, 2492, 1012, 7561, 9863, 1063, 2035, 2121, 2869, 1024, 1027, 2492, 1012, 7561, 9863, 1063, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/fake_limitrange.go
DeleteCollection
func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOptions) _, err := c.Fake.Invokes(action, &corev1.LimitRangeList{}) return err }
go
func (c *FakeLimitRanges) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { action := testing.NewDeleteCollectionAction(limitrangesResource, c.ns, listOptions) _, err := c.Fake.Invokes(action, &corev1.LimitRangeList{}) return err }
[ "func", "(", "c", "*", "FakeLimitRanges", ")", "DeleteCollection", "(", "options", "*", "v1", ".", "DeleteOptions", ",", "listOptions", "v1", ".", "ListOptions", ")", "error", "{", "action", ":=", "testing", ".", "NewDeleteCollectionAction", "(", "limitrangesRes...
// DeleteCollection deletes a collection of objects.
[ "DeleteCollection", "deletes", "a", "collection", "of", "objects", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/kubernetes/typed/core/v1/fake/fake_limitrange.go#L112-L117
train
DeleteCollection takes listOptions and deletes all LimitRanges in the system. Returns an error if one occurs.
[ 30522, 4569, 2278, 1006, 1039, 1008, 8275, 17960, 4183, 24388, 2229, 1007, 3972, 12870, 26895, 18491, 1006, 7047, 1008, 1058, 2487, 1012, 3972, 12870, 7361, 9285, 1010, 2862, 7361, 9285, 1058, 2487, 1012, 2862, 7361, 9285, 1007, 7561, 1063,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/taint/utils.go
deleteTaintsByKey
func deleteTaintsByKey(taints []corev1.Taint, taintKey string) ([]corev1.Taint, bool) { newTaints := []corev1.Taint{} deleted := false for i := range taints { if taintKey == taints[i].Key { deleted = true continue } newTaints = append(newTaints, taints[i]) } return newTaints, deleted }
go
func deleteTaintsByKey(taints []corev1.Taint, taintKey string) ([]corev1.Taint, bool) { newTaints := []corev1.Taint{} deleted := false for i := range taints { if taintKey == taints[i].Key { deleted = true continue } newTaints = append(newTaints, taints[i]) } return newTaints, deleted }
[ "func", "deleteTaintsByKey", "(", "taints", "[", "]", "corev1", ".", "Taint", ",", "taintKey", "string", ")", "(", "[", "]", "corev1", ".", "Taint", ",", "bool", ")", "{", "newTaints", ":=", "[", "]", "corev1", ".", "Taint", "{", "}", "\n", "deleted"...
// DeleteTaintsByKey removes all the taints that have the same key to given taintKey
[ "DeleteTaintsByKey", "removes", "all", "the", "taints", "that", "have", "the", "same", "key", "to", "given", "taintKey" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/taint/utils.go#L194-L205
train
deleteTaintsByKey deletes a taint by its key.
[ 30522, 4569, 2278, 3972, 12870, 18249, 3215, 3762, 14839, 1006, 13843, 7666, 1031, 1033, 4563, 2615, 2487, 1012, 13843, 3372, 1010, 13843, 3372, 14839, 5164, 1007, 1006, 1031, 1033, 4563, 2615, 2487, 1012, 13843, 3372, 1010, 22017, 2140, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/storage/v1alpha1/zz_generated.conversion.go
Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList
func Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList(in *storage.VolumeAttachmentList, out *v1alpha1.VolumeAttachmentList, s conversion.Scope) error { return autoConvert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList(in, out, s) }
go
func Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList(in *storage.VolumeAttachmentList, out *v1alpha1.VolumeAttachmentList, s conversion.Scope) error { return autoConvert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList(in, out, s) }
[ "func", "Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList", "(", "in", "*", "storage", ".", "VolumeAttachmentList", ",", "out", "*", "v1alpha1", ".", "VolumeAttachmentList", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoCon...
// Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList is an autogenerated conversion function.
[ "Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/storage/v1alpha1/zz_generated.conversion.go#L152-L154
train
Convert_storage_VolumeAttachmentList_To_v1alpha1_VolumeAttachmentList is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 5527, 1035, 3872, 19321, 6776, 3672, 9863, 1035, 2000, 1035, 1058, 2487, 2389, 21890, 2487, 1035, 3872, 19321, 6776, 3672, 9863, 1006, 1999, 1008, 5527, 1012, 3872, 19321, 6776, 3672, 9863, 1010, 2041, 1008, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/zz_generated.deepcopy.go
DeepCopyObject
func (in *NodeProxyOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
go
func (in *NodeProxyOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ "func", "(", "in", "*", "NodeProxyOptions", ")", "DeepCopyObject", "(", ")", "runtime", ".", "Object", "{", "if", "c", ":=", "in", ".", "DeepCopy", "(", ")", ";", "c", "!=", "nil", "{", "return", "c", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
[ "DeepCopyObject", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "runtime", ".", "Object", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/zz_generated.deepcopy.go#L2363-L2368
train
DeepCopyObject is an autogenerated deepcopy function copying the receiver creating a new runtime. Object.
[ 30522, 4569, 2278, 1006, 1999, 1008, 13045, 21572, 18037, 7361, 9285, 1007, 2784, 3597, 7685, 16429, 20614, 1006, 1007, 2448, 7292, 1012, 4874, 1063, 2065, 1039, 1024, 1027, 1999, 1012, 2784, 3597, 7685, 1006, 1007, 1025, 1039, 999, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/master/tunneler/ssh.go
nodesSyncLoop
func (c *SSHTunneler) nodesSyncLoop() { // TODO (cjcullen) make this watch. go wait.Until(func() { addrs, err := c.getAddresses() klog.V(4).Infof("Calling update w/ addrs: %v", addrs) if err != nil { klog.Errorf("Failed to getAddresses: %v", err) } c.tunnels.Update(addrs) atomic.StoreInt64(&c.lastSync,...
go
func (c *SSHTunneler) nodesSyncLoop() { // TODO (cjcullen) make this watch. go wait.Until(func() { addrs, err := c.getAddresses() klog.V(4).Infof("Calling update w/ addrs: %v", addrs) if err != nil { klog.Errorf("Failed to getAddresses: %v", err) } c.tunnels.Update(addrs) atomic.StoreInt64(&c.lastSync,...
[ "func", "(", "c", "*", "SSHTunneler", ")", "nodesSyncLoop", "(", ")", "{", "// TODO (cjcullen) make this watch.", "go", "wait", ".", "Until", "(", "func", "(", ")", "{", "addrs", ",", "err", ":=", "c", ".", "getAddresses", "(", ")", "\n", "klog", ".", ...
// nodesSyncLoop lists nodes every 15 seconds, calling Update() on the TunnelList // each time (Update() is a noop if no changes are necessary).
[ "nodesSyncLoop", "lists", "nodes", "every", "15", "seconds", "calling", "Update", "()", "on", "the", "TunnelList", "each", "time", "(", "Update", "()", "is", "a", "noop", "if", "no", "changes", "are", "necessary", ")", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/master/tunneler/ssh.go#L191-L202
train
nodesSyncLoop is a goroutine that updates the tunnels for the nodes that are connected to the cluster.
[ 30522, 4569, 2278, 1006, 1039, 1008, 7020, 11039, 4609, 11877, 2121, 1007, 14164, 6508, 12273, 4135, 7361, 1006, 1007, 1063, 1013, 1013, 28681, 2080, 1006, 1039, 3501, 10841, 12179, 1007, 2191, 2023, 3422, 1012, 2175, 3524, 1012, 2127, 1006...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/volume/flexvolume/detacher-defaults.go
Detach
func (d *detacherDefaults) Detach(volumeName string, hostName types.NodeName) error { klog.Warning(logPrefix(d.plugin.flexVolumePlugin), "using default Detach for volume ", volumeName, ", host ", hostName) return nil }
go
func (d *detacherDefaults) Detach(volumeName string, hostName types.NodeName) error { klog.Warning(logPrefix(d.plugin.flexVolumePlugin), "using default Detach for volume ", volumeName, ", host ", hostName) return nil }
[ "func", "(", "d", "*", "detacherDefaults", ")", "Detach", "(", "volumeName", "string", ",", "hostName", "types", ".", "NodeName", ")", "error", "{", "klog", ".", "Warning", "(", "logPrefix", "(", "d", ".", "plugin", ".", "flexVolumePlugin", ")", ",", "\"...
// Detach is part of the volume.Detacher interface.
[ "Detach", "is", "part", "of", "the", "volume", ".", "Detacher", "interface", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/volume/flexvolume/detacher-defaults.go#L30-L33
train
Detach is a default detach function
[ 30522, 4569, 2278, 1006, 1040, 1008, 20010, 15395, 25547, 7011, 11314, 2015, 1007, 20010, 6776, 1006, 3872, 18442, 5164, 1010, 3677, 18442, 4127, 1012, 13045, 18442, 1007, 7561, 1063, 1047, 21197, 1012, 5432, 1006, 8833, 28139, 8873, 2595, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/tools/cache/controller.go
processLoop
func (c *controller) processLoop() { for { obj, err := c.config.Queue.Pop(PopProcessFunc(c.config.Process)) if err != nil { if err == FIFOClosedError { return } if c.config.RetryOnError { // This is the safe way to re-enqueue. c.config.Queue.AddIfNotPresent(obj) } } } }
go
func (c *controller) processLoop() { for { obj, err := c.config.Queue.Pop(PopProcessFunc(c.config.Process)) if err != nil { if err == FIFOClosedError { return } if c.config.RetryOnError { // This is the safe way to re-enqueue. c.config.Queue.AddIfNotPresent(obj) } } } }
[ "func", "(", "c", "*", "controller", ")", "processLoop", "(", ")", "{", "for", "{", "obj", ",", "err", ":=", "c", ".", "config", ".", "Queue", ".", "Pop", "(", "PopProcessFunc", "(", "c", ".", "config", ".", "Process", ")", ")", "\n", "if", "err"...
// processLoop drains the work queue. // TODO: Consider doing the processing in parallel. This will require a little thought // to make sure that we don't end up processing the same object multiple times // concurrently. // // TODO: Plumb through the stopCh here (and down to the queue) so that this can // actually exit...
[ "processLoop", "drains", "the", "work", "queue", ".", "TODO", ":", "Consider", "doing", "the", "processing", "in", "parallel", ".", "This", "will", "require", "a", "little", "thought", "to", "make", "sure", "that", "we", "don", "t", "end", "up", "processin...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/tools/cache/controller.go#L148-L161
train
processLoop is a loop that processes a single object.
[ 30522, 4569, 2278, 1006, 1039, 1008, 11486, 1007, 2832, 4135, 7361, 30524, 22747, 4609, 2278, 1006, 1039, 1012, 9530, 8873, 2290, 1012, 2832, 1007, 1007, 2065, 9413, 2099, 999, 1027, 9152, 2140, 1063, 2065, 9413, 2099, 1027, 1027, 10882, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go
AddAPIService
func (s *APIAggregator) AddAPIService(apiService *apiregistration.APIService) error { // if the proxyHandler already exists, it needs to be updated. The aggregation bits do not // since they are wired against listers because they require multiple resources to respond if proxyHandler, exists := s.proxyHandlers[apiSer...
go
func (s *APIAggregator) AddAPIService(apiService *apiregistration.APIService) error { // if the proxyHandler already exists, it needs to be updated. The aggregation bits do not // since they are wired against listers because they require multiple resources to respond if proxyHandler, exists := s.proxyHandlers[apiSer...
[ "func", "(", "s", "*", "APIAggregator", ")", "AddAPIService", "(", "apiService", "*", "apiregistration", ".", "APIService", ")", "error", "{", "// if the proxyHandler already exists, it needs to be updated. The aggregation bits do not", "// since they are wired against listers beca...
// AddAPIService adds an API service. It is not thread-safe, so only call it on one thread at a time please. // It's a slow moving API, so it's ok to run the controller on a single thread
[ "AddAPIService", "adds", "an", "API", "service", ".", "It", "is", "not", "thread", "-", "safe", "so", "only", "call", "it", "on", "one", "thread", "at", "a", "time", "please", ".", "It", "s", "a", "slow", "moving", "API", "so", "it", "s", "ok", "to...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/kube-aggregator/pkg/apiserver/apiserver.go#L238-L294
train
AddAPIService adds a new API service to the aggregation
[ 30522, 4569, 2278, 1006, 1055, 1008, 17928, 8490, 17603, 20697, 2953, 1007, 5587, 9331, 17288, 7903, 2063, 1006, 17928, 8043, 7903, 2063, 1008, 17928, 2890, 24063, 8156, 1012, 17928, 8043, 7903, 2063, 1007, 7561, 1063, 1013, 1013, 2065, 199...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/util/deployment/deployment.go
listReplicaSets
func listReplicaSets(deployment *appsv1.Deployment, getRSList rsListFunc) ([]*appsv1.ReplicaSet, error) { // TODO: Right now we list replica sets by their labels. We should list them by selector, i.e. the replica set's selector // should be a superset of the deployment's selector, see https://github.com/kuberne...
go
func listReplicaSets(deployment *appsv1.Deployment, getRSList rsListFunc) ([]*appsv1.ReplicaSet, error) { // TODO: Right now we list replica sets by their labels. We should list them by selector, i.e. the replica set's selector // should be a superset of the deployment's selector, see https://github.com/kuberne...
[ "func", "listReplicaSets", "(", "deployment", "*", "appsv1", ".", "Deployment", ",", "getRSList", "rsListFunc", ")", "(", "[", "]", "*", "appsv1", ".", "ReplicaSet", ",", "error", ")", "{", "// TODO: Right now we list replica sets by their labels. We should list them by...
// listReplicaSets returns a slice of RSes the given deployment targets. // Note that this does NOT attempt to reconcile ControllerRef (adopt/orphan), // because only the controller itself should do that. // However, it does filter out anything whose ControllerRef doesn't match.
[ "listReplicaSets", "returns", "a", "slice", "of", "RSes", "the", "given", "deployment", "targets", ".", "Note", "that", "this", "does", "NOT", "attempt", "to", "reconcile", "ControllerRef", "(", "adopt", "/", "orphan", ")", "because", "only", "the", "controlle...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/util/deployment/deployment.go#L117-L138
train
listReplicaSets lists all replica sets in the given deployment.
[ 30522, 4569, 2278, 2862, 2890, 24759, 5555, 13462, 2015, 1006, 10813, 1008, 18726, 2615, 2487, 1012, 10813, 1010, 2131, 2869, 9863, 12667, 9863, 11263, 12273, 1007, 1006, 1031, 1033, 1008, 18726, 2615, 2487, 1012, 15059, 13462, 1010, 7561, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/kuberuntime/kuberuntime_manager.go
Status
func (m *kubeGenericRuntimeManager) Status() (*kubecontainer.RuntimeStatus, error) { status, err := m.runtimeService.Status() if err != nil { return nil, err } return toKubeRuntimeStatus(status), nil }
go
func (m *kubeGenericRuntimeManager) Status() (*kubecontainer.RuntimeStatus, error) { status, err := m.runtimeService.Status() if err != nil { return nil, err } return toKubeRuntimeStatus(status), nil }
[ "func", "(", "m", "*", "kubeGenericRuntimeManager", ")", "Status", "(", ")", "(", "*", "kubecontainer", ".", "RuntimeStatus", ",", "error", ")", "{", "status", ",", "err", ":=", "m", ".", "runtimeService", ".", "Status", "(", ")", "\n", "if", "err", "!...
// Status returns the status of the runtime. An error is returned if the Status // function itself fails, nil otherwise.
[ "Status", "returns", "the", "status", "of", "the", "runtime", ".", "An", "error", "is", "returned", "if", "the", "Status", "function", "itself", "fails", "nil", "otherwise", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/kuberuntime/kuberuntime_manager.go#L286-L292
train
Status returns the runtime status of the runtime service.
[ 30522, 4569, 2278, 1006, 1049, 1008, 13970, 4783, 6914, 22420, 15532, 7292, 24805, 4590, 1007, 3570, 1006, 1007, 1006, 1008, 13970, 4783, 8663, 18249, 2121, 1012, 2448, 7292, 9153, 5809, 1010, 7561, 1007, 1063, 3570, 1010, 9413, 2099, 1024,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/rbac/v1alpha1/zz_generated.conversion.go
Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule
func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *v1alpha1.PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error { return autoConvert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in, out, s) }
go
func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *v1alpha1.PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error { return autoConvert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in, out, s) }
[ "func", "Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule", "(", "in", "*", "v1alpha1", ".", "PolicyRule", ",", "out", "*", "rbac", ".", "PolicyRule", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1alpha1_PolicyRule_To_rbac_PolicyRule", ...
// Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule is an autogenerated conversion function.
[ "Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/rbac/v1alpha1/zz_generated.conversion.go#L339-L341
train
Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 2389, 21890, 2487, 1035, 3343, 6820, 2571, 1035, 2000, 1035, 21144, 6305, 1035, 3343, 6820, 2571, 1006, 1999, 1008, 1058, 2487, 2389, 21890, 2487, 1012, 3343, 6820, 2571, 1010, 2041, 1008, 21144, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/preflight/checks.go
RunChecks
func RunChecks(checks []Checker, ww io.Writer, ignorePreflightErrors sets.String) error { var errsBuffer bytes.Buffer for _, c := range checks { name := c.Name() warnings, errs := c.Check() if setHasItemOrAll(ignorePreflightErrors, name) { // Decrease severity of errors to warnings for this check warnin...
go
func RunChecks(checks []Checker, ww io.Writer, ignorePreflightErrors sets.String) error { var errsBuffer bytes.Buffer for _, c := range checks { name := c.Name() warnings, errs := c.Check() if setHasItemOrAll(ignorePreflightErrors, name) { // Decrease severity of errors to warnings for this check warnin...
[ "func", "RunChecks", "(", "checks", "[", "]", "Checker", ",", "ww", "io", ".", "Writer", ",", "ignorePreflightErrors", "sets", ".", "String", ")", "error", "{", "var", "errsBuffer", "bytes", ".", "Buffer", "\n\n", "for", "_", ",", "c", ":=", "range", "...
// RunChecks runs each check, displays it's warnings/errors, and once all // are processed will exit if any errors occurred.
[ "RunChecks", "runs", "each", "check", "displays", "it", "s", "warnings", "/", "errors", "and", "once", "all", "are", "processed", "will", "exit", "if", "any", "errors", "occurred", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/preflight/checks.go#L1090-L1114
train
RunChecks runs all the checks in the list of checks.
[ 30522, 4569, 2278, 2448, 5403, 10603, 1006, 14148, 1031, 1033, 4638, 2121, 1010, 1059, 2860, 22834, 1012, 3213, 1010, 8568, 28139, 28968, 2121, 29165, 2015, 4520, 1012, 5164, 1007, 7561, 1063, 13075, 9413, 2869, 8569, 12494, 27507, 1012, 17...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kubeadm/app/apis/kubeadm/v1beta1/zz_generated.conversion.go
Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta
func Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta(in *ImageMeta, out *kubeadm.ImageMeta, s conversion.Scope) error { return autoConvert_v1beta1_ImageMeta_To_kubeadm_ImageMeta(in, out, s) }
go
func Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta(in *ImageMeta, out *kubeadm.ImageMeta, s conversion.Scope) error { return autoConvert_v1beta1_ImageMeta_To_kubeadm_ImageMeta(in, out, s) }
[ "func", "Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta", "(", "in", "*", "ImageMeta", ",", "out", "*", "kubeadm", ".", "ImageMeta", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1beta1_ImageMeta_To_kubeadm_ImageMeta", "(", "in", ","...
// Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta is an autogenerated conversion function.
[ "Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kubeadm/app/apis/kubeadm/v1beta1/zz_generated.conversion.go#L648-L650
train
Convert_v1beta1_ImageMeta_To_kubeadm_ImageMeta is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 20915, 27717, 1035, 3746, 11368, 2050, 1035, 2000, 1035, 13970, 4783, 4215, 2213, 1035, 3746, 11368, 2050, 1006, 1999, 1008, 3746, 11368, 2050, 1010, 2041, 1008, 13970, 4783, 4215, 2213, 1012, 374...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/cmd/util/editor/editoptions.go
writeTo
func (h *editHeader) writeTo(w io.Writer, editMode EditMode) error { if editMode == ApplyEditMode { fmt.Fprint(w, `# Please edit the 'last-applied-configuration' annotations below. # Lines beginning with a '#' will be ignored, and an empty file will abort the edit. # `) } else { fmt.Fprint(w, `# Please edit the o...
go
func (h *editHeader) writeTo(w io.Writer, editMode EditMode) error { if editMode == ApplyEditMode { fmt.Fprint(w, `# Please edit the 'last-applied-configuration' annotations below. # Lines beginning with a '#' will be ignored, and an empty file will abort the edit. # `) } else { fmt.Fprint(w, `# Please edit the o...
[ "func", "(", "h", "*", "editHeader", ")", "writeTo", "(", "w", "io", ".", "Writer", ",", "editMode", "EditMode", ")", "error", "{", "if", "editMode", "==", "ApplyEditMode", "{", "fmt", ".", "Fprint", "(", "w", ",", "`# Please edit the 'last-applied-configura...
// writeTo outputs the current header information into a stream
[ "writeTo", "outputs", "the", "current", "header", "information", "into", "a", "stream" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/cmd/util/editor/editoptions.go#L706-L732
train
writeTo writes the header to the given io. Writer.
[ 30522, 4569, 2278, 1006, 1044, 1008, 13257, 13775, 2121, 1007, 4339, 3406, 1006, 1059, 22834, 1012, 3213, 1010, 10086, 5302, 3207, 10086, 5302, 3207, 1007, 7561, 1063, 2065, 10086, 5302, 3207, 1027, 1027, 6611, 2098, 4183, 5302, 3207, 1063,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubectl/generated/bindata.go
AssetNames
func AssetNames() []string { names := make([]string, 0, len(_bindata)) for name := range _bindata { names = append(names, name) } return names }
go
func AssetNames() []string { names := make([]string, 0, len(_bindata)) for name := range _bindata { names = append(names, name) } return names }
[ "func", "AssetNames", "(", ")", "[", "]", "string", "{", "names", ":=", "make", "(", "[", "]", "string", ",", "0", ",", "len", "(", "_bindata", ")", ")", "\n", "for", "name", ":=", "range", "_bindata", "{", "names", "=", "append", "(", "names", "...
// AssetNames returns the names of the assets.
[ "AssetNames", "returns", "the", "names", "of", "the", "assets", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubectl/generated/bindata.go#L22639-L22645
train
AssetNames returns a list of asset names
[ 30522, 4569, 2278, 11412, 18442, 2015, 1006, 1007, 1031, 1033, 5164, 1063, 3415, 1024, 1027, 2191, 1006, 1031, 1033, 5164, 1010, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1/fake/fake_clusterrolebinding.go
List
func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *rbacv1.ClusterRoleBindingList, err error) { obj, err := c.Fake. Invokes(testing.NewRootListAction(clusterrolebindingsResource, clusterrolebindingsKind, opts), &rbacv1.ClusterRoleBindingList{}) if obj == nil { return nil, err } label, _, _ := ...
go
func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *rbacv1.ClusterRoleBindingList, err error) { obj, err := c.Fake. Invokes(testing.NewRootListAction(clusterrolebindingsResource, clusterrolebindingsKind, opts), &rbacv1.ClusterRoleBindingList{}) if obj == nil { return nil, err } label, _, _ := ...
[ "func", "(", "c", "*", "FakeClusterRoleBindings", ")", "List", "(", "opts", "v1", ".", "ListOptions", ")", "(", "result", "*", "rbacv1", ".", "ClusterRoleBindingList", ",", "err", "error", ")", "{", "obj", ",", "err", ":=", "c", ".", "Fake", ".", "Invo...
// List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors.
[ "List", "takes", "label", "and", "field", "selectors", "and", "returns", "the", "list", "of", "ClusterRoleBindings", "that", "match", "those", "selectors", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1/fake/fake_clusterrolebinding.go#L51-L69
train
List takes label and field selectors and returns the list of ClusterRoleBindings that match those selectors.
[ 30522, 4569, 2278, 1006, 1039, 1008, 8275, 20464, 19966, 2121, 13153, 15878, 22254, 8613, 1007, 2862, 1006, 23569, 2015, 1058, 2487, 1012, 2862, 7361, 9285, 1007, 1006, 2765, 1008, 21144, 6305, 2615, 2487, 1012, 9324, 13153, 15878, 22254, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/v1/zz_generated.conversion.go
Convert_v1_NamespaceList_To_core_NamespaceList
func Convert_v1_NamespaceList_To_core_NamespaceList(in *v1.NamespaceList, out *core.NamespaceList, s conversion.Scope) error { return autoConvert_v1_NamespaceList_To_core_NamespaceList(in, out, s) }
go
func Convert_v1_NamespaceList_To_core_NamespaceList(in *v1.NamespaceList, out *core.NamespaceList, s conversion.Scope) error { return autoConvert_v1_NamespaceList_To_core_NamespaceList(in, out, s) }
[ "func", "Convert_v1_NamespaceList_To_core_NamespaceList", "(", "in", "*", "v1", ".", "NamespaceList", ",", "out", "*", "core", ".", "NamespaceList", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1_NamespaceList_To_core_NamespaceList", ...
// Convert_v1_NamespaceList_To_core_NamespaceList is an autogenerated conversion function.
[ "Convert_v1_NamespaceList_To_core_NamespaceList", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/v1/zz_generated.conversion.go#L4213-L4215
train
Convert_v1_NamespaceList_To_core_NamespaceList is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 1035, 3415, 15327, 9863, 1035, 2000, 1035, 4563, 1035, 3415, 15327, 9863, 1006, 1999, 1008, 1058, 2487, 1012, 3415, 15327, 9863, 1010, 2041, 1008, 4563, 1012, 3415, 15327, 9863, 1010, 1055, 7584, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/informers/rbac/v1/clusterrole.go
NewFilteredClusterRoleInformer
func NewFilteredClusterRoleInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( &cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Obj...
go
func NewFilteredClusterRoleInformer(client kubernetes.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( &cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Obj...
[ "func", "NewFilteredClusterRoleInformer", "(", "client", "kubernetes", ".", "Interface", ",", "resyncPeriod", "time", ".", "Duration", ",", "indexers", "cache", ".", "Indexers", ",", "tweakListOptions", "internalinterfaces", ".", "TweakListOptionsFunc", ")", "cache", ...
// NewFilteredClusterRoleInformer constructs a new informer for ClusterRole type. // Always prefer using an informer factory to get a shared informer instead of getting an independent // one. This reduces memory footprint and number of connections to the server.
[ "NewFilteredClusterRoleInformer", "constructs", "a", "new", "informer", "for", "ClusterRole", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", "."...
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/informers/rbac/v1/clusterrole.go#L56-L76
train
NewFilteredClusterRoleInformer constructs a new informer for ClusterRole type. Always prefer using an informer factory to get a shared informer instead of getting an independent one. This reduces memory footprint and number of connections to the server.
[ 30522, 4569, 2278, 2047, 8873, 21928, 2098, 20464, 19966, 2121, 13153, 12377, 14192, 2121, 1006, 7396, 13970, 5677, 7159, 2229, 1012, 8278, 1010, 24501, 6038, 21906, 11124, 7716, 2051, 1012, 9367, 1010, 5950, 2545, 17053, 1012, 5950, 2545, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/apps/v1/zz_generated.conversion.go
Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus
func Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus(in *apps.ReplicaSetStatus, out *v1.ReplicaSetStatus, s conversion.Scope) error { return autoConvert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus(in, out, s) }
go
func Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus(in *apps.ReplicaSetStatus, out *v1.ReplicaSetStatus, s conversion.Scope) error { return autoConvert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus(in, out, s) }
[ "func", "Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus", "(", "in", "*", "apps", ".", "ReplicaSetStatus", ",", "out", "*", "v1", ".", "ReplicaSetStatus", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_apps_ReplicaSetStatus_To_v1_R...
// Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus is an autogenerated conversion function.
[ "Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/apps/v1/zz_generated.conversion.go#L1046-L1048
train
Convert_apps_ReplicaSetStatus_To_v1_ReplicaSetStatus is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 18726, 1035, 15059, 13462, 9153, 5809, 1035, 2000, 1035, 1058, 2487, 1035, 15059, 13462, 9153, 5809, 1006, 1999, 1008, 18726, 1012, 15059, 13462, 9153, 5809, 1010, 2041, 1008, 1058, 2487, 1012, 15059, 13462, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/client-go/scale/scheme/autoscalingv1/zz_generated.conversion.go
Convert_scheme_Scale_To_v1_Scale
func Convert_scheme_Scale_To_v1_Scale(in *scheme.Scale, out *v1.Scale, s conversion.Scope) error { return autoConvert_scheme_Scale_To_v1_Scale(in, out, s) }
go
func Convert_scheme_Scale_To_v1_Scale(in *scheme.Scale, out *v1.Scale, s conversion.Scope) error { return autoConvert_scheme_Scale_To_v1_Scale(in, out, s) }
[ "func", "Convert_scheme_Scale_To_v1_Scale", "(", "in", "*", "scheme", ".", "Scale", ",", "out", "*", "v1", ".", "Scale", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_scheme_Scale_To_v1_Scale", "(", "in", ",", "out", ",", "s...
// Convert_scheme_Scale_To_v1_Scale is an autogenerated conversion function.
[ "Convert_scheme_Scale_To_v1_Scale", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/client-go/scale/scheme/autoscalingv1/zz_generated.conversion.go#L108-L110
train
Convert_scheme_Scale_To_v1_Scale is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 5679, 1035, 4094, 1035, 2000, 1035, 1058, 2487, 1035, 4094, 1006, 1999, 1008, 5679, 1012, 4094, 1010, 2041, 1008, 1058, 2487, 1012, 4094, 1010, 1055, 7584, 1012, 9531, 1007, 7561, 1063, 2709, 8285, 8663, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/coordination/v1/zz_generated.conversion.go
Convert_v1_Lease_To_coordination_Lease
func Convert_v1_Lease_To_coordination_Lease(in *v1.Lease, out *coordination.Lease, s conversion.Scope) error { return autoConvert_v1_Lease_To_coordination_Lease(in, out, s) }
go
func Convert_v1_Lease_To_coordination_Lease(in *v1.Lease, out *coordination.Lease, s conversion.Scope) error { return autoConvert_v1_Lease_To_coordination_Lease(in, out, s) }
[ "func", "Convert_v1_Lease_To_coordination_Lease", "(", "in", "*", "v1", ".", "Lease", ",", "out", "*", "coordination", ".", "Lease", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1_Lease_To_coordination_Lease", "(", "in", ",", ...
// Convert_v1_Lease_To_coordination_Lease is an autogenerated conversion function.
[ "Convert_v1_Lease_To_coordination_Lease", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/coordination/v1/zz_generated.conversion.go#L82-L84
train
Convert_v1_Lease_To_coordination_Lease is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 1035, 10084, 1035, 2000, 1035, 12016, 1035, 10084, 1006, 1999, 1008, 1058, 2487, 1012, 10084, 1010, 2041, 1008, 12016, 1012, 10084, 1010, 1055, 7584, 1012, 9531, 1007, 7561, 1063, 2709, 8285, 8663...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/util/tolerations/tolerations.go
ConvertTolerationToAMap
func ConvertTolerationToAMap(in []api.Toleration) map[key]api.Toleration { out := map[key]api.Toleration{} for i := range in { out[key{in[i].Key, in[i].Effect}] = in[i] } return out }
go
func ConvertTolerationToAMap(in []api.Toleration) map[key]api.Toleration { out := map[key]api.Toleration{} for i := range in { out[key{in[i].Key, in[i].Effect}] = in[i] } return out }
[ "func", "ConvertTolerationToAMap", "(", "in", "[", "]", "api", ".", "Toleration", ")", "map", "[", "key", "]", "api", ".", "Toleration", "{", "out", ":=", "map", "[", "key", "]", "api", ".", "Toleration", "{", "}", "\n", "for", "i", ":=", "range", ...
// ConvertTolerationToAMap converts toleration list into a map[string]api.Toleration
[ "ConvertTolerationToAMap", "converts", "toleration", "list", "into", "a", "map", "[", "string", "]", "api", ".", "Toleration" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/util/tolerations/tolerations.go#L96-L102
train
ConvertTolerationToAMap converts a slice of tolerations to a map of key - > value pairs
[ 30522, 4569, 2278, 10463, 3406, 3917, 3370, 3406, 8067, 2361, 1006, 1999, 1031, 1033, 17928, 1012, 2000, 3917, 3370, 1007, 4949, 1031, 3145, 1033, 17928, 1012, 2000, 3917, 3370, 1063, 2041, 1024, 1027, 4949, 1031, 3145, 1033, 17928, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/quota/v1/evaluator/core/registry.go
NewEvaluators
func NewEvaluators(f quota.ListerForResourceFunc) []quota.Evaluator { // these evaluators have special logic result := []quota.Evaluator{ NewPodEvaluator(f, clock.RealClock{}), NewServiceEvaluator(f), NewPersistentVolumeClaimEvaluator(f), } // these evaluators require an alias for backwards compatibility for...
go
func NewEvaluators(f quota.ListerForResourceFunc) []quota.Evaluator { // these evaluators have special logic result := []quota.Evaluator{ NewPodEvaluator(f, clock.RealClock{}), NewServiceEvaluator(f), NewPersistentVolumeClaimEvaluator(f), } // these evaluators require an alias for backwards compatibility for...
[ "func", "NewEvaluators", "(", "f", "quota", ".", "ListerForResourceFunc", ")", "[", "]", "quota", ".", "Evaluator", "{", "// these evaluators have special logic", "result", ":=", "[", "]", "quota", ".", "Evaluator", "{", "NewPodEvaluator", "(", "f", ",", "clock"...
// NewEvaluators returns the list of static evaluators that manage more than counts
[ "NewEvaluators", "returns", "the", "list", "of", "static", "evaluators", "that", "manage", "more", "than", "counts" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/quota/v1/evaluator/core/registry.go#L36-L49
train
NewEvaluators returns a list of evaluators that can be used to create new evaluators.
[ 30522, 4569, 2278, 2047, 13331, 7630, 18926, 1006, 1042, 20563, 1012, 27177, 29278, 6072, 8162, 3401, 11263, 12273, 1007, 1031, 1033, 20563, 1012, 9345, 7630, 8844, 1063, 1013, 1013, 2122, 9345, 7630, 18926, 2031, 2569, 7961, 2765, 1024, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/v1/zz_generated.conversion.go
Convert_v1_ContainerImage_To_core_ContainerImage
func Convert_v1_ContainerImage_To_core_ContainerImage(in *v1.ContainerImage, out *core.ContainerImage, s conversion.Scope) error { return autoConvert_v1_ContainerImage_To_core_ContainerImage(in, out, s) }
go
func Convert_v1_ContainerImage_To_core_ContainerImage(in *v1.ContainerImage, out *core.ContainerImage, s conversion.Scope) error { return autoConvert_v1_ContainerImage_To_core_ContainerImage(in, out, s) }
[ "func", "Convert_v1_ContainerImage_To_core_ContainerImage", "(", "in", "*", "v1", ".", "ContainerImage", ",", "out", "*", "core", ".", "ContainerImage", ",", "s", "conversion", ".", "Scope", ")", "error", "{", "return", "autoConvert_v1_ContainerImage_To_core_ContainerIm...
// Convert_v1_ContainerImage_To_core_ContainerImage is an autogenerated conversion function.
[ "Convert_v1_ContainerImage_To_core_ContainerImage", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/v1/zz_generated.conversion.go#L2847-L2849
train
Convert_v1_ContainerImage_To_core_ContainerImage is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 1035, 11661, 9581, 3351, 1035, 2000, 1035, 4563, 1035, 11661, 9581, 3351, 1006, 1999, 1008, 1058, 2487, 1012, 11661, 9581, 3351, 1010, 2041, 1008, 4563, 1012, 11661, 9581, 3351, 1010, 1055, 7584, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/volume/util/volumepathhandler/volume_path_handler.go
UnmapDevice
func (v VolumePathHandler) UnmapDevice(mapPath string, linkName string) error { if len(mapPath) == 0 { return fmt.Errorf("Failed to unmap device from map path. mapPath is empty") } klog.V(5).Infof("UnmapDevice: mapPath %s", mapPath) klog.V(5).Infof("UnmapDevice: linkName %s", linkName) // Check symbolic link ex...
go
func (v VolumePathHandler) UnmapDevice(mapPath string, linkName string) error { if len(mapPath) == 0 { return fmt.Errorf("Failed to unmap device from map path. mapPath is empty") } klog.V(5).Infof("UnmapDevice: mapPath %s", mapPath) klog.V(5).Infof("UnmapDevice: linkName %s", linkName) // Check symbolic link ex...
[ "func", "(", "v", "VolumePathHandler", ")", "UnmapDevice", "(", "mapPath", "string", ",", "linkName", "string", ")", "error", "{", "if", "len", "(", "mapPath", ")", "==", "0", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n"...
// UnmapDevice removes a symbolic link associated to block device under specified map path
[ "UnmapDevice", "removes", "a", "symbolic", "link", "associated", "to", "block", "device", "under", "specified", "map", "path" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/volume/util/volumepathhandler/volume_path_handler.go#L113-L130
train
UnmapDevice unmaps a device from the specified mapPath and linkName.
[ 30522, 4569, 2278, 1006, 1058, 3872, 15069, 11774, 3917, 1007, 4895, 2863, 17299, 17726, 2063, 1006, 4949, 15069, 5164, 1010, 4957, 18442, 5164, 1007, 7561, 1063, 2065, 18798, 1006, 4949, 15069, 1007, 1027, 1027, 1014, 1063, 2709, 4718, 210...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/controller/serviceaccount/serviceaccounts_controller.go
serviceAccountDeleted
func (c *ServiceAccountsController) serviceAccountDeleted(obj interface{}) { sa, ok := obj.(*v1.ServiceAccount) if !ok { tombstone, ok := obj.(cache.DeletedFinalStateUnknown) if !ok { utilruntime.HandleError(fmt.Errorf("Couldn't get object from tombstone %#v", obj)) return } sa, ok = tombstone.Obj.(*v1....
go
func (c *ServiceAccountsController) serviceAccountDeleted(obj interface{}) { sa, ok := obj.(*v1.ServiceAccount) if !ok { tombstone, ok := obj.(cache.DeletedFinalStateUnknown) if !ok { utilruntime.HandleError(fmt.Errorf("Couldn't get object from tombstone %#v", obj)) return } sa, ok = tombstone.Obj.(*v1....
[ "func", "(", "c", "*", "ServiceAccountsController", ")", "serviceAccountDeleted", "(", "obj", "interface", "{", "}", ")", "{", "sa", ",", "ok", ":=", "obj", ".", "(", "*", "v1", ".", "ServiceAccount", ")", "\n", "if", "!", "ok", "{", "tombstone", ",", ...
// serviceAccountDeleted reacts to a ServiceAccount deletion by recreating a default ServiceAccount in the namespace if needed
[ "serviceAccountDeleted", "reacts", "to", "a", "ServiceAccount", "deletion", "by", "recreating", "a", "default", "ServiceAccount", "in", "the", "namespace", "if", "needed" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/controller/serviceaccount/serviceaccounts_controller.go#L130-L145
train
serviceAccountDeleted is called when a service account is deleted
[ 30522, 4569, 2278, 1006, 1039, 1008, 2326, 6305, 3597, 16671, 9363, 3372, 26611, 1007, 2326, 6305, 3597, 16671, 9247, 12870, 2094, 1006, 27885, 3501, 8278, 1063, 1065, 1007, 1063, 7842, 1010, 7929, 1024, 1027, 27885, 3501, 1012, 1006, 1008,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/zz_generated.conversion.go
Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus
func Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus(in *CustomResourceSubresourceStatus, out *apiextensions.CustomResourceSubresourceStatus, s conversion.Scope) error { return autoConvert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourc...
go
func Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus(in *CustomResourceSubresourceStatus, out *apiextensions.CustomResourceSubresourceStatus, s conversion.Scope) error { return autoConvert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourc...
[ "func", "Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus", "(", "in", "*", "CustomResourceSubresourceStatus", ",", "out", "*", "apiextensions", ".", "CustomResourceSubresourceStatus", ",", "s", "conversion", ".", "Scope", ")", "err...
// Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus is an autogenerated conversion function.
[ "Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus", "is", "an", "autogenerated", "conversion", "function", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/zz_generated.conversion.go#L664-L666
train
Convert_v1beta1_CustomResourceSubresourceStatus_To_apiextensions_CustomResourceSubresourceStatus is an autogenerated conversion function.
[ 30522, 4569, 2278, 10463, 1035, 1058, 2487, 20915, 27717, 1035, 7661, 6072, 8162, 9623, 12083, 6072, 8162, 9623, 29336, 2271, 1035, 2000, 1035, 17928, 10288, 29048, 2015, 1035, 7661, 6072, 8162, 9623, 12083, 6072, 8162, 9623, 29336, 2271, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kube-apiserver/app/server.go
buildGenericConfig
func buildGenericConfig( s *options.ServerRunOptions, proxyTransport *http.Transport, ) ( genericConfig *genericapiserver.Config, versionedInformers clientgoinformers.SharedInformerFactory, insecureServingInfo *genericapiserver.DeprecatedInsecureServingInfo, serviceResolver aggregatorapiserver.ServiceResolver, p...
go
func buildGenericConfig( s *options.ServerRunOptions, proxyTransport *http.Transport, ) ( genericConfig *genericapiserver.Config, versionedInformers clientgoinformers.SharedInformerFactory, insecureServingInfo *genericapiserver.DeprecatedInsecureServingInfo, serviceResolver aggregatorapiserver.ServiceResolver, p...
[ "func", "buildGenericConfig", "(", "s", "*", "options", ".", "ServerRunOptions", ",", "proxyTransport", "*", "http", ".", "Transport", ",", ")", "(", "genericConfig", "*", "genericapiserver", ".", "Config", ",", "versionedInformers", "clientgoinformers", ".", "Sha...
// BuildGenericConfig takes the master server options and produces the genericapiserver.Config associated with it
[ "BuildGenericConfig", "takes", "the", "master", "server", "options", "and", "produces", "the", "genericapiserver", ".", "Config", "associated", "with", "it" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kube-apiserver/app/server.go#L368-L497
train
buildGenericConfig builds a generic config for the cluster
[ 30522, 4569, 2278, 3857, 6914, 22420, 8663, 8873, 2290, 1006, 1055, 1008, 7047, 1012, 8241, 15532, 7361, 9285, 1010, 24540, 6494, 3619, 6442, 1008, 8299, 1012, 3665, 1010, 1007, 1006, 12391, 8663, 8873, 2290, 1008, 12391, 9331, 17288, 6299,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
cmd/kube-apiserver/app/server.go
CreateServerChain
func CreateServerChain(completedOptions completedServerRunOptions, stopCh <-chan struct{}) (*genericapiserver.GenericAPIServer, error) { nodeTunneler, proxyTransport, err := CreateNodeDialer(completedOptions) if err != nil { return nil, err } kubeAPIServerConfig, insecureServingInfo, serviceResolver, pluginIniti...
go
func CreateServerChain(completedOptions completedServerRunOptions, stopCh <-chan struct{}) (*genericapiserver.GenericAPIServer, error) { nodeTunneler, proxyTransport, err := CreateNodeDialer(completedOptions) if err != nil { return nil, err } kubeAPIServerConfig, insecureServingInfo, serviceResolver, pluginIniti...
[ "func", "CreateServerChain", "(", "completedOptions", "completedServerRunOptions", ",", "stopCh", "<-", "chan", "struct", "{", "}", ")", "(", "*", "genericapiserver", ".", "GenericAPIServer", ",", "error", ")", "{", "nodeTunneler", ",", "proxyTransport", ",", "err...
// CreateServerChain creates the apiservers connected via delegation.
[ "CreateServerChain", "creates", "the", "apiservers", "connected", "via", "delegation", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/cmd/kube-apiserver/app/server.go#L156-L209
train
CreateServerChain creates a new server chain
[ 30522, 4569, 2278, 9005, 2121, 6299, 24925, 2078, 1006, 2949, 7361, 9285, 2949, 8043, 6299, 15532, 7361, 9285, 1010, 2644, 2818, 1026, 1011, 9212, 2358, 6820, 6593, 1063, 1065, 1007, 1006, 1008, 12391, 9331, 17288, 6299, 1012, 12391, 9331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/api/extensions/v1beta1/zz_generated.deepcopy.go
DeepCopyObject
func (in *NetworkPolicyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
go
func (in *NetworkPolicyList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
[ "func", "(", "in", "*", "NetworkPolicyList", ")", "DeepCopyObject", "(", ")", "runtime", ".", "Object", "{", "if", "c", ":=", "in", ".", "DeepCopy", "(", ")", ";", "c", "!=", "nil", "{", "return", "c", "\n", "}", "\n", "return", "nil", "\n", "}" ]
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
[ "DeepCopyObject", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "runtime", ".", "Object", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/api/extensions/v1beta1/zz_generated.deepcopy.go#L851-L856
train
DeepCopyObject is an autogenerated deepcopy function copying the receiver creating a new runtime. Object.
[ 30522, 4569, 2278, 1006, 1999, 1008, 2897, 18155, 2594, 8516, 2923, 1007, 2784, 3597, 7685, 16429, 20614, 1006, 1007, 2448, 7292, 1012, 4874, 1063, 2065, 1039, 1024, 1027, 1999, 1012, 2784, 3597, 7685, 1006, 1007, 1025, 1039, 999, 1027, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/controller/volume/persistentvolume/pv_controller.go
newRecyclerEventRecorder
func (ctrl *PersistentVolumeController) newRecyclerEventRecorder(volume *v1.PersistentVolume) recyclerclient.RecycleEventRecorder { return func(eventtype, message string) { ctrl.eventRecorder.Eventf(volume, eventtype, events.RecyclerPod, "Recycler pod: %s", message) } }
go
func (ctrl *PersistentVolumeController) newRecyclerEventRecorder(volume *v1.PersistentVolume) recyclerclient.RecycleEventRecorder { return func(eventtype, message string) { ctrl.eventRecorder.Eventf(volume, eventtype, events.RecyclerPod, "Recycler pod: %s", message) } }
[ "func", "(", "ctrl", "*", "PersistentVolumeController", ")", "newRecyclerEventRecorder", "(", "volume", "*", "v1", ".", "PersistentVolume", ")", "recyclerclient", ".", "RecycleEventRecorder", "{", "return", "func", "(", "eventtype", ",", "message", "string", ")", ...
// newRecyclerEventRecorder returns a RecycleEventRecorder that sends all events // to given volume.
[ "newRecyclerEventRecorder", "returns", "a", "RecycleEventRecorder", "that", "sends", "all", "events", "to", "given", "volume", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/controller/volume/persistentvolume/pv_controller.go#L1636-L1640
train
newRecyclerEventRecorder returns a new recyclerclient. RecycleEventRecorder
[ 30522, 4569, 2278, 1006, 14931, 12190, 1008, 14516, 6767, 12942, 8586, 12162, 26611, 1007, 2047, 2890, 23490, 2890, 15338, 2890, 27108, 4063, 1006, 3872, 1008, 1058, 2487, 1012, 14516, 6767, 12942, 2063, 1007, 28667, 2100, 14321, 11890, 8751,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/component-base/cli/flag/langle_separated_map_string_string.go
Set
func (m *LangleSeparatedMapStringString) Set(value string) error { if m.Map == nil { return fmt.Errorf("no target (nil pointer to map[string]string)") } if !m.initialized || *m.Map == nil { // clear default values, or allocate if no existing map *m.Map = make(map[string]string) m.initialized = true } for _...
go
func (m *LangleSeparatedMapStringString) Set(value string) error { if m.Map == nil { return fmt.Errorf("no target (nil pointer to map[string]string)") } if !m.initialized || *m.Map == nil { // clear default values, or allocate if no existing map *m.Map = make(map[string]string) m.initialized = true } for _...
[ "func", "(", "m", "*", "LangleSeparatedMapStringString", ")", "Set", "(", "value", "string", ")", "error", "{", "if", "m", ".", "Map", "==", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "!", "m", ".", "...
// Set implements github.com/spf13/pflag.Value
[ "Set", "implements", "github", ".", "com", "/", "spf13", "/", "pflag", ".", "Value" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/component-base/cli/flag/langle_separated_map_string_string.go#L50-L72
train
Set sets the value of a map
[ 30522, 4569, 2278, 1006, 1049, 1008, 11374, 24527, 28689, 3064, 2863, 4523, 18886, 3070, 3367, 4892, 1007, 2275, 1006, 3643, 5164, 1007, 7561, 1063, 2065, 1049, 1012, 4949, 1027, 1027, 9152, 2140, 1063, 2709, 4718, 2102, 1012, 7561, 30524, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder.go
BuildSwagger
func BuildSwagger(crd *apiextensions.CustomResourceDefinition, version string) (*spec.Swagger, error) { var schema *spec.Schema s, err := apiextensions.GetSchemaForVersion(crd, version) if err != nil { return nil, err } if s != nil && s.OpenAPIV3Schema != nil { schema, err = ConvertJSONSchemaPropsToOpenAPIv2Sc...
go
func BuildSwagger(crd *apiextensions.CustomResourceDefinition, version string) (*spec.Swagger, error) { var schema *spec.Schema s, err := apiextensions.GetSchemaForVersion(crd, version) if err != nil { return nil, err } if s != nil && s.OpenAPIV3Schema != nil { schema, err = ConvertJSONSchemaPropsToOpenAPIv2Sc...
[ "func", "BuildSwagger", "(", "crd", "*", "apiextensions", ".", "CustomResourceDefinition", ",", "version", "string", ")", "(", "*", "spec", ".", "Swagger", ",", "error", ")", "{", "var", "schema", "*", "spec", ".", "Schema", "\n", "s", ",", "err", ":=", ...
// BuildSwagger builds swagger for the given crd in the given version
[ "BuildSwagger", "builds", "swagger", "for", "the", "given", "crd", "in", "the", "given", "version" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder.go#L60-L134
train
BuildSwagger builds a swagger spec.
[ 30522, 4569, 2278, 16473, 4213, 13327, 1006, 13675, 2094, 1008, 17928, 10288, 29048, 2015, 1012, 7661, 6072, 8162, 22119, 16294, 22753, 1010, 2544, 5164, 1007, 1006, 1008, 28699, 1012, 25430, 27609, 1010, 7561, 1007, 1063, 13075, 8040, 28433,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/kubelet/custommetrics/custom_metrics.go
GetCAdvisorCustomMetricsDefinitionPath
func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) { // Assumes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory // mounted as a volume. Custom Metrics definition is expected to be in "definition.json". if container.VolumeMounts != nil { for...
go
func GetCAdvisorCustomMetricsDefinitionPath(container *v1.Container) (*string, error) { // Assumes that the container has Custom Metrics enabled if it has "/etc/custom-metrics" directory // mounted as a volume. Custom Metrics definition is expected to be in "definition.json". if container.VolumeMounts != nil { for...
[ "func", "GetCAdvisorCustomMetricsDefinitionPath", "(", "container", "*", "v1", ".", "Container", ")", "(", "*", "string", ",", "error", ")", "{", "// Assumes that the container has Custom Metrics enabled if it has \"/etc/custom-metrics\" directory", "// mounted as a volume. Custom ...
// Alpha implementation. // Returns a path to a cAdvisor-specific custom metrics configuration.
[ "Alpha", "implementation", ".", "Returns", "a", "path", "to", "a", "cAdvisor", "-", "specific", "custom", "metrics", "configuration", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/kubelet/custommetrics/custom_metrics.go#L34-L48
train
GetCAdvisorCustomMetricsDefinitionPath returns the path to the custom metrics definition file for the container.
[ 30522, 4569, 2278, 2131, 3540, 2094, 11365, 2953, 7874, 20389, 12589, 16150, 12879, 5498, 3508, 15069, 1006, 11661, 1008, 1058, 2487, 1012, 11661, 1007, 1006, 1008, 5164, 1010, 7561, 1007, 1063, 1013, 1013, 15980, 2008, 1996, 11661, 2038, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/cloudprovider/providers/openstack/openstack_routes.go
ListRoutes
func (r *Routes) ListRoutes(ctx context.Context, clusterName string) ([]*cloudprovider.Route, error) { klog.V(4).Infof("ListRoutes(%v)", clusterName) nodeNamesByAddr := make(map[string]types.NodeName) err := foreachServer(r.compute, servers.ListOpts{}, func(srv *servers.Server) (bool, error) { addrs, err := nodeA...
go
func (r *Routes) ListRoutes(ctx context.Context, clusterName string) ([]*cloudprovider.Route, error) { klog.V(4).Infof("ListRoutes(%v)", clusterName) nodeNamesByAddr := make(map[string]types.NodeName) err := foreachServer(r.compute, servers.ListOpts{}, func(srv *servers.Server) (bool, error) { addrs, err := nodeA...
[ "func", "(", "r", "*", "Routes", ")", "ListRoutes", "(", "ctx", "context", ".", "Context", ",", "clusterName", "string", ")", "(", "[", "]", "*", "cloudprovider", ".", "Route", ",", "error", ")", "{", "klog", ".", "V", "(", "4", ")", ".", "Infof", ...
// ListRoutes lists all managed routes that belong to the specified clusterName
[ "ListRoutes", "lists", "all", "managed", "routes", "that", "belong", "to", "the", "specified", "clusterName" ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/cloudprovider/providers/openstack/openstack_routes.go#L59-L101
train
ListRoutes returns a list of routes
[ 30522, 4569, 2278, 1006, 1054, 1008, 5847, 1007, 2862, 22494, 4570, 1006, 14931, 2595, 6123, 1012, 6123, 1010, 9324, 18442, 5164, 1007, 1006, 1031, 1033, 1008, 6112, 21572, 17258, 2121, 1012, 2799, 1010, 7561, 1007, 1063, 1047, 21197, 1012,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/apis/core/zz_generated.deepcopy.go
DeepCopyInto
func (in *RangeAllocation) DeepCopyInto(out *RangeAllocation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Data != nil { in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) } return }
go
func (in *RangeAllocation) DeepCopyInto(out *RangeAllocation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Data != nil { in, out := &in.Data, &out.Data *out = make([]byte, len(*in)) copy(*out, *in) } return }
[ "func", "(", "in", "*", "RangeAllocation", ")", "DeepCopyInto", "(", "out", "*", "RangeAllocation", ")", "{", "*", "out", "=", "*", "in", "\n", "out", ".", "TypeMeta", "=", "in", ".", "TypeMeta", "\n", "in", ".", "ObjectMeta", ".", "DeepCopyInto", "(",...
// 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", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/apis/core/zz_generated.deepcopy.go#L3973-L3983
train
DeepCopyInto is an autogenerated deepcopy function copying the receiver creating a new RangeAllocation.
[ 30522, 4569, 2278, 1006, 1999, 1008, 2846, 8095, 23909, 1007, 2784, 3597, 7685, 18447, 2080, 1006, 2041, 1008, 2846, 8095, 23909, 1007, 1063, 30524, 1012, 4874, 11368, 2050, 1012, 2784, 3597, 7685, 18447, 2080, 1006, 1004, 2041, 1012, 4874,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/scheduler/internal/cache/fake/fake_cache.go
FilteredList
func (c *Cache) FilteredList(filter algorithm.PodFilter, selector labels.Selector) ([]*v1.Pod, error) { return nil, nil }
go
func (c *Cache) FilteredList(filter algorithm.PodFilter, selector labels.Selector) ([]*v1.Pod, error) { return nil, nil }
[ "func", "(", "c", "*", "Cache", ")", "FilteredList", "(", "filter", "algorithm", ".", "PodFilter", ",", "selector", "labels", ".", "Selector", ")", "(", "[", "]", "*", "v1", ".", "Pod", ",", "error", ")", "{", "return", "nil", ",", "nil", "\n", "}"...
// FilteredList is a fake method for testing.
[ "FilteredList", "is", "a", "fake", "method", "for", "testing", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/scheduler/internal/cache/fake/fake_cache.go#L86-L88
train
ListPod returns a list of pods that match the given filter.
[ 30522, 4569, 2278, 1006, 1039, 1008, 17053, 1007, 21839, 9863, 1006, 11307, 9896, 1012, 17491, 8873, 21928, 1010, 27000, 10873, 1012, 27000, 1007, 1006, 1031, 1033, 1008, 1058, 2487, 1012, 17491, 1010, 7561, 1007, 1063, 2709, 9152, 2140, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kubernetes/kubernetes
pkg/controller/nodelifecycle/node_lifecycle_controller.go
ReducedQPSFunc
func (nc *Controller) ReducedQPSFunc(nodeNum int) float32 { if int32(nodeNum) > nc.largeClusterThreshold { return nc.secondaryEvictionLimiterQPS } return 0 }
go
func (nc *Controller) ReducedQPSFunc(nodeNum int) float32 { if int32(nodeNum) > nc.largeClusterThreshold { return nc.secondaryEvictionLimiterQPS } return 0 }
[ "func", "(", "nc", "*", "Controller", ")", "ReducedQPSFunc", "(", "nodeNum", "int", ")", "float32", "{", "if", "int32", "(", "nodeNum", ")", ">", "nc", ".", "largeClusterThreshold", "{", "return", "nc", ".", "secondaryEvictionLimiterQPS", "\n", "}", "\n", ...
// ReducedQPSFunc returns the QPS for when a the cluster is large make // evictions slower, if they're small stop evictions altogether.
[ "ReducedQPSFunc", "returns", "the", "QPS", "for", "when", "a", "the", "cluster", "is", "large", "make", "evictions", "slower", "if", "they", "re", "small", "stop", "evictions", "altogether", "." ]
6a8a3682919652ae668c389ed2f60efb770eed03
https://github.com/kubernetes/kubernetes/blob/6a8a3682919652ae668c389ed2f60efb770eed03/pkg/controller/nodelifecycle/node_lifecycle_controller.go#L1135-L1140
train
ReducedQPSFunc returns the QPS of the node.
[ 30522, 4569, 2278, 1006, 13316, 1008, 11486, 1007, 4359, 4160, 4523, 11263, 12273, 1006, 13045, 19172, 20014, 1007, 14257, 16703, 1063, 2065, 20014, 16703, 1006, 13045, 19172, 1007, 1028, 13316, 1012, 2312, 20464, 19966, 8743, 28362, 22231, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...