- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 133 for defaulting (0.15 sec)
-
pkg/env/var.go
result, ok := os.LookupEnv(v.Name) if !ok { result = v.DefaultValue } b, err := strconv.ParseBool(result) if err != nil { log.Warnf("Invalid environment variable value `%s`, expecting true/false, defaulting to %v", result, v.DefaultValue) b, _ = strconv.ParseBool(v.DefaultValue) } return b, ok } // Get retrieves the value of the environment variable.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go
// TODO: treat like decoding {} from JSON with defaulting return nil, nil, fmt.Errorf("empty data") case len(originalData) < prefixLen || !bytes.Equal(s.prefix, originalData[:prefixLen]): return nil, nil, fmt.Errorf("provided data does not appear to be a protobuf message, expected prefix %v", s.prefix) case len(originalData) == prefixLen: // TODO: treat like decoding {} from JSON with defaulting return nil, nil, fmt.Errorf("empty body") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:23 UTC 2022 - 17.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/initconfiguration.go
// Populate the .Token field with a random value if unset // We do this at this layer, and not the API defaulting layer // because of possible security concerns, and more practically // because we can't return errors in the API object defaulting // process but here we can. for i, bt := range *cfg { if bt.Token != nil && len(bt.Token.String()) > 0 { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 12:41:16 UTC 2024 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_factory.go
// and conversion wrappers to define preferred internal and external versions. In the future, // as the internal version is used less, callers may instead use a defaulting serializer and // only convert objects which are shared internally (Status, common API machinery). // // Mutators can be passed to change the CodecFactoryOptions before construction of the factory.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 12.6K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage.go
type Before struct { *api.Service } type After struct { *api.Service } // defaultOnRead sets interlinked fields that were not previously set on read. // We can't do this in the normal defaulting path because that same logic // applies on Get, Create, and Update, but we need to distinguish between them. // // This will be called on both Service and ServiceList types.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:33 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/apis/core/fuzzer/fuzzer.go
}, func(j *core.Binding, c fuzz.Continue) { c.Fuzz(&j.ObjectMeta) j.Target.Name = c.RandString() }, func(j *core.ReplicationController, c fuzz.Continue) { c.FuzzNoCustom(j) // match defaulting if j.Spec.Template != nil { if len(j.Labels) == 0 { j.Labels = j.Spec.Template.Labels } if len(j.Spec.Selector) == 0 { j.Spec.Selector = j.Spec.Template.Labels } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0) -
pkg/apis/extensions/v1beta1/defaults_test.go
SchedulerName: v1.DefaultSchedulerName, }, } tests := []struct { original *extensionsv1beta1.DaemonSet expected *extensionsv1beta1.DaemonSet }{ { // Labels change/defaulting test. original: &extensionsv1beta1.DaemonSet{ Spec: extensionsv1beta1.DaemonSetSpec{ Template: defaultTemplate, }, }, expected: &extensionsv1beta1.DaemonSet{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 21.2K bytes - Viewed (0) -
pkg/api/testing/defaulting_test.go
for { if iter > *roundtrip.FuzzIters { if !expectedChanged || changedOnce { break } if iter > 300 { t.Errorf("expected %s to trigger defaulting due to fuzzing", gvk) break } // if we expected defaulting, continue looping until the fuzzer gives us one // at worst, we will timeout } iter++ src, err := scheme.New(gvk) if err != nil { t.Fatal(err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 20.3K bytes - Viewed (0) -
pkg/controlplane/apiserver/options/options.go
// Use (ServiceAccountSigningKeyFile != "") as a proxy to the user enabling // TokenRequest functionality. This defaulting was convenient, but messed up // a lot of people when they rotated their serving cert with no idea it was // connected to their service account keys. We are taking this opportunity to // remove this problematic defaulting. if completed.ServiceAccountSigningKeyFile == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 12:19:56 UTC 2024 - 15.4K bytes - Viewed (0) -
pkg/proxy/apis/config/types.go
// healthzBindAddress is the IP address and port for the health check server to // serve on, defaulting to "0.0.0.0:10256" (if bindAddress is unset or IPv4), or // "[::]:10256" (if bindAddress is IPv6). HealthzBindAddress string // metricsBindAddress is the IP address and port for the metrics server to serve // on, defaulting to "127.0.0.1:10249" (if bindAddress is unset or IPv4), or
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 13K bytes - Viewed (0)