Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Commit baee1bb

Browse files
committed
fix typos
1 parent 4f74ea0 commit baee1bb

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

build/copy-output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# Copies any built binaries (and other generated files) out of the Docker build contianer.
17+
# Copies any built binaries (and other generated files) out of the Docker build container.
1818
set -o errexit
1919
set -o nounset
2020
set -o pipefail

hack/make-rules/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function run-cmd {
7777
return ${tr}
7878
}
7979

80-
# Collect Failed tests in this Array , initalize it to nil
80+
# Collect Failed tests in this Array , initialize it to nil
8181
FAILED_TESTS=()
8282

8383
function print-failed-tests {

hack/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ kube::version::get_version_vars
5353

5454
# This is to prevent the script from starting if its on a dirty commit.
5555
if [[ "${KUBE_GIT_VERSION}" != "${RELEASE_TAG}" ]]; then
56-
echo "Version being build: ${KUBE_GIT_VERSION} does not match the release version: ${RELEASE_TAG}, there probably is uncommited work."
56+
echo "Version being build: ${KUBE_GIT_VERSION} does not match the release version: ${RELEASE_TAG}, there probably is uncommitted work."
5757
exit 1
5858
else
5959
echo "Using ${RELEASE_TAG} for release push"

pkg/k8sclient/nodewatcher_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func TestNodeWatcher_enqueueNodeAddition(t *testing.T) {
268268
defer testObj.mockCtrl.Finish()
269269

270270
nodeWatch := NewNodeWatcher(testObj.kubeClient, testObj.firmamentClient)
271-
keychan := make(chan interface{})
271+
keychain := make(chan interface{})
272272
itemschan := make(chan []interface{})
273273

274274
for _, testValue := range testData {
@@ -279,13 +279,13 @@ func TestNodeWatcher_enqueueNodeAddition(t *testing.T) {
279279
nodeWatch.enqueueNodeAddition(key, testValue.node)
280280
go func() {
281281
newkey, newitems, _ := nodeWatch.nodeWorkQueue.Get()
282-
keychan <- newkey
282+
keychain <- newkey
283283
itemschan <- newitems
284284
}()
285285
waitTimer := time.NewTimer(time.Second * 5)
286286
select {
287287
case <-waitTimer.C:
288-
case newkey := <-keychan:
288+
case newkey := <-keychain:
289289
newitem := <-itemschan
290290

291291
for _, item := range newitem {

pkg/k8sclient/podwatcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func (pw *PodWatcher) podWorker() {
434434
PodMux.Lock()
435435

436436
// check if the pod already exists
437-
// this cases happend when Replicaset are used.
437+
// this cases happened when Replicaset are used.
438438
// When a replicaset is delete it creates more pods with the same name
439439
_, ok := PodToTD[pod.Identifier]
440440
if ok {

pkg/k8sclient/podwatcher_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func TestNewPodWatcher(t *testing.T) {
212212
func TestPodWatcher_enqueuePodAddition(t *testing.T) {
213213
var empty map[string]string
214214
fakeNow := metav1.Now()
215-
keychan := make(chan interface{})
215+
keychain := make(chan interface{})
216216
itemschan := make(chan []interface{})
217217
fakeOwnerRef := "abcdfe12345"
218218

@@ -511,13 +511,13 @@ func TestPodWatcher_enqueuePodAddition(t *testing.T) {
511511
podWatch.enqueuePodAddition(key, podData.pod)
512512
go func() {
513513
newkey, newitems, _ := podWatch.podWorkQueue.Get()
514-
keychan <- newkey
514+
keychain <- newkey
515515
itemschan <- newitems
516516
}()
517517
waitTimer := time.NewTimer(time.Second * 2)
518518
select {
519519
case <-waitTimer.C:
520-
case newkey := <-keychan:
520+
case newkey := <-keychain:
521521
newitems := <-itemschan
522522
for _, item := range newitems {
523523
if newItem, ok := item.(*Pod); ok {

pkg/stats/poseidonstats.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ syntax = "proto3";
1818

1919
package stats;
2020

21-
// PoseidonStats is a service that is responsbile for receiving node and pod stats.
21+
// PoseidonStats is a service that is responsible for receiving node and pod stats.
2222
service PoseidonStats {
2323
rpc ReceiveNodeStats(stream NodeStats) returns (stream NodeStatsResponse) {}
2424
rpc ReceivePodStats(stream PodStats) returns (stream PodStatsResponse) {}
@@ -96,4 +96,4 @@ message PodStatsResponse {
9696
PodStatsResponseType type = 1;
9797
string name = 2;
9898
string namespace = 3;
99-
}
99+
}

test/e2e/poseidon_integration.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ var _ = Describe("Poseidon", func() {
595595
By("Trying to get a schedulable node")
596596
schedulableNodes := framework.ListSchedulableNodes(clientset)
597597
if len(schedulableNodes) < 1 {
598-
Skip(fmt.Sprintf("Skipping this test case as the required minimum nodes not avaliable "))
598+
Skip(fmt.Sprintf("Skipping this test case as the required minimum nodes not available "))
599599
}
600600
nodeOne := schedulableNodes[0]
601601

@@ -679,7 +679,7 @@ var _ = Describe("Poseidon", func() {
679679
By("Trying to get a schedulable node")
680680
schedulableNodes := framework.ListSchedulableNodes(clientset)
681681
if len(schedulableNodes) < 1 {
682-
Skip(fmt.Sprintf("Skipping this test case as the required minimum nodes not avaliable "))
682+
Skip(fmt.Sprintf("Skipping this test case as the required minimum nodes not available "))
683683
}
684684
nodeOne := schedulableNodes[0]
685685

@@ -777,7 +777,7 @@ var _ = Describe("Poseidon", func() {
777777
By("Trying to get a schedulable node")
778778
schedulableNodes := framework.ListSchedulableNodes(clientset)
779779
if len(schedulableNodes) < 2 {
780-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes avaliable", len(schedulableNodes)))
780+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes available", len(schedulableNodes)))
781781
}
782782
nodeOne = schedulableNodes[0]
783783
nodeTwo = schedulableNodes[1]
@@ -890,7 +890,7 @@ var _ = Describe("Poseidon", func() {
890890
By("Trying to get a schedulable node")
891891
schedulableNodes := framework.ListSchedulableNodes(clientset)
892892
if len(schedulableNodes) < 3 {
893-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of three node and only %d nodes avaliable", len(schedulableNodes)))
893+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of three node and only %d nodes available", len(schedulableNodes)))
894894
}
895895
nodeOne = schedulableNodes[0]
896896
nodeTwo = schedulableNodes[1]
@@ -992,7 +992,7 @@ var _ = Describe("Poseidon", func() {
992992
By("Trying to get a schedulable node")
993993
schedulableNodes := framework.ListSchedulableNodes(clientset)
994994
if len(schedulableNodes) < 2 {
995-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of three node and only %d nodes avaliable", len(schedulableNodes)))
995+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of three node and only %d nodes available", len(schedulableNodes)))
996996
}
997997
nodeOne = schedulableNodes[0]
998998
nodeTwo = schedulableNodes[1]
@@ -1840,7 +1840,7 @@ var _ = Describe("Poseidon", func() {
18401840
By("Trying to get a schedulable node")
18411841
schedulableNodes := framework.ListSchedulableNodes(clientset)
18421842
if len(schedulableNodes) < 2 {
1843-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes avaliable", len(schedulableNodes)))
1843+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes available", len(schedulableNodes)))
18441844
}
18451845
nodeOne = schedulableNodes[0]
18461846
nodeTwo = schedulableNodes[1]
@@ -1896,7 +1896,7 @@ var _ = Describe("Poseidon", func() {
18961896
By("Trying to get a schedulable node")
18971897
schedulableNodes := framework.ListSchedulableNodes(clientset)
18981898
if len(schedulableNodes) < 2 {
1899-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes avaliable", len(schedulableNodes)))
1899+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes available", len(schedulableNodes)))
19001900
}
19011901
nodeOne = schedulableNodes[0]
19021902
nodeTwo = schedulableNodes[1]
@@ -1950,7 +1950,7 @@ var _ = Describe("Poseidon", func() {
19501950
By("Trying to get a schedulable node")
19511951
schedulableNodes := framework.ListSchedulableNodes(clientset)
19521952
if len(schedulableNodes) < 2 {
1953-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes avaliable", len(schedulableNodes)))
1953+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes available", len(schedulableNodes)))
19541954
}
19551955
nodeOne = schedulableNodes[0]
19561956
nodeTwo = schedulableNodes[1]
@@ -2011,7 +2011,7 @@ var _ = Describe("Poseidon", func() {
20112011
By("Trying to get a schedulable node")
20122012
schedulableNodes := framework.ListSchedulableNodes(clientset)
20132013
if len(schedulableNodes) < 2 {
2014-
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes avaliable", len(schedulableNodes)))
2014+
Skip(fmt.Sprintf("Skipping this test case as this requires minimum of two node and only %d nodes available", len(schedulableNodes)))
20152015
}
20162016
nodeOne = schedulableNodes[0]
20172017
nodeTwo = schedulableNodes[1]

0 commit comments

Comments
 (0)