- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for WithDefaultOutput (0.18 sec)
-
cmd/kubeadm/app/cmd/config_test.go
kubernetesVersion: %s`, kubeadmapiv1.SchemeGroupVersion.String(), constants.MinimumControlPlaneVersion))), }, } outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) printer, err := outputFlags.ToPrinter() if err != nil { t.Fatalf("can't create printer for the output format %s: %+v", output.TextOutput, err) } for _, tc := range testcases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 13K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/plan_test.go
} for _, rt := range tests { t.Run(rt.name, func(t *testing.T) { rt.buf = bytes.NewBufferString("") outputFlags := output.NewOutputFlags(&upgradePlanTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) printer, err := outputFlags.ToPrinter() if err != nil { t.Errorf("failed ToPrinter, err: %+v", err) } plan := genUpgradePlan(rt.upgrades, rt.versionStates)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 03:03:29 UTC 2024 - 27.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/token_test.go
Usages: tc.usages, Groups: tc.extraGroups, }, } buf := bytes.Buffer{} outputFlags := output.NewOutputFlags(&tokenTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(tc.outputFormat) printer, err := outputFlags.ToPrinter() if err != nil { t.Errorf("can't create printer for output format %s: %+v", tc.outputFormat, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 05:47:48 UTC 2024 - 13.6K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/plan.go
func newCmdPlan(apf *applyPlanFlags) *cobra.Command { flags := &planFlags{ applyPlanFlags: apf, } outputFlags := output.NewOutputFlags(&upgradePlanTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) cmd := &cobra.Command{ Use: "plan [version] [flags]", Short: "Check which versions are available to upgrade to and validate whether your current cluster is upgradeable.",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Mar 03 03:03:29 UTC 2024 - 14.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/token.go
tokenCmd.AddCommand(createCmd) tokenCmd.AddCommand(newCmdTokenGenerate(out)) outputFlags := output.NewOutputFlags(&tokenTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) listCmd := &cobra.Command{ Use: "list", Short: "List bootstrap tokens on the server", Long: dedent.Dedent(` This command will list all bootstrap tokens for you. `),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 05:47:48 UTC 2024 - 15.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config.go
if mockK8sVersion != nil { externalcfg.KubernetesVersion = *mockK8sVersion } outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) cmd := &cobra.Command{ Use: "list", Short: "Print a list of images kubeadm will use. The configuration file is used in case any images or image repositories are customized",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 18.9K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/certs.go
} // Default values for the cobra help text kubeadmscheme.Scheme.Default(&flags.cfg) outputFlags := output.NewOutputFlags(&certTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) cmd := &cobra.Command{ Use: "check-expiration", Short: "Check certificates expiration for a Kubernetes cluster", Long: expirationLongDesc,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 19.4K bytes - Viewed (0)