Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

upgrade to v1.20 libraries, fixes issue#484 #507

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

jjo
Copy link
Contributor

@jjo jjo commented Oct 26, 2021

Fixes #484.

  • upgrade to k8s.io/[email protected] (and deps)
  • tweak Dockerfile to use generated (and committed) proto/service.pb.go,
    rather than doing it at build time -- as it's already committed,
    it makes built artifacts deterministic/reproduceable from src tree
  • use golang:1.15.15, same as upstream Kubernetes v1.20

@@ -14,6 +14,8 @@ COPY pkg/ pkg/
COPY proto/ proto/
COPY Makefile Makefile

# As (generated) proto/service.pb.go is _also_ committed, void the need to install protoc / protoc-gen-go plugin
RUN touch proto/service.pb.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain this change a bit more? I don't quite follow, we already copy the whole proto directory into the build container as per line 14

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, but depending on the mtime timestamp from the copy, it may trigger rebuilding proto/service.pb.go which may endup producing a different file from the corresponding Makefile target (it shouldn't, but ...) -- ie I want to be 100% sure we're using the committed file, also not enter into the biz of go get ...ing the protoc compiler at docker build time.

Copy link
Contributor

@Joseph-Irving Joseph-Irving left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@Joseph-Irving Joseph-Irving merged commit 2883914 into uswitch:master Nov 8, 2021
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.

Events missing on pods due to use of deprecated metadata.selfLink
2 participants