mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-08-08 21:30:38 +00:00
Merge pull request #139644 from krishhna24/fix/apiextensions-comment-typos
Fix spelling typos in apiextensions-apiserver comments
This commit is contained in:
@@ -246,7 +246,7 @@ func splitReplicasPath(replicasPath string) []string {
|
||||
return strings.Split(strings.TrimPrefix(replicasPath, "."), ".")
|
||||
}
|
||||
|
||||
// scaleFromCustomResource returns a scale subresource for a customresource and a bool signalling wether
|
||||
// scaleFromCustomResource returns a scale subresource for a customresource and a bool signalling whether
|
||||
// the specReplicas value was found.
|
||||
func scaleFromCustomResource(cr *unstructured.Unstructured, specReplicasPath, statusReplicasPath, labelSelectorPath string) (*autoscalingv1.Scale, bool, error) {
|
||||
specReplicas, foundSpecReplicas, err := unstructured.NestedInt64(cr.UnstructuredContent(), splitReplicasPath(specReplicasPath)...)
|
||||
|
||||
@@ -222,7 +222,7 @@ func testStoragedVersionInCRDStatus(t *testing.T, ns string, noxuDefinition *api
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// The storage version list should be initilized to storage version
|
||||
// The storage version list should be initialized to storage version
|
||||
crd, err := apiExtensionClient.ApiextensionsV1().CustomResourceDefinitions().Get(context.TODO(), noxuDefinition.Name, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user