mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Fix typos
This commit is contained in:
parent
9b3ca2fb0d
commit
f1258dca4e
@ -348,7 +348,7 @@ func NewUIDTrackingControllerExpectations(ce ControllerExpectationsInterface) *U
|
|||||||
type PodControlInterface interface {
|
type PodControlInterface interface {
|
||||||
// CreatePods creates new pods according to the spec.
|
// CreatePods creates new pods according to the spec.
|
||||||
CreatePods(namespace string, template *api.PodTemplateSpec, object runtime.Object) error
|
CreatePods(namespace string, template *api.PodTemplateSpec, object runtime.Object) error
|
||||||
// CreatePodsOnNode creates a new pod accorting to the spec on the specified node.
|
// CreatePodsOnNode creates a new pod according to the spec on the specified node.
|
||||||
CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error
|
CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error
|
||||||
// CreatePodsWithControllerRef creates new pods according to the spec, and sets object as the pod's controller.
|
// CreatePodsWithControllerRef creates new pods according to the spec, and sets object as the pod's controller.
|
||||||
CreatePodsWithControllerRef(namespace string, template *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error
|
CreatePodsWithControllerRef(namespace string, template *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error
|
||||||
|
@ -71,7 +71,7 @@ func SetOriginalConfiguration(info *resource.Info, original []byte) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetModifiedConfiguration retrieves the modified configuration of the object.
|
// GetModifiedConfiguration retrieves the modified configuration of the object.
|
||||||
// If annotate is true, it embeds the result as an anotation in the modified
|
// If annotate is true, it embeds the result as an annotation in the modified
|
||||||
// configuration. If an object was read from the command input, it will use that
|
// configuration. If an object was read from the command input, it will use that
|
||||||
// version of the object. Otherwise, it will use the version from the server.
|
// version of the object. Otherwise, it will use the version from the server.
|
||||||
func GetModifiedConfiguration(info *resource.Info, annotate bool, codec runtime.Encoder) ([]byte, error) {
|
func GetModifiedConfiguration(info *resource.Info, annotate bool, codec runtime.Encoder) ([]byte, error) {
|
||||||
|
@ -291,7 +291,7 @@ func (b *Builder) DefaultNamespace() *Builder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// AllNamespaces instructs the builder to use NamespaceAll as a namespace to request resources
|
// AllNamespaces instructs the builder to use NamespaceAll as a namespace to request resources
|
||||||
// acroll all namespace. This overrides the namespace set by NamespaceParam().
|
// across all of the namespace. This overrides the namespace set by NamespaceParam().
|
||||||
func (b *Builder) AllNamespaces(allNamespace bool) *Builder {
|
func (b *Builder) AllNamespaces(allNamespace bool) *Builder {
|
||||||
if allNamespace {
|
if allNamespace {
|
||||||
b.namespace = api.NamespaceAll
|
b.namespace = api.NamespaceAll
|
||||||
|
@ -52,7 +52,7 @@ func TestListContainers(t *testing.T) {
|
|||||||
s := makeSandboxConfig(fmt.Sprintf("%s%d", podName, i),
|
s := makeSandboxConfig(fmt.Sprintf("%s%d", podName, i),
|
||||||
fmt.Sprintf("%s%d", namespace, i), fmt.Sprintf("%d", i), 0)
|
fmt.Sprintf("%s%d", namespace, i), fmt.Sprintf("%d", i), 0)
|
||||||
labels := map[string]string{"abc.xyz": fmt.Sprintf("label%d", i)}
|
labels := map[string]string{"abc.xyz": fmt.Sprintf("label%d", i)}
|
||||||
annotations := map[string]string{"foo.bar.baz": fmt.Sprintf("annotaion%d", i)}
|
annotations := map[string]string{"foo.bar.baz": fmt.Sprintf("annotation%d", i)}
|
||||||
c := makeContainerConfig(s, fmt.Sprintf("%s%d", containerName, i),
|
c := makeContainerConfig(s, fmt.Sprintf("%s%d", containerName, i),
|
||||||
fmt.Sprintf("%s:v%d", image, i), uint32(i), labels, annotations)
|
fmt.Sprintf("%s:v%d", image, i), uint32(i), labels, annotations)
|
||||||
sConfigs = append(sConfigs, s)
|
sConfigs = append(sConfigs, s)
|
||||||
|
@ -322,7 +322,7 @@ func TestResponsibleForPod(t *testing.T) {
|
|||||||
factoryDefaultScheduler := NewConfigFactory(client, api.DefaultSchedulerName, api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains)
|
factoryDefaultScheduler := NewConfigFactory(client, api.DefaultSchedulerName, api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains)
|
||||||
// factory of "foo-scheduler"
|
// factory of "foo-scheduler"
|
||||||
factoryFooScheduler := NewConfigFactory(client, "foo-scheduler", api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains)
|
factoryFooScheduler := NewConfigFactory(client, "foo-scheduler", api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains)
|
||||||
// scheduler annotaions to be tested
|
// scheduler annotations to be tested
|
||||||
schedulerAnnotationFitsDefault := map[string]string{"scheduler.alpha.kubernetes.io/name": "default-scheduler"}
|
schedulerAnnotationFitsDefault := map[string]string{"scheduler.alpha.kubernetes.io/name": "default-scheduler"}
|
||||||
schedulerAnnotationFitsFoo := map[string]string{"scheduler.alpha.kubernetes.io/name": "foo-scheduler"}
|
schedulerAnnotationFitsFoo := map[string]string{"scheduler.alpha.kubernetes.io/name": "foo-scheduler"}
|
||||||
schedulerAnnotationFitsNone := map[string]string{"scheduler.alpha.kubernetes.io/name": "bar-scheduler"}
|
schedulerAnnotationFitsNone := map[string]string{"scheduler.alpha.kubernetes.io/name": "bar-scheduler"}
|
||||||
|
Loading…
Reference in New Issue
Block a user