fix --save-config in create subcommand
This commit is contained in:
		@@ -243,9 +243,11 @@ func RunCreateSubcommand(f cmdutil.Factory, cmd *cobra.Command, out io.Writer, o
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	if err := kubectl.UpdateApplyAnnotation(info, f.JSONEncoder()); err != nil {
 | 
			
		||||
	if err := kubectl.CreateOrUpdateAnnotation(cmdutil.GetFlagBool(cmd, cmdutil.ApplyAnnotationsFlag), info, f.JSONEncoder()); err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	obj = info.Object
 | 
			
		||||
 | 
			
		||||
	if !options.DryRun {
 | 
			
		||||
		obj, err = resource.NewHelper(client, mapping).Create(namespace, false, info.Object)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user