File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
staging/src/k8s.io/kubectl/pkg/cmd/certificates Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ type CertificateOptions struct {
69
69
}
70
70
71
71
// NewCertificateOptions creates the options for certificate
72
- func NewCertificateOptions (ioStreams genericclioptions.IOStreams ) * CertificateOptions {
72
+ func NewCertificateOptions (ioStreams genericclioptions.IOStreams , operation string ) * CertificateOptions {
73
73
return & CertificateOptions {
74
- PrintFlags : genericclioptions .NewPrintFlags ("approved" ).WithTypeSetter (scheme .Scheme ),
74
+ PrintFlags : genericclioptions .NewPrintFlags (operation ).WithTypeSetter (scheme .Scheme ),
75
75
IOStreams : ioStreams ,
76
76
}
77
77
}
@@ -111,7 +111,7 @@ func (o *CertificateOptions) Validate() error {
111
111
}
112
112
113
113
func NewCmdCertificateApprove (f cmdutil.Factory , ioStreams genericclioptions.IOStreams ) * cobra.Command {
114
- o := NewCertificateOptions (ioStreams )
114
+ o := NewCertificateOptions (ioStreams , "approved" )
115
115
116
116
cmd := & cobra.Command {
117
117
Use : "approve (-f FILENAME | NAME)" ,
@@ -166,7 +166,7 @@ func (o *CertificateOptions) RunCertificateApprove(force bool) error {
166
166
}
167
167
168
168
func NewCmdCertificateDeny (f cmdutil.Factory , ioStreams genericclioptions.IOStreams ) * cobra.Command {
169
- o := NewCertificateOptions (ioStreams )
169
+ o := NewCertificateOptions (ioStreams , "denied" )
170
170
171
171
cmd := & cobra.Command {
172
172
Use : "deny (-f FILENAME | NAME)" ,
You can’t perform that action at this time.
0 commit comments