Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for Preflight (0.13 sec)

  1. cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go

    limitations under the License.
    */
    
    package phases
    
    import (
    	"os"
    	"path/filepath"
    	"testing"
    
    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    	"k8s.io/kubernetes/cmd/kubeadm/app/preflight"
    )
    
    func assertExists(t *testing.T, path string) {
    	if _, err := os.Stat(path); os.IsNotExist(err) {
    		t.Errorf("file/directory does not exist; error: %s", err)
    		t.Errorf("file/directory does not exist: %s", path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/init_test.go

    		if !expected.Equal(data.ignorePreflightErrors) {
    			t.Errorf("Invalid ignore preflight errors. Expected: %v. Actual: %v", sets.List(expected), sets.List(data.ignorePreflightErrors))
    		}
    		if !expected.HasAll(data.cfg.NodeRegistration.IgnorePreflightErrors...) {
    			t.Errorf("Invalid ignore preflight errors in InitConfiguration. Expected: %v. Actual: %v", sets.List(expected), data.cfg.NodeRegistration.IgnorePreflightErrors)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/preflight/checks.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	"fmt"
    	"math/rand"
    	"net"
    	"net/url"
    	"time"
    )
    
    const connectionTimeout = 1 * time.Second
    
    // EtcdConnection holds the Etcd server list
    type EtcdConnection struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 20 10:50:48 UTC 2018
    - 1.8K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/preflight/utils.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	"regexp"
    	"strings"
    
    	"github.com/pkg/errors"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	utilsexec "k8s.io/utils/exec"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 07:51:36 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/preflight/checks_other.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	system "k8s.io/system-validators/validators"
    	utilsexec "k8s.io/utils/exec"
    )
    
    // addOSValidator adds a new OSValidator
    // No-op for Darwin (MacOS), Windows.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 23 07:37:42 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. tests/integration/security/jwt_test.go

    						opts.Check = check.Status(http.StatusUnauthorized)
    					},
    				},
    				{
    					name: "expired-token-cors-preflight-request-allowed",
    					customizeCall: func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions) {
    						opts.HTTP.Path = "/expired-token-cors-preflight-request-allowed"
    						opts.HTTP.Method = "OPTIONS"
    						opts.HTTP.Headers = headers.New().
    							WithAuthz(jwt.TokenExpired).
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/etcd3/preflight/checks_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	"net/url"
    	"testing"
    	"time"
    
    	utilwait "k8s.io/apimachinery/pkg/util/wait"
    )
    
    func TestParseServerURIGood(t *testing.T) {
    	connURL, err := parseServerURI("https://127.0.0.1:2379")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 01 21:37:52 UTC 2017
    - 2.7K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/preflight/utils_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	"testing"
    
    	"github.com/pkg/errors"
    
    	utilsexec "k8s.io/utils/exec"
    	fakeexec "k8s.io/utils/exec/testing"
    )
    
    func TestGetKubeletVersion(t *testing.T) {
    	cases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 23 11:33:44 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/preflight/checks_linux.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package preflight
    
    import (
    	"syscall"
    
    	"github.com/pkg/errors"
    
    	system "k8s.io/system-validators/validators"
    	utilsexec "k8s.io/utils/exec"
    )
    
    // Check number of memory required by kubeadm
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    	"k8s.io/kubernetes/cmd/kubeadm/app/componentconfigs"
    	"k8s.io/kubernetes/cmd/kubeadm/app/constants"
    	"k8s.io/kubernetes/cmd/kubeadm/app/preflight"
    	testutil "k8s.io/kubernetes/cmd/kubeadm/test"
    )
    
    func TestMoveFiles(t *testing.T) {
    	tmpdir := testutil.SetupTempDir(t)
    	defer os.RemoveAll(tmpdir)
    	os.Chmod(tmpdir, 0766)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top