mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
Fix typos.
This commit is contained in:
@@ -320,7 +320,7 @@ func ValidateCertSANs(altnames []string, fldPath *field.Path) field.ErrorList {
|
||||
return allErrs
|
||||
}
|
||||
|
||||
// ValidateURLs validates the URLs given in the string slice, makes sure they are parseable. Optionally, it can enforcs HTTPS usage.
|
||||
// ValidateURLs validates the URLs given in the string slice, makes sure they are parsable. Optionally, it can enforces HTTPS usage.
|
||||
func ValidateURLs(urls []string, requireHTTPS bool, fldPath *field.Path) field.ErrorList {
|
||||
allErrs := field.ErrorList{}
|
||||
for _, urlstr := range urls {
|
||||
|
||||
@@ -87,7 +87,7 @@ func TestNewInitData(t *testing.T) {
|
||||
expectError: true,
|
||||
},
|
||||
{
|
||||
name: "fail if deprecetes feature gates are set",
|
||||
name: "fail if deprecated feature gates are set",
|
||||
flags: map[string]string{
|
||||
options.FeatureGatesString: fmt.Sprintf("%s=true", features.CoreDNS),
|
||||
},
|
||||
|
||||
@@ -31,7 +31,7 @@ func TestExpirationInfo(t *testing.T) {
|
||||
|
||||
e := newExpirationInfo("x", cert, false)
|
||||
|
||||
if math.Abs(float64(validity-e.ResidualTime())) > float64(5*time.Second) { // using 5s of tolerance becase the function is not determinstic (it uses time.Now()) and we want to avoid flakes
|
||||
if math.Abs(float64(validity-e.ResidualTime())) > float64(5*time.Second) { // using 5s of tolerance because the function is not deterministic (it uses time.Now()) and we want to avoid flakes
|
||||
t.Errorf("expected IsInRenewalWindow equal to %v, saw %v", validity, e.ResidualTime())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1016,7 +1016,7 @@ func RunOptionalJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.Clust
|
||||
return RunChecks(checks, os.Stderr, ignorePreflightErrors)
|
||||
}
|
||||
|
||||
// addCommonChecks is a helper function to deplicate checks that are common between both the
|
||||
// addCommonChecks is a helper function to duplicate checks that are common between both the
|
||||
// kubeadm init and join commands
|
||||
func addCommonChecks(execer utilsexec.Interface, k8sVersion string, nodeReg *kubeadmapi.NodeRegistrationOptions, checks []Checker) []Checker {
|
||||
containerRuntime, err := utilruntime.NewContainerRuntime(execer, nodeReg.CRISocket)
|
||||
|
||||
@@ -248,7 +248,7 @@ func TestPullImage(t *testing.T) {
|
||||
{"valid: pull image using CRI", "unix:///var/run/crio/crio.sock", "image1", false},
|
||||
{"invalid: CRI pull error", "unix:///var/run/crio/crio.sock", "image2", true},
|
||||
{"valid: pull image using docker", constants.DefaultDockerCRISocket, "image1", false},
|
||||
{"invalide: docer pull error", constants.DefaultDockerCRISocket, "image2", true},
|
||||
{"invalid: docker pull error", constants.DefaultDockerCRISocket, "image2", true},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
||||
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
package system
|
||||
|
||||
// KernelConfig defines one kernel configration item.
|
||||
// KernelConfig defines one kernel configuration item.
|
||||
type KernelConfig struct {
|
||||
// Name is the general name of the kernel configuration. It is used to
|
||||
// match kernel configuration.
|
||||
|
||||
Reference in New Issue
Block a user