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

Use go modules, upgrade dependencies, add skaffold.dev#80

Open
jorik wants to merge 6 commits intovmware-archive:masterfrom
jorik:feature/go-modules
Open

Use go modules, upgrade dependencies, add skaffold.dev#80
jorik wants to merge 6 commits intovmware-archive:masterfrom
jorik:feature/go-modules

Conversation

@jorik
Copy link
Copy Markdown

@jorik jorik commented Aug 19, 2019

Hey @chuckha & @timothysc,

This pull requests is based on the work as described in this comment: #77 (comment)
What's included, in short:

  • Use go modules instead of dep
  • Use a multistage Dockerfile to build/test the project
  • Updated the versions of:
    • Go: v1.9 -> v1.12.x
    • Alpine Linux: v3.6 -> v3.9.
    • Go dependencies, for example: k8s.io/client_go v5.0.0 -> v12.0.0

I tried to find an Alpine Linux 3.9 & Go 1.12.x on gcr.io/heptio-images/...., but couldn't find any. So I'm using the publicly available ones now.

I've also added a skaffold.yaml (using skaffold) to easily run the EventRouter in your local Kubernetes cluster using the already provided eventrouter.yaml. I hope this is ok.

I understand that the size of this PR can be quite concerning, but it actually deletes a lot more than it adds.
I hope we can find a way to merge these changes into the upstream branch, as we would like to contribute to your repository!

If these changes will be accepted, I will create a new PR soon that actually contributes the new sink.

Thanks for the cool open source project!

Jorik

Jorik van der Werf added 6 commits August 19, 2019 16:08
Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
…fold

Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
Signed-off-by: Jorik van der Werf <jorikvdwerf@gmail.com>
@vigith
Copy link
Copy Markdown
Contributor

vigith commented Sep 9, 2019

go 1.13, we have module mirror, may be we should ditch vendoring all together?

@vigith vigith mentioned this pull request Sep 10, 2019
vigith added a commit to vigith/eventrouter that referenced this pull request Sep 10, 2019
* Use go .12 and use modules instead of dep
* Use a multistage Dockerfile to build/test the project
* Updated the versions of:
  * Go: v1.9 -> v1.12.x
  * Alpine Linux: v3.6 -> v3.9.
  * Go dependencies, for example: k8s.io/client_go v5.0.0 -> v12.0.0

Signed-off-by: Vigith Maurice <vigith@gmail.com>
vigith added a commit to vigith/eventrouter that referenced this pull request Sep 11, 2019
most of vmware-archive#80 (took Dockerfile, Makefile and go.mod)
@vigith vigith mentioned this pull request Sep 11, 2019
vigith added a commit to vigith/eventrouter that referenced this pull request Sep 11, 2019
* Use go .12 and use modules instead of dep
* Use a multistage Dockerfile to build/test the project
* Updated the versions of:
  * Go: v1.9 -> v1.12.x
  * Alpine Linux: v3.6 -> v3.9.
  * Go dependencies, for example: k8s.io/client_go v5.0.0 -> v12.0.0
* version to 0.3 (from 0.2)

Signed-off-by: Vigith Maurice <vigith@gmail.com>
@vigith vigith mentioned this pull request Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants