Skip to content

Commit

Permalink
Merge pull request #496 from ialidzhikov/fix-typo
Browse files Browse the repository at this point in the history
✨ Fix typo
  • Loading branch information
k8s-ci-robot committed Jun 28, 2019
2 parents 21c5daf + 4c27c48 commit b5e34e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
*.swp
*.swo
*~

# Vscode files
.vscode
20 changes: 10 additions & 10 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -578,7 +578,7 @@ var _ = Describe("Client", func() {

close(done)
})
It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -672,7 +672,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -791,7 +791,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -860,7 +860,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -956,7 +956,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -1024,7 +1024,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -1136,7 +1136,7 @@ var _ = Describe("Client", func() {
err = cl.Patch(context.TODO(), u, client.ConstantPatch(types.MergePatchType, mergePatch))
Expect(err).NotTo(HaveOccurred())

By("validating pathed Node has new annotation")
By("validating patched Node has new annotation")
actual, err := clientset.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
Expect(err).NotTo(HaveOccurred())
Expect(actual).NotTo(BeNil())
Expand Down Expand Up @@ -1240,7 +1240,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down Expand Up @@ -1345,7 +1345,7 @@ var _ = Describe("Client", func() {
close(done)
})

It("should fail if the object does not exists", func(done Done) {
It("should fail if the object does not exist", func(done Done) {
cl, err := client.New(cfg, client.Options{})
Expect(err).NotTo(HaveOccurred())
Expect(cl).NotTo(BeNil())
Expand Down
2 changes: 0 additions & 2 deletions pkg/client/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ type DeleteOptions struct {
// AsDeleteOptions returns these options as a metav1.DeleteOptions.
// This may mutate the Raw field.
func (o *DeleteOptions) AsDeleteOptions() *metav1.DeleteOptions {

if o == nil {
return &metav1.DeleteOptions{}
}
Expand Down Expand Up @@ -309,7 +308,6 @@ type UpdateOptions struct {
// AsUpdateOptions returns these options as a metav1.UpdateOptions.
// This may mutate the Raw field.
func (o *UpdateOptions) AsUpdateOptions() *metav1.UpdateOptions {

if o == nil {
return &metav1.UpdateOptions{}
}
Expand Down

0 comments on commit b5e34e4

Please sign in to comment.