...

Source file src/k8s.io/kubernetes/cmd/kubeadm/app/preflight/checks_other.go

Documentation: k8s.io/kubernetes/cmd/kubeadm/app/preflight

     1  //go:build !linux
     2  // +build !linux
     3  
     4  /*
     5  Copyright 2022 The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  package preflight
    21  
    22  import (
    23  	system "k8s.io/system-validators/validators"
    24  	utilsexec "k8s.io/utils/exec"
    25  )
    26  
    27  // addOSValidator adds a new OSValidator
    28  // No-op for Darwin (MacOS), Windows.
    29  func addOSValidator(validators []system.Validator, _ *system.StreamReporter) []system.Validator {
    30  	return validators
    31  }
    32  
    33  // addIPv6Checks adds IPv6 related checks
    34  // No-op for Darwin (MacOS), Windows.
    35  func addIPv6Checks(checks []Checker) []Checker {
    36  	return checks
    37  }
    38  
    39  // addIPv4Checks adds IPv4 related checks
    40  // No-op for Darwin (MacOS), Windows.
    41  func addIPv4Checks(checks []Checker) []Checker {
    42  	return checks
    43  }
    44  
    45  // addSwapCheck adds a swap check
    46  // No-op for Darwin (MacOS), Windows.
    47  func addSwapCheck(checks []Checker) []Checker {
    48  	return checks
    49  }
    50  
    51  // addExecChecks adds checks that verify if certain binaries are in PATH
    52  // No-op for Darwin (MacOS), Windows.
    53  func addExecChecks(checks []Checker, _ utilsexec.Interface) []Checker {
    54  	return checks
    55  }
    56  

View as plain text