mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Merge pull request #63561 from juanvallejo/jvallejo/make-opinionated-print-flags-constructor
Automatic merge from submit-queue (batch tested with PRs 63669, 63511, 63561, 63289). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove legacyscheme dep from printFlags **Release note**: ```release-note NONE ``` Breaks PrintFlags dependency on legacyscheme Prerequisite to https://github.com/kubernetes/kubernetes/pull/63402 cc @deads2k @soltysh
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/api/meta"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
"k8s.io/kubernetes/pkg/api/legacyscheme"
|
||||
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
|
||||
batchclient "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/batch/internalversion"
|
||||
"k8s.io/kubernetes/pkg/kubectl"
|
||||
@@ -100,7 +101,7 @@ func NewScaleOptions(ioStreams genericclioptions.IOStreams) *ScaleOptions {
|
||||
// we only support "-o name" for this command, so only register the name printer
|
||||
PrintFlags: &printers.PrintFlags{
|
||||
OutputFormat: &outputFormat,
|
||||
NamePrintFlags: printers.NewNamePrintFlags("scaled"),
|
||||
NamePrintFlags: printers.NewNamePrintFlags("scaled", legacyscheme.Scheme),
|
||||
},
|
||||
RecordFlags: genericclioptions.NewRecordFlags(),
|
||||
CurrentReplicas: -1,
|
||||
|
||||
Reference in New Issue
Block a user