From 0afd7f8d56dc4cae6b39ef8336408db267e6c3b4 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 11 Mar 2018 19:06:05 +0000 Subject: [PATCH] spelling: transition --- client/alloc_runner_health_watcher.go | 2 +- client/client.go | 2 +- client/task_runner.go | 2 +- nomad/deploymentwatcher/deployment_watcher.go | 2 +- nomad/deploymentwatcher/deployments_watcher.go | 2 +- nomad/node_endpoint.go | 2 +- nomad/periodic.go | 2 +- nomad/server.go | 2 +- nomad/structs/structs.go | 4 ++-- .../update-strategies/rolling-upgrades.html.md | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/alloc_runner_health_watcher.go b/client/alloc_runner_health_watcher.go index 7fbe89f5f..ba94763b5 100644 --- a/client/alloc_runner_health_watcher.go +++ b/client/alloc_runner_health_watcher.go @@ -433,7 +433,7 @@ OUTER: } if !passed { - // Reset the timer since we have transistioned back to unhealthy + // Reset the timer since we have transitioned back to unhealthy if primed { if !healthyTimer.Stop() { select { diff --git a/client/client.go b/client/client.go index 553d6d880..5527fa9ea 100644 --- a/client/client.go +++ b/client/client.go @@ -674,7 +674,7 @@ func (c *Client) restoreState() error { } // COMPAT: Remove in 0.7.0 - // 0.6.0 transistioned from individual state files to a single bolt-db. + // 0.6.0 transitioned from individual state files to a single bolt-db. // The upgrade path is to: // Check if old state exists // If so, restore from that and delete old state diff --git a/client/task_runner.go b/client/task_runner.go index 210eb20da..1d99542c4 100644 --- a/client/task_runner.go +++ b/client/task_runner.go @@ -329,7 +329,7 @@ func (r *TaskRunner) pre060StateFilePath() string { // executor. func (r *TaskRunner) RestoreState() (string, error) { // COMPAT: Remove in 0.7.0 - // 0.6.0 transistioned from individual state files to a single bolt-db. + // 0.6.0 transitioned from individual state files to a single bolt-db. // The upgrade path is to: // Check if old state exists // If so, restore from that and delete old state diff --git a/nomad/deploymentwatcher/deployment_watcher.go b/nomad/deploymentwatcher/deployment_watcher.go index 003268916..6b60684d6 100644 --- a/nomad/deploymentwatcher/deployment_watcher.go +++ b/nomad/deploymentwatcher/deployment_watcher.go @@ -43,7 +43,7 @@ type deploymentTriggers interface { } // deploymentWatcher is used to watch a single deployment and trigger the -// scheduler when allocation health transistions. +// scheduler when allocation health transitions. type deploymentWatcher struct { // queryLimiter is used to limit the rate of blocking queries queryLimiter *rate.Limiter diff --git a/nomad/deploymentwatcher/deployments_watcher.go b/nomad/deploymentwatcher/deployments_watcher.go index f38d0509b..d9aab7877 100644 --- a/nomad/deploymentwatcher/deployments_watcher.go +++ b/nomad/deploymentwatcher/deployments_watcher.go @@ -53,7 +53,7 @@ type DeploymentRaftEndpoints interface { // Watcher is used to watch deployments and their allocations created // by the scheduler and trigger the scheduler when allocation health -// transistions. +// transitions. type Watcher struct { enabled bool logger *log.Logger diff --git a/nomad/node_endpoint.go b/nomad/node_endpoint.go index 75e0cf9ff..41ff01d1f 100644 --- a/nomad/node_endpoint.go +++ b/nomad/node_endpoint.go @@ -387,7 +387,7 @@ func (n *Node) UpdateStatus(args *structs.NodeUpdateStatusRequest, reply *struct } // transitionedToReady is a helper that takes a nodes new and old status and -// returns whether it has transistioned to ready. +// returns whether it has transitioned to ready. func transitionedToReady(newStatus, oldStatus string) bool { initToReady := oldStatus == structs.NodeStatusInit && newStatus == structs.NodeStatusReady terminalToReady := oldStatus == structs.NodeStatusDown && newStatus == structs.NodeStatusReady diff --git a/nomad/periodic.go b/nomad/periodic.go index 0549f900c..54b264b8a 100644 --- a/nomad/periodic.go +++ b/nomad/periodic.go @@ -163,7 +163,7 @@ func (p *PeriodicDispatch) SetEnabled(enabled bool) { wasRunning := p.enabled p.enabled = enabled - // If we are transistioning from enabled to disabled, stop the daemon and + // If we are transitioning from enabled to disabled, stop the daemon and // flush. if !enabled && wasRunning { p.stopFn() diff --git a/nomad/server.go b/nomad/server.go index c2b7a00e4..fe72cbb34 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -855,7 +855,7 @@ func (s *Server) setupConsulSyncer() error { } // setupDeploymentWatcher creates a deployment watcher that consumes the RPC -// endpoints for state information and makes transistions via Raft through a +// endpoints for state information and makes transitions via Raft through a // shim that provides the appropriate methods. func (s *Server) setupDeploymentWatcher() error { diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 6acdc20cf..e91e6e3c6 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -2260,7 +2260,7 @@ type UpdateStrategy struct { MinHealthyTime time.Duration // HealthyDeadline is the time in which an allocation must be marked as - // healthy before it is automatically transistioned to unhealthy. This time + // healthy before it is automatically transitioned to unhealthy. This time // period doesn't count against the MinHealthyTime. HealthyDeadline time.Duration @@ -3931,7 +3931,7 @@ type TaskState struct { // task starts StartedAt time.Time - // FinishedAt is the time at which the task transistioned to dead and will + // FinishedAt is the time at which the task transitioned to dead and will // not be started again. FinishedAt time.Time diff --git a/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md b/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md index 1a553234e..1619b7f38 100644 --- a/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md +++ b/website/source/docs/operating-a-job/update-strategies/rolling-upgrades.html.md @@ -5,7 +5,7 @@ sidebar_current: "docs-operating-a-job-updating-rolling-upgrades" description: |- In order to update a service while reducing downtime, Nomad provides a built-in mechanism for rolling upgrades. Rolling upgrades incrementally - transistions jobs between versions and using health check information to + transitions jobs between versions and using health check information to reduce downtime. ---