Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sessionIsInteractive (0.19 sec)

  1. cmd/kubeadm/app/cmd/upgrade/apply_test.go

    		},
    		{
    			name:     "Interactive session",
    			flags:    &applyFlags{},
    			expected: true,
    		},
    	}
    	for _, tt := range tcases {
    		t.Run(tt.name, func(t *testing.T) {
    			if tt.flags.sessionIsInteractive() != tt.expected {
    				t.Error("unexpected result")
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 20:06:42 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/upgrade/apply.go

    	dryRun             bool
    	etcdUpgrade        bool
    	renewCerts         bool
    	patchesDir         string
    }
    
    // sessionIsInteractive returns true if the session is of an interactive type (the default, can be opted out of with -y, -f or --dry-run)
    func (f *applyFlags) sessionIsInteractive() bool {
    	return !(f.nonInteractiveMode || f.dryRun || f.force)
    }
    
    // newCmdApply returns the cobra command for `kubeadm upgrade apply`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 03:55:23 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top