Skip to content

Commit

Permalink
remove repetitive words (#20110)
Browse files Browse the repository at this point in the history
Signed-off-by: carrychair <linghuchong404@gmail.com>
  • Loading branch information
carrychair authored Mar 11, 2024
1 parent 286dce7 commit 5f5b34d
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func cloneWithTimeout(httpClient *http.Client, t time.Duration) (*http.Client, e
return &nc, nil
}

// ConfigureTLS applies a set of TLS configurations to the the HTTP client.
// ConfigureTLS applies a set of TLS configurations to the HTTP client.
func ConfigureTLS(httpClient *http.Client, tlsConfig *TLSConfig) error {
if tlsConfig == nil {
return nil
Expand Down
2 changes: 1 addition & 1 deletion api/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ type CSISnapshotCreateResponse struct {
}

// CSISnapshotListRequest is a request to a controller plugin to list all the
// snapshot known to the the storage provider. This request is paginated by
// snapshot known to the storage provider. This request is paginated by
// the plugin and accepts the QueryOptions.PerPage and QueryOptions.NextToken
// fields
type CSISnapshotListRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion client/allocrunner/network_manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newNetworkManager(alloc *structs.Allocation, driverManager drivermanager.Ma
// to do extra work
driverCaps := make(map[string]struct{})
for _, task := range tg.Tasks {
// the task's netmode defaults to the the task group but can be overridden
// the task's netmode defaults to the task group but can be overridden
taskNetMode := tgNetMode
if len(task.Resources.Networks) > 0 && task.Resources.Networks[0].Mode != "" {
taskNetMode = task.Resources.Networks[0].Mode
Expand Down
2 changes: 1 addition & 1 deletion client/allocrunner/tasklifecycle/coordinator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func TestCoordinator_PoststartStartsAfterMain(t *testing.T) {
// Only use the tasks that we care about.
tasks = []*structs.Task{mainTask, sideTask, postTask}

// Make the the third task is a poststart hook
// Make the third task is a poststart hook
postTask.Lifecycle.Hook = structs.TaskLifecycleHookPoststart

shutdownCh := make(chan struct{})
Expand Down
2 changes: 1 addition & 1 deletion command/alloc_stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Stop Specific Options:
eval-status command.
-no-shutdown-delay
Ignore the the group and task shutdown_delay configuration so there is no
Ignore the group and task shutdown_delay configuration so there is no
delay between service deregistration and task shutdown. Note that using
this flag will result in failed network connections to the allocation
being stopped.
Expand Down
2 changes: 1 addition & 1 deletion drivers/shared/capabilities/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func LegacySupported() *Set {
//
// The task will drop any capabilities specified in cap_drop, and add back
// capabilities specified in cap_add. The task will not be allowed to add capabilities
// not set in the the allow_caps setting (which by default is the same as the basis).
// not set in the allow_caps setting (which by default is the same as the basis).
//
// cap_add takes precedence over cap_drop, enabling the common pattern of dropping
// all capabilities, then adding back the desired smaller set. e.g.
Expand Down
2 changes: 1 addition & 1 deletion drivers/shared/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ type ExecCommand struct {
// Mounts are the host paths to be be made available inside rootfs
Mounts []*drivers.MountConfig

// Devices are the the device nodes to be created in isolation environment
// Devices are the device nodes to be created in isolation environment
Devices []*drivers.DeviceConfig

// NetworkIsolation is the network isolation configuration.
Expand Down
2 changes: 1 addition & 1 deletion nomad/csi_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ func (v *CSIVolume) lookupExternalNodeID(vol *structs.CSIVolume, claim *structs.
return "", fmt.Errorf("%s: %s", structs.ErrUnknownNodePrefix, claim.NodeID)
}

// get the the storage provider's ID for the client node (not
// get the storage provider's ID for the client node (not
// Nomad's ID for the node)
targetCSIInfo, ok := targetNode.CSINodePlugins[vol.PluginID]
if !ok || targetCSIInfo.NodeInfo == nil {
Expand Down
4 changes: 2 additions & 2 deletions nomad/structs/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ type CSIVolumeListResponse struct {
}

// CSIVolumeExternalListRequest is a request to a controller plugin to list
// all the volumes known to the the storage provider. This request is
// all the volumes known to the storage provider. This request is
// paginated by the plugin and accepts the QueryOptions.PerPage and
// QueryOptions.NextToken fields
type CSIVolumeExternalListRequest struct {
Expand Down Expand Up @@ -1055,7 +1055,7 @@ type CSISnapshotDeleteResponse struct {
}

// CSISnapshotListRequest is a request to a controller plugin to list all the
// snapshot known to the the storage provider. This request is paginated by
// snapshot known to the storage provider. This request is paginated by
// the plugin and accepts the QueryOptions.PerPage and QueryOptions.NextToken
// fields
type CSISnapshotListRequest struct {
Expand Down
6 changes: 3 additions & 3 deletions nomad/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const (

var (
// vaultCapabilitiesCapability is the expected capability of Nomad's Vault
// token on the the path. The token must have at least one of the
// token on the path. The token must have at least one of the
// capabilities.
vaultCapabilitiesCapability = []string{"update", "root"}

Expand All @@ -95,12 +95,12 @@ var (
// the capabilities.
vaultTokenRevokeCapability = []string{"update", "root"}

// vaultRoleLookupCapability is the the expected capability Nomad's Vault
// vaultRoleLookupCapability is the expected capability Nomad's Vault
// token should have on the path. The token must have at least one of the
// capabilities.
vaultRoleLookupCapability = []string{"read", "root"}

// vaultTokenRoleCreateCapability is the the expected capability Nomad's Vault
// vaultTokenRoleCreateCapability is the expected capability Nomad's Vault
// token should have on the path. The token must have at least one of the
// capabilities.
vaultTokenRoleCreateCapability = []string{"update", "root"}
Expand Down
2 changes: 1 addition & 1 deletion plugins/device/proto/device.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/device/proto/device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ message ReserveRequest {
}

// ReserveResponse informs Nomad how to expose the requested devices
// to the the task.
// to the task.
message ReserveResponse {
// container_res contains information on how to mount the device
// into a task isolated using container technologies (where the
Expand Down
2 changes: 1 addition & 1 deletion plugins/drivers/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
var _ plugin.GRPCPlugin = &PluginDriver{}

// PluginDriver wraps a DriverPlugin and implements go-plugins GRPCPlugin
// interface to expose the the interface over gRPC
// interface to expose the interface over gRPC
type PluginDriver struct {
plugin.NetRPCUnsupportedPlugin
impl DriverPlugin
Expand Down
2 changes: 1 addition & 1 deletion scheduler/benchmarks/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package benchmarks

// Test helper functions for running scheduling tests and benchmarks
// against real world state snapshots or data directories. These live
// here and not in the the parent scheduler package because it would
// here and not in the parent scheduler package because it would
// create circular imports between the scheduler and raftutils package
// (via the nomad package)

Expand Down

0 comments on commit 5f5b34d

Please sign in to comment.