Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 967 for Iflag (0.06 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/api_enablement.go

    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    	"strings"
    
    	"github.com/spf13/pflag"
    
    	"k8s.io/apiserver/pkg/server"
    	"k8s.io/apiserver/pkg/server/resourceconfig"
    	serverstore "k8s.io/apiserver/pkg/server/storage"
    	cliflag "k8s.io/component-base/cli/flag"
    )
    
    // APIEnablementOptions contains the options for which resources to turn on and off.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 09:22:37 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. cmd/kube-controller-manager/app/options/hpacontroller.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    
    	"github.com/spf13/pflag"
    
    	poautosclerconfig "k8s.io/kubernetes/pkg/controller/podautoscaler/config"
    )
    
    // HPAControllerOptions holds the HPAController options.
    type HPAControllerOptions struct {
    	*poautosclerconfig.HPAControllerConfiguration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 19 09:49:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/apply.go

    		}
    
    		if len(versionSkewErrs.Skippable) > 0 {
    			// Return the error if the user hasn't specified the --force flag
    			if !flags.force {
    				return errors.Errorf("the --version argument is invalid due to these errors:\n\n%v\nCan be bypassed if you pass the --force flag",
    					kubeadmutil.FormatErrMsg(versionSkewErrs.Skippable))
    			}
    			// Soft errors found, but --force was specified
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/reset.go

    limitations under the License.
    */
    
    package cmd
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"path"
    
    	"github.com/lithammer/dedent"
    	"github.com/spf13/cobra"
    	flag "github.com/spf13/pflag"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	clientset "k8s.io/client-go/kubernetes"
    	"k8s.io/klog/v2"
    
    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 12:26:58 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. cmd/kube-controller-manager/app/options/endpointslicemirroringcontroller.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    
    	"github.com/spf13/pflag"
    
    	"k8s.io/kubernetes/cmd/kube-controller-manager/names"
    	endpointslicemirroringconfig "k8s.io/kubernetes/pkg/controller/endpointslicemirroring/config"
    )
    
    const (
    	mirroringMinConcurrentServiceEndpointSyncs = 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 19 13:01:01 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/util/cmdutil_test.go

    		name      string
    		flag      string
    		cfg       interface{}
    		flagValue interface{}
    		expected  interface{}
    	}{
    		{
    			name:      "string: config is overridden by the flag",
    			flag:      "foo",
    			cfg:       "foo_cfg",
    			flagValue: "foo_flag",
    			expected:  "foo_flag",
    		},
    		{
    			name:      "bool: config is overridden by the flag",
    			flag:      "bar",
    			cfg:       true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/net/port_range.go

    	}
    	return fmt.Sprintf("%d-%d", pr.Base, pr.Base+pr.Size-1)
    }
    
    // Set parses a string of the form "value", "min-max", or "min+offset", inclusive at both ends, and
    // sets the PortRange from it.  This is part of the flag.Value and pflag.Value
    // interfaces.
    func (pr *PortRange) Set(value string) error {
    	const (
    		SinglePortNotation = 1 << iota
    		HyphenNotation
    		PlusNotation
    	)
    
    	value = strings.TrimSpace(value)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 10 01:27:56 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/audit_test.go

    			options := tc.options()
    			require.NotNil(t, options)
    
    			// Verify flags don't change defaults.
    			fs := pflag.NewFlagSet("Test", pflag.PanicOnError)
    			options.AddFlags(fs)
    			require.NoError(t, fs.Parse(nil))
    			assert.Equal(t, tc.options(), options, "Flag defaults should match default options.")
    
    			assert.Empty(t, options.Validate(), "Options should be valid.")
    			config := &server.Config{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 27 14:57:26 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/tracing.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"context"
    	"fmt"
    	"io/ioutil"
    	"net"
    
    	"github.com/spf13/pflag"
    	"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
    	"go.opentelemetry.io/otel/sdk/resource"
    	"go.opentelemetry.io/otel/semconv/v1.12.0"
    	"google.golang.org/grpc"
    
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 21:39:39 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/options/nodelifecyclecontroller.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    
    	"github.com/spf13/pflag"
    
    	"k8s.io/kubernetes/cmd/kube-controller-manager/names"
    	nodelifecycleconfig "k8s.io/kubernetes/pkg/controller/nodelifecycle/config"
    )
    
    // NodeLifecycleControllerOptions holds the NodeLifecycleController options.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 09:25:51 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top