Skip to content

Commit

Permalink
Lowercase name bug for ingress-nginx, documentation fix (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarick committed Dec 3, 2021
1 parent c9ccc91 commit bb00d1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Read the [Introductory blog-post](https://medium.com/kubeshop-i/hello-kusk-opena
### Latest release on Github
`go install github.com/kubeshop/kusk@$VERSION`

If you don't want to build it yourself, the [Releases](https://github.com/kubeshop/kusk/releases) page contains already built binaries for all supported platforms.

Download it and unpack *kusk* to the directory of you choice.

### From source
```shell
git clone git@github.com:kubeshop/kusk.git && \
Expand Down
4 changes: 4 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
### Latest release on Github
`go install github.com/kubeshop/kusk@$VERSION`

If you don't want to build it yourself, the [Releases](https://github.com/kubeshop/kusk/releases) page contains already built binaries for all supported platforms.

Download it and unpack *kusk* to the directory of you choice.

### From source
```shell
git clone git@github.com:kubeshop/kusk.git && \
Expand Down
2 changes: 1 addition & 1 deletion generators/nginx_ingress/nginx_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func ingressResourceNameFromPath(path string) string {
}

// remove trailing - character
return strings.TrimSuffix(b.String(), "-")
return strings.ToLower(strings.TrimSuffix(b.String(), "-"))
}

func (g *Generator) newIngressResource(
Expand Down

0 comments on commit bb00d1d

Please sign in to comment.