- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for NewOutputFlags (0.33 sec)
-
cmd/kubeadm/app/util/output/output.go
func (pf *PrintFlags) WithTypeSetter(scheme *runtime.Scheme) *PrintFlags { pf.TypeSetterPrinter = printers.NewTypeSetter(scheme) return pf } // NewOutputFlags creates new KubeadmOutputFlags func NewOutputFlags(textPrintFlags TextPrintFlags) *PrintFlags { outputFormat := "" pf := &PrintFlags{ OutputFormat: &outputFormat,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 08:22:45 UTC 2024 - 8K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config_test.go
apiVersion: %s kind: ClusterConfiguration kubernetesVersion: %s`, kubeadmapiv1.SchemeGroupVersion.String(), constants.MinimumControlPlaneVersion))), }, } outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) printer, err := outputFlags.ToPrinter() if err != nil {
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) }
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
Description: tc.description, 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 {
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
`) // newCmdPlan returns the cobra command for `kubeadm upgrade plan` 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]",
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
bto.AddGroupsFlag(createCmd.Flags()) bto.AddDescriptionFlag(createCmd.Flags()) 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",
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
// lookup the latest release from the internet. if mockK8sVersion != nil { externalcfg.KubernetesVersion = *mockK8sVersion } outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput) cmd := &cobra.Command{ Use: "list",
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
}, kubeconfigPath: kubeadmconstants.GetAdminKubeConfigPath(), } // 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",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 19.4K bytes - Viewed (0)